hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit f5194f1dcb7c4d62ed4f27e0683073eb6c590c14
parent c86cf0f40804bbbc02c1d2d8496b8b20535aa816
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Feb 2021 11:36:29 -0500

fs: rename mode::OWNER_* to USER_*

To more closely map with what Unix does

Diffstat:
Mfs/types.ha | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/fs/types.ha b/fs/types.ha @@ -16,18 +16,18 @@ export type error = (noentry | noaccess | io::error)!; // File mode information. These bits do not necessarily reflect the underlying // operating system's mode representation, though they were chosen to be // consistent with typical Unix file permissions. All implementations shall -// support at least OWNER_RW, DIR, and REG. +// support at least USER_RW, DIR, and REG. export type mode = enum uint { // Read, write, and execute permissions for the file owner - OWNER_RWX = 0o700, + USER_RWX = 0o700, // Read and write permissions for the file owner - OWNER_RW = 0o500, + USER_RW = 0o500, // Read permissions for the file owner - OWNER_R = 0o400, + USER_R = 0o400, // Write permissions for the file owner - OWNER_W = 0o200, + USER_W = 0o200, // Execute permissions for the file owner - OWNER_X = 0o100, + USER_X = 0o100, // Read, write, and execute permissions for group members GROUP_RWX = 0o070,