@@ -33,14 +33,12 @@ pub type fd_mask = u32;
3333
3434pub type Elf32_Addr = u32 ;
3535pub type Elf32_Half = u16 ;
36- pub type Elf32_Lword = u64 ;
3736pub type Elf32_Off = u32 ;
3837pub type Elf32_Sword = i32 ;
3938pub type Elf32_Word = u32 ;
4039
4140pub type Elf64_Addr = u64 ;
4241pub type Elf64_Half = u16 ;
43- pub type Elf64_Lword = u64 ;
4442pub type Elf64_Off = u64 ;
4543pub type Elf64_Sword = i32 ;
4644pub type Elf64_Sxword = i64 ;
@@ -120,12 +118,12 @@ s! {
120118
121119 pub struct ifaddrs {
122120 pub ifa_next: * mut ifaddrs,
123- pub ifa_name: * mut :: c_char,
121+ pub ifa_name: * const :: c_char,
124122 pub ifa_flags: :: c_uint,
125123 pub ifa_addr: * mut :: sockaddr,
126124 pub ifa_netmask: * mut :: sockaddr,
127125 pub ifa_dstaddr: * mut :: sockaddr,
128- pub ida_data : * mut :: c_void,
126+ pub ifa_data : * mut :: c_void,
129127 }
130128
131129 pub struct fd_set {
@@ -1530,7 +1528,12 @@ extern "C" {
15301528 ) -> :: c_int ;
15311529
15321530 pub fn getspent ( ) -> * mut spwd ;
1533- pub fn getspent_r ( pwd : * mut spwd , buf : * mut :: c_char , bufferSize : :: size_t ) -> :: c_int ;
1531+ pub fn getspent_r (
1532+ pwd : * mut spwd ,
1533+ buf : * mut :: c_char ,
1534+ bufferSize : :: size_t ,
1535+ res : * mut * mut spwd ,
1536+ ) -> :: c_int ;
15341537 pub fn setspent ( ) ;
15351538 pub fn endspent ( ) ;
15361539 pub fn getspnam ( name : * const :: c_char ) -> * mut spwd ;
0 commit comments