Lines Matching refs:usize
31 address_family: usize, in socket() argument
32 socket_type: usize, in socket() argument
33 protocol: usize, in socket() argument
34 ) -> Result<usize, SystemError> { in socket() argument
62 let fd = current_pcb().alloc_fd(f, None).map(|x| x as usize); in socket()
75 fd: usize, in setsockopt() argument
76 level: usize, in setsockopt() argument
77 optname: usize, in setsockopt() argument
79 ) -> Result<usize, SystemError> { in setsockopt() argument
98 fd: usize, in getsockopt() argument
99 level: usize, in getsockopt() argument
100 optname: usize, in getsockopt() argument
103 ) -> Result<usize, SystemError> { in getsockopt() argument
167 pub fn connect(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in connect() argument
185 pub fn bind(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in bind() argument
205 fd: usize, in sendto() argument
209 addrlen: usize, in sendto() argument
210 ) -> Result<usize, SystemError> { in sendto() argument
234 fd: usize, in recvfrom() argument
239 ) -> Result<usize, SystemError> { in recvfrom() argument
248 let n: usize = n?; in recvfrom()
267 pub fn recvmsg(fd: usize, msg: &mut MsgHdr, _flags: u32) -> Result<usize, SystemError> { in recvmsg() argument
281 let n: usize = n?; in recvmsg()
299 pub fn listen(fd: usize, backlog: usize) -> Result<usize, SystemError> { in listen() argument
314 pub fn shutdown(fd: usize, how: usize) -> Result<usize, SystemError> { in shutdown() argument
330 pub fn accept(fd: usize, addr: *mut SockAddr, addrlen: *mut u32) -> Result<usize, SystemError> { in accept() argument
353 return Ok(new_fd as usize); in accept()
367 fd: usize, in getsockname() argument
370 ) -> Result<usize, SystemError> { in getsockname() argument
396 fd: usize, in getpeername() argument
399 ) -> Result<usize, SystemError> { in getpeername() argument
477 pub fn to_endpoint(addr: *const SockAddr, len: usize) -> Result<Endpoint, SystemError> { in to_endpoint()
480 addr as usize as u64, in to_endpoint()
523 pub fn len(&self) -> Result<usize, SystemError> { in len() argument
545 ) -> Result<usize, SystemError> { in write_to_user() argument
552 addr as usize as u64, in write_to_user()
554 ) || !verify_area(addr_len as usize as u64, core::mem::size_of::<u32>() as u64) in write_to_user()
559 let to_write = min(self.len()?, *addr_len as usize); in write_to_user()
634 pub msg_iovlen: usize,
638 pub msg_controllen: usize,