Lines Matching refs:fd
62 let fd = current_pcb().alloc_fd(f, None).map(|x| x as usize); in socket() localVariable
64 return fd; in socket()
75 fd: usize, in setsockopt()
81 .get_socket(fd as i32) in setsockopt()
98 fd: usize, in getsockopt()
107 .get_socket(fd as i32) in getsockopt()
167 pub fn connect(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in connect()
170 .get_socket(fd as i32) in connect()
185 pub fn bind(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in bind()
188 .get_socket(fd as i32) in bind()
205 fd: usize, in sendto()
218 .get_socket(fd as i32) in sendto()
234 fd: usize, in recvfrom()
241 .get_socket(fd as i32) in recvfrom()
267 pub fn recvmsg(fd: usize, msg: &mut MsgHdr, _flags: u32) -> Result<usize, SystemError> { in recvmsg()
272 .get_socket(fd as i32) in recvmsg()
299 pub fn listen(fd: usize, backlog: usize) -> Result<usize, SystemError> { in listen()
301 .get_socket(fd as i32) in listen()
314 pub fn shutdown(fd: usize, how: usize) -> Result<usize, SystemError> { in shutdown()
316 .get_socket(fd as i32) in shutdown()
330 pub fn accept(fd: usize, addr: *mut SockAddr, addrlen: *mut u32) -> Result<usize, SystemError> { in accept()
332 .get_socket(fd as i32) in accept()
367 fd: usize, in getsockname()
375 .get_socket(fd as i32) in getsockname()
396 fd: usize, in getpeername()
405 .get_socket(fd as i32) in getpeername()