pub fn sys_sendto(abi: &mut LinuxRiscv64Abi, trapframe: &mut Trapframe) -> usizeExpand description
Linux sys_sendto implementation
Send a message on a socket. Unlike sendmsg, this directly takes a buffer and address.
Arguments:
- abi: LinuxRiscv64Abi context
- trapframe: Trapframe containing syscall arguments
- arg0: sockfd (socket file descriptor)
- arg1: buf (pointer to data buffer)
- arg2: len (length of data)
- arg3: flags (send flags)
- arg4: dest_addr (pointer to destination address, may be NULL for connected sockets)
- arg5: addrlen (size of destination address)
Returns:
- number of bytes sent on success
- negative errno on error