pub fn sys_getsockname(
abi: &mut LinuxRiscv64Abi,
trapframe: &mut Trapframe,
) -> usizeExpand description
Linux sys_getsockname implementation
Gets the current address of a socket.
Arguments:
- abi: LinuxRiscv64Abi context
- trapframe: Trapframe containing syscall arguments
- arg0: sockfd (socket file descriptor)
- arg1: addr (pointer to socket address structure)
- arg2: addrlen (pointer to size of address structure)
Returns:
- 0 on success
- usize::MAX (Linux -1) indicating failure