summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2021-08-12 22:56:09 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2021-08-12 23:04:51 -0500
commitf148bfd673823b07bb7bdee7369cb0f88d368f5d (patch)
treec152193fa338523030ffac1002172a3886085ba8
parent3af2448130c80902449704c3fc4799fb9e52af7a (diff)
downloadrust-libc-f148bfd673823b07bb7bdee7369cb0f88d368f5d.tar.gz
Add scheduler constants for NetBSD
-rw-r--r--libc-test/semver/netbsd.txt4
-rw-r--r--src/unix/bsd/netbsdlike/netbsd/mod.rs5
2 files changed, 9 insertions, 0 deletions
diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt
index db4c080e87..efd9a8460e 100644
--- a/libc-test/semver/netbsd.txt
+++ b/libc-test/semver/netbsd.txt
@@ -792,6 +792,10 @@ RUN_LVL
RUSAGE_CHILDREN
RUSAGE_SELF
SCALE_PPM
+SCHED_FIFO
+SCHED_NONE
+SCHED_OTHER
+SCHED_RR
SCM_CREDS
SCM_RIGHTS
SCM_TIMESTAMP
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index 795eb36ab3..41bc914734 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -1532,6 +1532,11 @@ pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 1;
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
+pub const SCHED_NONE: ::c_int = -1;
+pub const SCHED_OTHER: ::c_int = 0;
+pub const SCHED_FIFO: ::c_int = 1;
+pub const SCHED_RR: ::c_int = 2;
+
pub const EVFILT_AIO: u32 = 2;
pub const EVFILT_PROC: u32 = 4;
pub const EVFILT_READ: u32 = 0;