diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 2d6687c8a7170..f8df2ca450694 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -885,6 +885,11 @@ GENL_ID_CTRL GENL_MAX_ID GENL_MIN_ID GENL_NAMSIZ +GETALL +GETNCNT +GETPID +GETVAL +GETZCNT GLOB_ABORTED GLOB_APPEND GLOB_DOOFFS @@ -2744,6 +2749,12 @@ SEEK_DATA SEEK_HOLE SELFMAG SEM_FAILED +SEM_INFO +SEM_STAT +SEM_STAT_ANY +SEM_UNDO +SETALL +SETVAL SFD_CLOEXEC SFD_NONBLOCK SHM_EXEC diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 3d405b42f5e9d..629821fd87d9d 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -2979,6 +2979,19 @@ pub const MSG_NOERROR: c_int = 0o10000; pub const MSG_EXCEPT: c_int = 0o20000; pub const MSG_ZEROCOPY: c_int = 0x4000000; +pub const SEM_UNDO: c_int = 0x1000; + +pub const GETPID: c_int = 11; +pub const GETVAL: c_int = 12; +pub const GETALL: c_int = 13; +pub const GETNCNT: c_int = 14; +pub const GETZCNT: c_int = 15; +pub const SETVAL: c_int = 16; +pub const SETALL: c_int = 17; +pub const SEM_STAT: c_int = 18; +pub const SEM_INFO: c_int = 19; +pub const SEM_STAT_ANY: c_int = 20; + pub const SHM_R: c_int = 0o400; pub const SHM_W: c_int = 0o200;