Skip to content

Commit 3dacbcd

Browse files
committed
Add SysV semaphore constants
1 parent a92ecf7 commit 3dacbcd

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

libc-test/semver/linux.txt

+11
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,11 @@ GENL_ID_CTRL
885885
GENL_MAX_ID
886886
GENL_MIN_ID
887887
GENL_NAMSIZ
888+
GETALL
889+
GETNCNT
890+
GETPID
891+
GETVAL
892+
GETZCNT
888893
GLOB_ABORTED
889894
GLOB_APPEND
890895
GLOB_DOOFFS
@@ -2744,6 +2749,12 @@ SEEK_DATA
27442749
SEEK_HOLE
27452750
SELFMAG
27462751
SEM_FAILED
2752+
SEM_INFO
2753+
SEM_STAT
2754+
SEM_STAT_ANY
2755+
SEM_UNDO
2756+
SETALL
2757+
SETVAL
27472758
SFD_CLOEXEC
27482759
SFD_NONBLOCK
27492760
SHM_EXEC

src/unix/linux_like/linux/mod.rs

+13
Original file line numberDiff line numberDiff line change
@@ -2979,6 +2979,19 @@ pub const MSG_NOERROR: c_int = 0o10000;
29792979
pub const MSG_EXCEPT: c_int = 0o20000;
29802980
pub const MSG_ZEROCOPY: c_int = 0x4000000;
29812981

2982+
pub const SEM_UNDO: c_int = 4096;
2983+
2984+
pub const GETPID: c_int = 11;
2985+
pub const GETVAL: c_int = 12;
2986+
pub const GETALL: c_int = 13;
2987+
pub const GETNCNT: c_int = 14;
2988+
pub const GETZCNT: c_int = 15;
2989+
pub const SETVAL: c_int = 16;
2990+
pub const SETALL: c_int = 17;
2991+
pub const SEM_STAT: c_int = 18;
2992+
pub const SEM_INFO: c_int = 19;
2993+
pub const SEM_STAT_ANY: c_int = 20;
2994+
29822995
pub const SHM_R: c_int = 0o400;
29832996
pub const SHM_W: c_int = 0o200;
29842997

0 commit comments

Comments
 (0)