MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sys_sendto

Function sys_sendto

freebsd/kern/uipc_syscalls.c:830–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830int
831sys_sendto(struct thread *td, struct sendto_args *uap)
832{
833 struct msghdr msg;
834 struct iovec aiov;
835
836 msg.msg_name = __DECONST(void *, uap->to);
837 msg.msg_namelen = uap->tolen;
838 msg.msg_iov = &aiov;
839 msg.msg_iovlen = 1;
840 msg.msg_control = 0;
841#ifdef COMPAT_OLDSOCK
842 if (SV_PROC_FLAG(td->td_proc, SV_AOUT))
843 msg.msg_flags = 0;
844#endif
845 aiov.iov_base = __DECONST(void *, uap->buf);
846 aiov.iov_len = uap->len;
847 return (sendit(td, uap->s, &msg, uap->flags));
848}
849
850#ifdef COMPAT_OLDSOCK
851int

Callers 1

ngctl_sendtoFunction · 0.85

Calls 1

senditFunction · 0.85

Tested by

no test coverage detected