Skip to content

add stabilized interface to HermitOS #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions libc-test/semver/apple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1035,11 +1035,13 @@ OXTABS
O_ASYNC
O_DSYNC
O_EVTONLY
O_EXEC
O_EXLOCK
O_FSYNC
O_NDELAY
O_NOCTTY
O_NOFOLLOW_ANY
O_SEARCH
O_SHLOCK
O_SYMLINK
O_SYNC
Expand Down Expand Up @@ -2174,3 +2176,21 @@ wait4
waitid
xsw_usage
xucred
_PC_NAME_CHARS_MAX
_PC_CASE_SENSITIVE
_PC_CASE_PRESERVING
_PC_EXTENDED_SECURITY_NP
_PC_AUTH_OPAQUE_NP
_PC_2_SYMLINKS
_PC_ALLOC_SIZE_MIN
_PC_ASYNC_IO
_PC_FILESIZEBITS
_PC_PRIO_IO
_PC_REC_INCR_XFER_SIZE
_PC_REC_MAX_XFER_SIZE
_PC_REC_MIN_XFER_SIZE
_PC_REC_XFER_ALIGN
_PC_SYMLINK_MAX
_PC_SYNC_IO
_PC_XATTR_SIZE_BITS
_PC_MIN_HOLE_SIZE
1 change: 1 addition & 0 deletions libc-test/semver/solarish.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PIPE_BUF
46 changes: 23 additions & 23 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1467,26 +1467,26 @@ pub const O_RDONLY: ::c_int = 0;
pub const O_WRONLY: ::c_int = 1;
pub const O_RDWR: ::c_int = 2;

pub const S_IFIFO: ::mode_t = 4096;
pub const S_IFCHR: ::mode_t = 8192;
pub const S_IFBLK: ::mode_t = 24576;
pub const S_IFDIR: ::mode_t = 16384;
pub const S_IFREG: ::mode_t = 32768;
pub const S_IFLNK: ::mode_t = 40960;
pub const S_IFSOCK: ::mode_t = 49152;
pub const S_IFMT: ::mode_t = 61440;
pub const S_IRWXU: ::mode_t = 448;
pub const S_IXUSR: ::mode_t = 64;
pub const S_IWUSR: ::mode_t = 128;
pub const S_IRUSR: ::mode_t = 256;
pub const S_IRWXG: ::mode_t = 56;
pub const S_IXGRP: ::mode_t = 8;
pub const S_IWGRP: ::mode_t = 16;
pub const S_IRGRP: ::mode_t = 32;
pub const S_IRWXO: ::mode_t = 7;
pub const S_IXOTH: ::mode_t = 1;
pub const S_IWOTH: ::mode_t = 2;
pub const S_IROTH: ::mode_t = 4;
pub const S_IFIFO: ::mode_t = 0o1_0000;
pub const S_IFCHR: ::mode_t = 0o2_0000;
pub const S_IFBLK: ::mode_t = 0o6_0000;
pub const S_IFDIR: ::mode_t = 0o4_0000;
pub const S_IFREG: ::mode_t = 0o10_0000;
pub const S_IFLNK: ::mode_t = 0o12_0000;
pub const S_IFSOCK: ::mode_t = 0o14_0000;
pub const S_IFMT: ::mode_t = 0o17_0000;
pub const S_IRWXU: ::mode_t = 0o0700;
pub const S_IXUSR: ::mode_t = 0o0100;
pub const S_IWUSR: ::mode_t = 0o0200;
pub const S_IRUSR: ::mode_t = 0o0400;
pub const S_IRWXG: ::mode_t = 0o0070;
pub const S_IXGRP: ::mode_t = 0o0010;
pub const S_IWGRP: ::mode_t = 0o0020;
pub const S_IRGRP: ::mode_t = 0o0040;
pub const S_IRWXO: ::mode_t = 0o0007;
pub const S_IXOTH: ::mode_t = 0o0001;
pub const S_IWOTH: ::mode_t = 0o0002;
pub const S_IROTH: ::mode_t = 0o0004;
pub const F_OK: ::c_int = 0;
pub const R_OK: ::c_int = 4;
pub const W_OK: ::c_int = 2;
Expand Down Expand Up @@ -2283,9 +2283,9 @@ pub const POSIX_MADV_RANDOM: ::c_int = 1;
pub const POSIX_MADV_SEQUENTIAL: ::c_int = 2;
pub const POSIX_MADV_WILLNEED: ::c_int = 3;

pub const S_IEXEC: mode_t = 64;
pub const S_IWRITE: mode_t = 128;
pub const S_IREAD: mode_t = 256;
pub const S_IEXEC: mode_t = 0o0100;
pub const S_IWRITE: mode_t = 0o0200;
pub const S_IREAD: mode_t = 0o0400;

pub const F_LOCK: ::c_int = 1;
pub const F_TEST: ::c_int = 3;
Expand Down
Loading