| ... | @@ -2141,11 +2141,11 @@ pub fn sendfile(outfd: i32, infd: i32, offset: ?*i64, count: usize) usize { | ... | @@ -2141,11 +2141,11 @@ pub fn sendfile(outfd: i32, infd: i32, offset: ?*i64, count: usize) usize { |
| 2141 | } | 2141 | } |
| 2142 | } | 2142 | } |
| 2143 | | 2143 | |
| 2144 | pub fn socketpair(domain: i32, socket_type: i32, protocol: i32, fd: *[2]i32) usize { | 2144 | pub fn socketpair(domain: u32, socket_type: u32, protocol: u32, fd: *[2]i32) usize { |
| 2145 | if (native_arch == .x86) { | 2145 | if (native_arch == .x86) { |
| 2146 | return socketcall(SC.socketpair, &[4]usize{ @as(usize, @intCast(domain)), @as(usize, @intCast(socket_type)), @as(usize, @intCast(protocol)), @intFromPtr(fd) }); | 2146 | return socketcall(SC.socketpair, &[4]usize{ domain, socket_type, protocol, @intFromPtr(fd) }); |
| 2147 | } | 2147 | } |
| 2148 | return syscall4(.socketpair, @as(usize, @intCast(domain)), @as(usize, @intCast(socket_type)), @as(usize, @intCast(protocol)), @intFromPtr(fd)); | 2148 | return syscall4(.socketpair, domain, socket_type, protocol, @intFromPtr(fd)); |
| 2149 | } | 2149 | } |
| 2150 | | 2150 | |
| 2151 | pub fn accept(fd: i32, noalias addr: ?*sockaddr, noalias len: ?*socklen_t) usize { | 2151 | pub fn accept(fd: i32, noalias addr: ?*sockaddr, noalias len: ?*socklen_t) usize { |