Function socketpair [src]

Prototype

pub fn socketpair(domain: i32, socket_type: i32, protocol: i32, fd: *[2]i32) usize

Parameters

domain: i32socket_type: i32protocol: i32fd: *[2]i32

Source

pub fn socketpair(domain: i32, socket_type: i32, protocol: i32, fd: *[2]i32) usize { if (native_arch == .x86) { return socketcall(SC.socketpair, &[4]usize{ @as(usize, @intCast(domain)), @as(usize, @intCast(socket_type)), @as(usize, @intCast(protocol)), @intFromPtr(fd) }); } return syscall4(.socketpair, @as(usize, @intCast(domain)), @as(usize, @intCast(socket_type)), @as(usize, @intCast(protocol)), @intFromPtr(fd)); }