File tree Expand file tree Collapse file tree 5 files changed +15
-6
lines changed Expand file tree Collapse file tree 5 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -2760,6 +2760,10 @@ pub const MREMAP_FIXED: ::c_int = 2;
27602760pub const MCL_CURRENT : :: c_int = 0x0001 ;
27612761pub const MCL_FUTURE : :: c_int = 0x0002 ;
27622762
2763+ // sys/xattr.h
2764+ pub const XATTR_CREATE : :: c_int = 0x1 ;
2765+ pub const XATTR_REPLACE : :: c_int = 0x2 ;
2766+
27632767// spawn.h
27642768pub const POSIX_SPAWN_USEVFORK : :: c_int = 64 ;
27652769pub const POSIX_SPAWN_SETSID : :: c_int = 128 ;
Original file line number Diff line number Diff line change @@ -327,13 +327,14 @@ s! {
327327 // to false. So I'm just removing these, and if uClibc changes
328328 // the #if block in the future to include the following fields, these
329329 // will probably need including here. tsidea, skrap
330- #[ cfg( not( target_env = "uclibc" ) ) ]
330+ // QNX (NTO) platform does not define these fields
331+ #[ cfg( not( any( target_env = "uclibc" , target_os = "nto" ) ) ) ]
331332 pub dlpi_adds: :: c_ulonglong,
332- #[ cfg( not( target_env = "uclibc" ) ) ]
333+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
333334 pub dlpi_subs: :: c_ulonglong,
334- #[ cfg( not( target_env = "uclibc" ) ) ]
335+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
335336 pub dlpi_tls_modid: :: size_t,
336- #[ cfg( not( target_env = "uclibc" ) ) ]
337+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
337338 pub dlpi_tls_data: * mut :: c_void,
338339 }
339340
Original file line number Diff line number Diff line change @@ -3340,7 +3340,10 @@ extern "C" {
33403340 pub fn dl_iterate_phdr (
33413341 callback : :: Option <
33423342 unsafe extern "C" fn (
3343- info : * const dl_phdr_info ,
3343+ // The original .h file declares this as *const, but for consistency with other platforms,
3344+ // changing this to *mut to make it easier to use.
3345+ // Maybe in v0.3 all platforms should use this as a *const.
3346+ info : * mut dl_phdr_info ,
33443347 size : :: size_t ,
33453348 data : * mut :: c_void ,
33463349 ) -> :: c_int ,
Original file line number Diff line number Diff line change 135135 pub struct ifaddrs {
136136 pub ifa_next: * mut ifaddrs,
137137 pub ifa_name: * mut :: c_char,
138- pub ifa_flags: :: c_ulong ,
138+ pub ifa_flags: u64 ,
139139 pub ifa_addr: * mut :: sockaddr,
140140 pub ifa_netmask: * mut :: sockaddr,
141141 pub ifa_dstaddr: * mut :: sockaddr,
Original file line number Diff line number Diff line change @@ -797,6 +797,7 @@ pub const S_IRWXO: ::c_int = 0x0007;
797797
798798// socket.h
799799pub const SOL_SOCKET : :: c_int = 0xffff ;
800+ pub const SOMAXCONN : :: c_int = 128 ;
800801
801802pub const SO_DEBUG : :: c_int = 0x0001 ;
802803pub const SO_REUSEADDR : :: c_int = 0x0004 ;
You can’t perform that action at this time.
0 commit comments