pub fn sys_bind(abi: &mut LinuxRiscv64Abi, trapframe: &mut Trapframe) -> usizeExpand description
Linux sys_bind implementation
Binds a socket to an address. For AF_UNIX sockets, this creates a socket file in the VFS at the specified path.
Arguments:
- abi: LinuxRiscv64Abi context
- trapframe: Trapframe containing syscall arguments
- arg0: sockfd (socket file descriptor)
- arg1: addr (pointer to socket address structure)
- arg2: addrlen (size of address structure)
Returns:
- 0 on success
- usize::MAX (Linux -1) indicating failure