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

Function orecv

freebsd/kern/uipc_syscalls.c:1124–1139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122
1123#ifdef COMPAT_OLDSOCK
1124int
1125orecv(struct thread *td, struct orecv_args *uap)
1126{
1127 struct msghdr msg;
1128 struct iovec aiov;
1129
1130 msg.msg_name = 0;
1131 msg.msg_namelen = 0;
1132 msg.msg_iov = &aiov;
1133 msg.msg_iovlen = 1;
1134 aiov.iov_base = uap->buf;
1135 aiov.iov_len = uap->len;
1136 msg.msg_control = 0;
1137 msg.msg_flags = uap->flags;
1138 return (recvit(td, uap->s, &msg, NULL));
1139}
1140
1141/*
1142 * Old recvmsg. This code takes advantage of the fact that the old msghdr

Callers

nothing calls this directly

Calls 1

recvitFunction · 0.85

Tested by

no test coverage detected