@@ -452,26 +452,6 @@ s! {
452452 pub mnt_passno: :: c_int,
453453 }
454454
455- pub struct posix_spawn_file_actions_t {
456- __allocated: :: c_int,
457- __used: :: c_int,
458- __actions: * mut :: c_int,
459- __pad: [ :: c_int; 16 ] ,
460- }
461-
462- pub struct posix_spawnattr_t {
463- __flags: :: c_short,
464- __pgrp: :: pid_t,
465- __sd: :: sigset_t,
466- __ss: :: sigset_t,
467- #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ]
468- __prio: :: c_int,
469- #[ cfg( not( any( target_env = "musl" , target_env = "ohos" ) ) ) ]
470- __sp: :: sched_param,
471- __policy: :: c_int,
472- __pad: [ :: c_int; 16 ] ,
473- }
474-
475455 pub struct genlmsghdr {
476456 pub cmd: u8 ,
477457 pub version: u8 ,
@@ -1858,8 +1838,6 @@ pub const POSIX_MADV_NORMAL: ::c_int = 0;
18581838pub const POSIX_MADV_RANDOM : :: c_int = 1 ;
18591839pub const POSIX_MADV_SEQUENTIAL : :: c_int = 2 ;
18601840pub const POSIX_MADV_WILLNEED : :: c_int = 3 ;
1861- pub const POSIX_SPAWN_USEVFORK : :: c_int = 64 ;
1862- pub const POSIX_SPAWN_SETSID : :: c_int = 128 ;
18631841
18641842pub const S_IEXEC : mode_t = 64 ;
18651843pub const S_IWRITE : mode_t = 128 ;
@@ -2617,13 +2595,6 @@ pub const ETH_P_PHONET: ::c_int = 0x00F5;
26172595pub const ETH_P_IEEE802154 : :: c_int = 0x00F6 ;
26182596pub const ETH_P_CAIF : :: c_int = 0x00F7 ;
26192597
2620- pub const POSIX_SPAWN_RESETIDS : :: c_int = 0x01 ;
2621- pub const POSIX_SPAWN_SETPGROUP : :: c_int = 0x02 ;
2622- pub const POSIX_SPAWN_SETSIGDEF : :: c_int = 0x04 ;
2623- pub const POSIX_SPAWN_SETSIGMASK : :: c_int = 0x08 ;
2624- pub const POSIX_SPAWN_SETSCHEDPARAM : :: c_int = 0x10 ;
2625- pub const POSIX_SPAWN_SETSCHEDULER : :: c_int = 0x20 ;
2626-
26272598pub const NLMSG_NOOP : :: c_int = 0x1 ;
26282599pub const NLMSG_ERROR : :: c_int = 0x2 ;
26292600pub const NLMSG_DONE : :: c_int = 0x3 ;
@@ -5453,82 +5424,6 @@ extern "C" {
54535424 pub fn endmntent ( streamp : * mut :: FILE ) -> :: c_int ;
54545425 pub fn hasmntopt ( mnt : * const :: mntent , opt : * const :: c_char ) -> * mut :: c_char ;
54555426
5456- pub fn posix_spawn (
5457- pid : * mut :: pid_t ,
5458- path : * const :: c_char ,
5459- file_actions : * const :: posix_spawn_file_actions_t ,
5460- attrp : * const :: posix_spawnattr_t ,
5461- argv : * const * mut :: c_char ,
5462- envp : * const * mut :: c_char ,
5463- ) -> :: c_int ;
5464- pub fn posix_spawnp (
5465- pid : * mut :: pid_t ,
5466- file : * const :: c_char ,
5467- file_actions : * const :: posix_spawn_file_actions_t ,
5468- attrp : * const :: posix_spawnattr_t ,
5469- argv : * const * mut :: c_char ,
5470- envp : * const * mut :: c_char ,
5471- ) -> :: c_int ;
5472- pub fn posix_spawnattr_init ( attr : * mut posix_spawnattr_t ) -> :: c_int ;
5473- pub fn posix_spawnattr_destroy ( attr : * mut posix_spawnattr_t ) -> :: c_int ;
5474- pub fn posix_spawnattr_getsigdefault (
5475- attr : * const posix_spawnattr_t ,
5476- default : * mut :: sigset_t ,
5477- ) -> :: c_int ;
5478- pub fn posix_spawnattr_setsigdefault (
5479- attr : * mut posix_spawnattr_t ,
5480- default : * const :: sigset_t ,
5481- ) -> :: c_int ;
5482- pub fn posix_spawnattr_getsigmask (
5483- attr : * const posix_spawnattr_t ,
5484- default : * mut :: sigset_t ,
5485- ) -> :: c_int ;
5486- pub fn posix_spawnattr_setsigmask (
5487- attr : * mut posix_spawnattr_t ,
5488- default : * const :: sigset_t ,
5489- ) -> :: c_int ;
5490- pub fn posix_spawnattr_getflags (
5491- attr : * const posix_spawnattr_t ,
5492- flags : * mut :: c_short ,
5493- ) -> :: c_int ;
5494- pub fn posix_spawnattr_setflags ( attr : * mut posix_spawnattr_t , flags : :: c_short ) -> :: c_int ;
5495- pub fn posix_spawnattr_getpgroup (
5496- attr : * const posix_spawnattr_t ,
5497- flags : * mut :: pid_t ,
5498- ) -> :: c_int ;
5499- pub fn posix_spawnattr_setpgroup ( attr : * mut posix_spawnattr_t , flags : :: pid_t ) -> :: c_int ;
5500- pub fn posix_spawnattr_getschedpolicy (
5501- attr : * const posix_spawnattr_t ,
5502- flags : * mut :: c_int ,
5503- ) -> :: c_int ;
5504- pub fn posix_spawnattr_setschedpolicy ( attr : * mut posix_spawnattr_t , flags : :: c_int ) -> :: c_int ;
5505- pub fn posix_spawnattr_getschedparam (
5506- attr : * const posix_spawnattr_t ,
5507- param : * mut :: sched_param ,
5508- ) -> :: c_int ;
5509- pub fn posix_spawnattr_setschedparam (
5510- attr : * mut posix_spawnattr_t ,
5511- param : * const :: sched_param ,
5512- ) -> :: c_int ;
5513-
5514- pub fn posix_spawn_file_actions_init ( actions : * mut posix_spawn_file_actions_t ) -> :: c_int ;
5515- pub fn posix_spawn_file_actions_destroy ( actions : * mut posix_spawn_file_actions_t ) -> :: c_int ;
5516- pub fn posix_spawn_file_actions_addopen (
5517- actions : * mut posix_spawn_file_actions_t ,
5518- fd : :: c_int ,
5519- path : * const :: c_char ,
5520- oflag : :: c_int ,
5521- mode : :: mode_t ,
5522- ) -> :: c_int ;
5523- pub fn posix_spawn_file_actions_addclose (
5524- actions : * mut posix_spawn_file_actions_t ,
5525- fd : :: c_int ,
5526- ) -> :: c_int ;
5527- pub fn posix_spawn_file_actions_adddup2 (
5528- actions : * mut posix_spawn_file_actions_t ,
5529- fd : :: c_int ,
5530- newfd : :: c_int ,
5531- ) -> :: c_int ;
55325427 pub fn fread_unlocked (
55335428 buf : * mut :: c_void ,
55345429 size : :: size_t ,
0 commit comments