summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeong YunWon <jeong@youknowone.org>2021-09-02 20:06:30 +0900
committerJeong YunWon <jeong@youknowone.org>2021-09-02 20:13:49 +0900
commit1b10d9e9581ce2113ef3bf20dd2f2d439539c495 (patch)
tree90f297a3a249a7257675640f38eef4f49606af64
parent5632705fe1a7858d82609178ba96b13f98f8c2e6 (diff)
downloadrust-libc-1b10d9e9581ce2113ef3bf20dd2f2d439539c495.tar.gz
Apple SCHED_* consts
MacOS: https://github.com/phracker/MacOSX-SDKs/blob/11.3/MacOSX10.11.sdk/usr/include/pthread/pthread_impl.h#L50-L52
-rw-r--r--libc-test/semver/apple.txt3
-rw-r--r--src/unix/bsd/apple/mod.rs4
2 files changed, 7 insertions, 0 deletions
diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt
index d2cf8966f1..e67830880f 100644
--- a/libc-test/semver/apple.txt
+++ b/libc-test/semver/apple.txt
@@ -1108,6 +1108,9 @@ SAE_ASSOCID_ANY
SAE_CONNID_ALL
SAE_CONNID_ANY
SCALE_PPM
+SCHED_OTHER
+SCHED_FIFO
+SCHED_RR
SCM_CREDS
SCM_RIGHTS
SCM_TIMESTAMP
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs
index a368be1d00..33a0c4a69e 100644
--- a/src/unix/bsd/apple/mod.rs
+++ b/src/unix/bsd/apple/mod.rs
@@ -3471,6 +3471,10 @@ pub const FD_SETSIZE: usize = 1024;
pub const ST_NOSUID: ::c_ulong = 2;
+pub const SCHED_OTHER: ::c_int = 1;
+pub const SCHED_FIFO: ::c_int = 4;
+pub const SCHED_RR: ::c_int = 2;
+
pub const EVFILT_READ: i16 = -1;
pub const EVFILT_WRITE: i16 = -2;
pub const EVFILT_AIO: i16 = -3;