File tree 5 files changed +15
-6
lines changed
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;
2760
2760
pub const MCL_CURRENT : :: c_int = 0x0001 ;
2761
2761
pub const MCL_FUTURE : :: c_int = 0x0002 ;
2762
2762
2763
+ // sys/xattr.h
2764
+ pub const XATTR_CREATE : :: c_int = 0x1 ;
2765
+ pub const XATTR_REPLACE : :: c_int = 0x2 ;
2766
+
2763
2767
// spawn.h
2764
2768
pub const POSIX_SPAWN_USEVFORK : :: c_int = 64 ;
2765
2769
pub const POSIX_SPAWN_SETSID : :: c_int = 128 ;
Original file line number Diff line number Diff line change @@ -327,13 +327,14 @@ s! {
327
327
// to false. So I'm just removing these, and if uClibc changes
328
328
// the #if block in the future to include the following fields, these
329
329
// 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" ) ) ) ]
331
332
pub dlpi_adds: :: c_ulonglong,
332
- #[ cfg( not( target_env = "uclibc" ) ) ]
333
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
333
334
pub dlpi_subs: :: c_ulonglong,
334
- #[ cfg( not( target_env = "uclibc" ) ) ]
335
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
335
336
pub dlpi_tls_modid: :: size_t,
336
- #[ cfg( not( target_env = "uclibc" ) ) ]
337
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
337
338
pub dlpi_tls_data: * mut :: c_void,
338
339
}
339
340
Original file line number Diff line number Diff line change @@ -3340,7 +3340,10 @@ extern "C" {
3340
3340
pub fn dl_iterate_phdr (
3341
3341
callback : :: Option <
3342
3342
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 ,
3344
3347
size : :: size_t ,
3345
3348
data : * mut :: c_void ,
3346
3349
) -> :: c_int ,
Original file line number Diff line number Diff line change 135
135
pub struct ifaddrs {
136
136
pub ifa_next: * mut ifaddrs,
137
137
pub ifa_name: * mut :: c_char,
138
- pub ifa_flags: :: c_ulong ,
138
+ pub ifa_flags: u64 ,
139
139
pub ifa_addr: * mut :: sockaddr,
140
140
pub ifa_netmask: * mut :: sockaddr,
141
141
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;
797
797
798
798
// socket.h
799
799
pub const SOL_SOCKET : :: c_int = 0xffff ;
800
+ pub const SOMAXCONN : :: c_int = 128 ;
800
801
801
802
pub const SO_DEBUG : :: c_int = 0x0001 ;
802
803
pub const SO_REUSEADDR : :: c_int = 0x0004 ;
You can’t perform that action at this time.
0 commit comments