Skip to content

Commit d979c0b

Browse files
bertptrstgross35
authored andcommitted
Add SysV semaphore constants
(backport <rust-lang#4286>) (cherry picked from commit f84f618)
1 parent 8054c0c commit d979c0b

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
@@ -3018,6 +3018,19 @@ pub const MSG_NOERROR: c_int = 0o10000;
30183018
pub const MSG_EXCEPT: c_int = 0o20000;
30193019
pub const MSG_ZEROCOPY: c_int = 0x4000000;
30203020

3021+
pub const SEM_UNDO: c_int = 0x1000;
3022+
3023+
pub const GETPID: c_int = 11;
3024+
pub const GETVAL: c_int = 12;
3025+
pub const GETALL: c_int = 13;
3026+
pub const GETNCNT: c_int = 14;
3027+
pub const GETZCNT: c_int = 15;
3028+
pub const SETVAL: c_int = 16;
3029+
pub const SETALL: c_int = 17;
3030+
pub const SEM_STAT: c_int = 18;
3031+
pub const SEM_INFO: c_int = 19;
3032+
pub const SEM_STAT_ANY: c_int = 20;
3033+
30213034
pub const SHM_R: c_int = 0o400;
30223035
pub const SHM_W: c_int = 0o200;
30233036

0 commit comments

Comments
 (0)