Lines Matching refs:i64
43 ) -> Result<i64, SystemError> { in do_socket() argument
71 let fd = current_pcb().alloc_fd(f, None).map(|x| x as i64); in do_socket()
101 ) -> Result<i64, SystemError> { in do_setsockopt() argument
144 ) -> Result<i64, SystemError> { in do_getsockopt() argument
230 pub fn do_connect(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<i64, SystemError> { in do_connect() argument
258 pub fn do_bind(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<i64, SystemError> { in do_bind() argument
305 ) -> Result<i64, SystemError> { in do_sendto() argument
320 return socket.write(buf, endpoint).map(|n| n as i64); in do_sendto()
360 ) -> Result<i64, SystemError> { in do_recvfrom() argument
391 return Ok(n as i64); in do_recvfrom()
395 pub extern "C" fn sys_recvmsg(regs: &pt_regs) -> i64 { in sys_recvmsg() argument
400 .map(|x| x as i64) in sys_recvmsg()
401 .unwrap_or_else(|e| e.to_posix_errno() as i64); in sys_recvmsg()
411 pub fn do_recvmsg(fd: usize, msg: *mut MsgHdr, _flags: usize) -> Result<i64, SystemError> { in do_recvmsg() argument
439 return Ok(n as i64); in do_recvmsg()
443 pub extern "C" fn sys_listen(regs: &pt_regs) -> i64 { in sys_listen() argument
447 .map(|x| x as i64) in sys_listen()
448 .unwrap_or_else(|e| e.to_posix_errno() as i64); in sys_listen()
457 pub fn do_listen(fd: usize, backlog: usize) -> Result<i64, SystemError> { in do_listen() argument
481 pub fn do_shutdown(fd: usize, how: usize) -> Result<i64, SystemError> { in do_shutdown() argument
507 pub fn do_accept(fd: usize, addr: *mut SockAddr, addrlen: *mut u32) -> Result<i64, SystemError> { in do_accept() argument
530 return Ok(new_fd as i64); in do_accept()
534 pub extern "C" fn sys_getsockname(regs: &pt_regs) -> i64 { in sys_getsockname() argument
539 .map(|x| x as i64) in sys_getsockname()
540 .unwrap_or_else(|e| e.to_posix_errno() as i64); in sys_getsockname()
557 ) -> Result<i64, SystemError> { in do_getsockname() argument
596 ) -> Result<i64, SystemError> { in do_getpeername() argument