@@ -4998,12 +4998,13 @@ pub const MNT_SNAPSHOT: ::c_int = 0x40000000;
4998
4998
pub const MNT_NOBLOCK : :: c_int = 0x00020000 ;
4999
4999
5000
5000
// sys/spawn.h:
5001
- pub const POSIX_SPAWN_RESETIDS : :: c_int = 0x01 ;
5002
- pub const POSIX_SPAWN_SETPGROUP : :: c_int = 0x02 ;
5003
- pub const POSIX_SPAWN_SETSIGDEF : :: c_int = 0x04 ;
5004
- pub const POSIX_SPAWN_SETSIGMASK : :: c_int = 0x08 ;
5005
- pub const POSIX_SPAWN_SETEXEC : :: c_int = 0x40 ;
5006
- pub const POSIX_SPAWN_START_SUSPENDED : :: c_int = 0x80 ;
5001
+ pub const POSIX_SPAWN_RESETIDS : :: c_int = 0x0001 ;
5002
+ pub const POSIX_SPAWN_SETPGROUP : :: c_int = 0x0002 ;
5003
+ pub const POSIX_SPAWN_SETSIGDEF : :: c_int = 0x0004 ;
5004
+ pub const POSIX_SPAWN_SETSIGMASK : :: c_int = 0x0008 ;
5005
+ pub const POSIX_SPAWN_SETEXEC : :: c_int = 0x0040 ;
5006
+ pub const POSIX_SPAWN_START_SUSPENDED : :: c_int = 0x0080 ;
5007
+ pub const _POSIX_SPAWN_DISABLE_ASLR: :: c_int = 0x0100 ;
5007
5008
pub const POSIX_SPAWN_CLOEXEC_DEFAULT : :: c_int = 0x4000 ;
5008
5009
5009
5010
// sys/ipc.h:
@@ -5745,6 +5746,8 @@ extern "C" {
5745
5746
policy : :: c_int ,
5746
5747
param : * const sched_param ,
5747
5748
) -> :: c_int ;
5749
+ pub fn pthread_chdir_np ( path : * const :: c_char ) -> :: c_int ;
5750
+ pub fn pthread_fchdir_np ( fd : :: c_int ) -> :: c_int ;
5748
5751
5749
5752
// Available from Big Sur
5750
5753
pub fn pthread_introspection_hook_install (
@@ -6058,6 +6061,18 @@ extern "C" {
6058
6061
subpref : * mut :: cpu_subtype_t ,
6059
6062
ocount : * mut :: size_t ,
6060
6063
) -> :: c_int ;
6064
+ pub fn posix_spawnattr_getbinpref_np (
6065
+ attr : * const posix_spawnattr_t ,
6066
+ count : :: size_t ,
6067
+ pref : * mut :: cpu_type_t ,
6068
+ ocount : * mut :: size_t ,
6069
+ ) -> :: c_int ;
6070
+ pub fn posix_spawnattr_setbinpref_np (
6071
+ attr : * mut posix_spawnattr_t ,
6072
+ count : :: size_t ,
6073
+ pref : * mut :: cpu_type_t ,
6074
+ ocount : * mut :: size_t ,
6075
+ ) -> :: c_int ;
6061
6076
pub fn posix_spawnattr_set_qos_class_np (
6062
6077
attr : * mut posix_spawnattr_t ,
6063
6078
qos_class : :: qos_class_t ,
0 commit comments