Skip to content

Commit 538c403

Browse files
committed
Auto merge of #2334 - rtzoeller:netbsd_sched_consts, r=JohnTitor
Add scheduler constants for NetBSD FreeBSD-like platforms also define `SCHED_OTHER`, `SCHED_FIFO`, and `SCHED_RR`, but with different numeric values.
2 parents e1eb972 + f148bfd commit 538c403

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libc-test/semver/netbsd.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,10 @@ RUN_LVL
792792
RUSAGE_CHILDREN
793793
RUSAGE_SELF
794794
SCALE_PPM
795+
SCHED_FIFO
796+
SCHED_NONE
797+
SCHED_OTHER
798+
SCHED_RR
795799
SCM_CREDS
796800
SCM_RIGHTS
797801
SCM_TIMESTAMP

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,11 @@ pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 1;
15321532
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
15331533
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
15341534

1535+
pub const SCHED_NONE: ::c_int = -1;
1536+
pub const SCHED_OTHER: ::c_int = 0;
1537+
pub const SCHED_FIFO: ::c_int = 1;
1538+
pub const SCHED_RR: ::c_int = 2;
1539+
15351540
pub const EVFILT_AIO: u32 = 2;
15361541
pub const EVFILT_PROC: u32 = 4;
15371542
pub const EVFILT_READ: u32 = 0;

0 commit comments

Comments
 (0)