Skip to content

Commit 8d38ada

Browse files
committed
linux/android add POSIX_SPAWN_USEVFORK (mostly no-op now) extension.
closes #2269
1 parent d5401c9 commit 8d38ada

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,7 @@ POSIX_FADV_NORMAL
16221622
POSIX_FADV_RANDOM
16231623
POSIX_FADV_SEQUENTIAL
16241624
POSIX_FADV_WILLNEED
1625+
POSIX_SPAWN_USEVFORK
16251626
PR_SET_VMA
16261627
PR_SET_VMA_ANON_NAME
16271628
PRIO_MAX

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,7 @@ POSIX_SPAWN_SETSCHEDPARAM
15291529
POSIX_SPAWN_SETSCHEDULER
15301530
POSIX_SPAWN_SETSIGDEF
15311531
POSIX_SPAWN_SETSIGMASK
1532+
POSIX_SPAWN_USEVFORK
15321533
PROT_GROWSDOWN
15331534
PROT_GROWSUP
15341535
PR_CAPBSET_DROP

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ pub const FILENAME_MAX: ::c_uint = 4096;
820820
pub const FOPEN_MAX: ::c_uint = 20;
821821
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
822822
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
823+
pub const POSIX_SPAWN_USEVFORK: ::c_int = 64;
823824
pub const L_tmpnam: ::c_uint = 4096;
824825
pub const TMP_MAX: ::c_uint = 308915776;
825826
pub const _PC_LINK_MAX: ::c_int = 1;

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,7 @@ pub const POSIX_MADV_NORMAL: ::c_int = 0;
13301330
pub const POSIX_MADV_RANDOM: ::c_int = 1;
13311331
pub const POSIX_MADV_SEQUENTIAL: ::c_int = 2;
13321332
pub const POSIX_MADV_WILLNEED: ::c_int = 3;
1333+
pub const POSIX_SPAWN_USEVFORK: ::c_int = 64;
13331334

13341335
pub const S_IEXEC: mode_t = 64;
13351336
pub const S_IWRITE: mode_t = 128;

0 commit comments

Comments
 (0)