Skip to content

Commit

Permalink
Auto merge of #2400 - rtzoeller:android_sched_reset_on_fork, r=Amanieu
Browse files Browse the repository at this point in the history
Define SCHED_RESET_ON_FORK on Android

`SCHED_RESET_ON_FORK` has the same value on Linux and Android.
  • Loading branch information
bors committed Sep 14, 2021
2 parents b1c89cc + d099c99 commit 03e5b13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Expand Up @@ -1776,6 +1776,7 @@ SCHED_DEADLINE
SCHED_FIFO
SCHED_IDLE
SCHED_NORMAL
SCHED_RESET_ON_FORK
SCHED_RR
SCM_CREDENTIALS
SCM_RIGHTS
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/android/mod.rs
Expand Up @@ -2424,6 +2424,8 @@ pub const SCHED_BATCH: ::c_int = 3;
pub const SCHED_IDLE: ::c_int = 5;
pub const SCHED_DEADLINE: ::c_int = 6;

pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;

// bits/seek_constants.h
pub const SEEK_DATA: ::c_int = 3;
pub const SEEK_HOLE: ::c_int = 4;
Expand Down

0 comments on commit 03e5b13

Please sign in to comment.