Skip to content

Commit 590e69f

Browse files
committed
Auto merge of #2400 - rtzoeller:android_sched_reset_on_fork, r=Amanieu
Define SCHED_RESET_ON_FORK on Android `SCHED_RESET_ON_FORK` has the same value on Linux and Android.
2 parents b1c89cc + d099c99 commit 590e69f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,7 @@ SCHED_DEADLINE
17761776
SCHED_FIFO
17771777
SCHED_IDLE
17781778
SCHED_NORMAL
1779+
SCHED_RESET_ON_FORK
17791780
SCHED_RR
17801781
SCM_CREDENTIALS
17811782
SCM_RIGHTS

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2424,6 +2424,8 @@ pub const SCHED_BATCH: ::c_int = 3;
24242424
pub const SCHED_IDLE: ::c_int = 5;
24252425
pub const SCHED_DEADLINE: ::c_int = 6;
24262426

2427+
pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;
2428+
24272429
// bits/seek_constants.h
24282430
pub const SEEK_DATA: ::c_int = 3;
24292431
pub const SEEK_HOLE: ::c_int = 4;

0 commit comments

Comments
 (0)