| ... | ... | @@ -61,18 +61,18 @@ pub const Flock = extern struct { |
| 61 | 61 | l_start: off_t, |
| 62 | 62 | l_len: off_t, |
| 63 | 63 | l_pid: pid_t, |
| 64 | | l_type: i16, |
| 65 | | l_whence: i16, |
| 64 | l_type: c_short, |
| 65 | l_whence: c_short, |
| 66 | 66 | }; |
| 67 | 67 | |
| 68 | 68 | pub const addrinfo = extern struct { |
| 69 | | flags: i32, |
| 70 | | family: i32, |
| 71 | | socktype: i32, |
| 72 | | protocol: i32, |
| 69 | flags: c_int, |
| 70 | family: c_int, |
| 71 | socktype: c_int, |
| 72 | protocol: c_int, |
| 73 | 73 | addrlen: socklen_t, |
| 74 | | canonname: ?[*:0]u8, |
| 75 | 74 | addr: ?*sockaddr, |
| 75 | canonname: ?[*:0]u8, |
| 76 | 76 | next: ?*addrinfo, |
| 77 | 77 | }; |
| 78 | 78 | |
| ... | ... | @@ -135,7 +135,7 @@ pub const msghdr = extern struct { |
| 135 | 135 | msg_iov: [*]iovec, |
| 136 | 136 | |
| 137 | 137 | /// # elements in msg_iov |
| 138 | | msg_iovlen: i32, |
| 138 | msg_iovlen: c_uint, |
| 139 | 139 | |
| 140 | 140 | /// ancillary data |
| 141 | 141 | msg_control: ?*c_void, |
| ... | ... | @@ -144,7 +144,7 @@ pub const msghdr = extern struct { |
| 144 | 144 | msg_controllen: socklen_t, |
| 145 | 145 | |
| 146 | 146 | /// flags on received message |
| 147 | | msg_flags: i32, |
| 147 | msg_flags: c_int, |
| 148 | 148 | }; |
| 149 | 149 | |
| 150 | 150 | pub const msghdr_const = extern struct { |
| ... | ... | @@ -158,7 +158,7 @@ pub const msghdr_const = extern struct { |
| 158 | 158 | msg_iov: [*]iovec_const, |
| 159 | 159 | |
| 160 | 160 | /// # elements in msg_iov |
| 161 | | msg_iovlen: i32, |
| 161 | msg_iovlen: c_uint, |
| 162 | 162 | |
| 163 | 163 | /// ancillary data |
| 164 | 164 | msg_control: ?*c_void, |
| ... | ... | @@ -167,7 +167,7 @@ pub const msghdr_const = extern struct { |
| 167 | 167 | msg_controllen: socklen_t, |
| 168 | 168 | |
| 169 | 169 | /// flags on received message |
| 170 | | msg_flags: i32, |
| 170 | msg_flags: c_int, |
| 171 | 171 | }; |
| 172 | 172 | |
| 173 | 173 | pub const libc_stat = extern struct { |
| ... | ... | @@ -739,10 +739,10 @@ pub fn WIFSIGNALED(s: u32) bool { |
| 739 | 739 | } |
| 740 | 740 | |
| 741 | 741 | pub const winsize = extern struct { |
| 742 | | ws_row: u16, |
| 743 | | ws_col: u16, |
| 744 | | ws_xpixel: u16, |
| 745 | | ws_ypixel: u16, |
| 742 | ws_row: c_ushort, |
| 743 | ws_col: c_ushort, |
| 744 | ws_xpixel: c_ushort, |
| 745 | ws_ypixel: c_ushort, |
| 746 | 746 | }; |
| 747 | 747 | |
| 748 | 748 | const NSIG = 33; |