Home
last modified time | relevance | path

Searched refs:msghdr (Results 1 – 25 of 85) sorted by relevance

1234

/freebsd-10-stable/tools/regression/sockets/unix_cmsg/
Dunix_cmsg.c762 message_send(int fd, const struct msghdr *msghdr) in message_send() argument
768 size = msghdr->msg_iov != 0 ? msghdr->msg_iov->iov_len : 0; in message_send()
771 (u_int)msghdr->msg_controllen); in message_send()
772 cmsghdr = CMSG_FIRSTHDR(msghdr); in message_send()
777 ssize = sendmsg(fd, msghdr, 0); in message_send()
796 message_sendn(int fd, struct msghdr *msghdr) in message_sendn() argument
802 if (message_send(fd, msghdr) < 0) in message_sendn()
809 message_recv(int fd, struct msghdr *msghdr) in message_recv() argument
819 size = msghdr->msg_iov != NULL ? msghdr->msg_iov->iov_len : 0; in message_recv()
820 ssize = recvmsg(fd, msghdr, MSG_WAITALL); in message_recv()
[all …]
/freebsd-10-stable/sys/kern/
Dsysv_msg.c101 static void msg_freehdr(struct msg *msghdr);
387 msg_freehdr(msghdr) in msg_freehdr() argument
388 struct msg *msghdr; in msg_freehdr()
390 while (msghdr->msg_ts > 0) {
392 if (msghdr->msg_spot < 0 || msghdr->msg_spot >= msginfo.msgseg)
394 next = msgmaps[msghdr->msg_spot].next;
395 msgmaps[msghdr->msg_spot].next = free_msgmaps;
396 free_msgmaps = msghdr->msg_spot;
398 msghdr->msg_spot = next;
399 if (msghdr->msg_ts >= msginfo.msgssz)
[all …]
Duipc_syscalls.c103 static int sendit(struct thread *td, int s, struct msghdr *mp, int flags);
104 static int recvit(struct thread *td, int s, struct msghdr *mp, void *namelenp);
820 struct msghdr *mp;
882 struct msghdr *mp;
982 struct msghdr msg;
1009 struct msghdr msg;
1032 struct msghdr msg;
1059 struct msghdr msg;
1082 struct msghdr *mp;
1244 struct msghdr *mp;
[all …]
/freebsd-10-stable/tests/sys/kern/
Dunix_passfd_test.c117 struct msghdr msghdr; in sendfd_payload() local
120 bzero(&msghdr, sizeof(msghdr)); in sendfd_payload()
123 msghdr.msg_control = message; in sendfd_payload()
124 msghdr.msg_controllen = sizeof(message); in sendfd_payload()
129 msghdr.msg_iov = &iovec; in sendfd_payload()
130 msghdr.msg_iovlen = 1; in sendfd_payload()
138 len = sendmsg(sockfd, &msghdr, 0); in sendfd_payload()
158 struct msghdr msghdr; in recvfd_payload() local
162 bzero(&msghdr, sizeof(msghdr)); in recvfd_payload()
164 msghdr.msg_control = message; in recvfd_payload()
[all …]
/freebsd-10-stable/crypto/heimdal/lib/krb5/
Dchangepw.c84 struct msghdr msghdr; in chgpw_send_request() local
125 memset(&msghdr, 0, sizeof(msghdr)); in chgpw_send_request()
126 msghdr.msg_name = NULL; in chgpw_send_request()
127 msghdr.msg_namelen = 0; in chgpw_send_request()
128 msghdr.msg_iov = iov; in chgpw_send_request()
129 msghdr.msg_iovlen = sizeof(iov)/sizeof(*iov); in chgpw_send_request()
131 msghdr.msg_control = NULL; in chgpw_send_request()
132 msghdr.msg_controllen = 0; in chgpw_send_request()
142 if (rk_IS_SOCKET_ERROR( sendmsg (sock, &msghdr, 0) )) { in chgpw_send_request()
178 struct msghdr msghdr; in setpw_send_request() local
[all …]
/freebsd-10-stable/lib/libnv/
Dmsgio.c119 msg_recv(int sock, struct msghdr *msg) in msg_recv()
145 msg_send(int sock, const struct msghdr *msg) in msg_send()
167 struct msghdr msg; in cred_send()
207 struct msghdr msg; in cred_recv()
242 struct msghdr msg; in fd_package_send()
291 struct msghdr msg; in fd_package_recv()
Dmsgio.h39 struct msghdr;
/freebsd-10-stable/tools/regression/netinet6/inet6_rth/
Dinet6_rth-segments.c44 static void init_hdrs(struct msghdr *, struct cmsghdr *, char *, size_t);
226 struct msghdr mh; in test_cmsg_nexthdr()
284 struct msghdr mh; in test_cmsg_firsthdr()
328 init_hdrs(struct msghdr *mhp, struct cmsghdr *cmhp, char *bufp, size_t bufsize) in init_hdrs()
331 memset((void *)mhp, 0, sizeof(struct msghdr)); in init_hdrs()
/freebsd-10-stable/lib/libc/sys/
Dsendmsg.c45 sendmsg(int s, const struct msghdr *msg, int flags) in sendmsg()
48 return (((int (*)(int, const struct msghdr *, int)) in sendmsg()
Drecvmsg.c45 recvmsg(int s, struct msghdr *msg, int flags) in recvmsg()
48 return (((int (*)(int, struct msghdr *, int)) in recvmsg()
/freebsd-10-stable/crypto/heimdal/kpasswd/
Dkpasswdd.c75 struct msghdr msghdr; in send_reply() local
95 memset (&msghdr, 0, sizeof(msghdr)); in send_reply()
96 msghdr.msg_name = (void *)sa; in send_reply()
97 msghdr.msg_namelen = sa_size; in send_reply()
98 msghdr.msg_iov = iov; in send_reply()
99 msghdr.msg_iovlen = sizeof(iov)/sizeof(*iov); in send_reply()
101 msghdr.msg_control = NULL; in send_reply()
102 msghdr.msg_controllen = 0; in send_reply()
117 if (sendmsg (s, &msghdr, 0) < 0) in send_reply()
/freebsd-10-stable/sys/compat/linux/
Dlinux_socket.c82 l_uint, struct msghdr *);
548 linux_to_bsd_msghdr(struct msghdr *bhdr, const struct l_msghdr *lhdr) in linux_to_bsd_msghdr()
573 bsd_to_linux_msghdr(const struct msghdr *bhdr, struct l_msghdr *lhdr) in bsd_to_linux_msghdr()
608 linux_sendit(struct thread *td, int s, struct msghdr *mp, int flags, in linux_sendit()
661 struct msghdr msg; in linux_sendto_hdrincl()
1034 struct msghdr msg; in linux_sendto()
1056 struct msghdr msg; in linux_recvfrom()
1101 linux_sendmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr, in linux_sendmsg_common() argument
1107 struct msghdr msg; in linux_sendmsg_common()
1118 error = copyin(msghdr, &linux_msg, sizeof(linux_msg)); in linux_sendmsg_common()
[all …]
/freebsd-10-stable/crypto/heimdal/lib/roken/
Dsendmsg.c41 sendmsg(rk_socket_t s, const struct msghdr *msg, int flags) in sendmsg()
126 sendmsg_w32(rk_socket_t s, const struct msghdr * msg, int flags) in sendmsg_w32()
Drecvmsg.c39 recvmsg(int s, struct msghdr *msg, int flags) in recvmsg()
/freebsd-10-stable/contrib/pf/pflogd/
Dprivsep_fdpass.c52 struct msghdr msg; in send_fd()
91 struct msghdr msg; in receive_fd()
/freebsd-10-stable/tools/regression/capsicum/syscalls/
Dmisc.c59 struct msghdr msg; in descriptor_send()
89 struct msghdr msg; in descriptor_recv()
/freebsd-10-stable/usr.sbin/traceroute6/
Dtraceroute6.c311 int wait_for_reply(int, struct msghdr *);
319 int get_hoplim(struct msghdr *);
322 int packet_ok(struct msghdr *, int, int);
323 void print(struct msghdr *, int);
330 struct msghdr rcvmhdr;
982 struct msghdr *mhdr;
1102 struct msghdr *mhdr; in get_hoplim()
1189 struct msghdr *mhdr; in packet_ok()
1378 struct msghdr *mhdr; in print()
/freebsd-10-stable/lib/libc/include/
Dlibc_private.h309 struct msghdr;
355 __ssize_t __sys_recvmsg(int, struct msghdr *, int);
358 __ssize_t __sys_sendmsg(int, const struct msghdr *, int);
/freebsd-10-stable/crypto/openssh/
Dmonitor_fdpass.c55 struct msghdr msg; in mm_send_fd()
116 struct msghdr msg; in mm_receive_fd()
/freebsd-10-stable/sbin/hastd/
Dproto_common.c66 struct msghdr msg; in proto_descriptor_send()
166 struct msghdr msg; in proto_descriptor_recv()
/freebsd-10-stable/contrib/openbsm/bin/auditdistd/
Dproto_common.c65 struct msghdr msg; in proto_descriptor_send()
165 struct msghdr msg; in proto_descriptor_recv()
/freebsd-10-stable/contrib/netbsd-tests/include/sys/
Dt_socket.c33 struct msghdr msg; in ATF_TC_BODY()
84 struct msghdr msg; in ATF_TC_BODY()
/freebsd-10-stable/sys/sys/
Dsocket.h400 struct msghdr { struct
610 ssize_t recvmsg(int, struct msghdr *, int);
614 ssize_t sendmsg(int, const struct msghdr *, int);
/freebsd-10-stable/contrib/netbsd-tests/net/fdpass/
Dfdpass.c49 struct msghdr msg; in send_fd()
101 struct msghdr msg; in recv_fd()
/freebsd-10-stable/sbin/ping6/
Dping6.c248 struct msghdr smsghdr;
259 int get_hoplim(struct msghdr *);
260 int get_pathmtu(struct msghdr *);
261 struct in6_pktinfo *get_rcvpktinfo(struct msghdr *);
275 void pr_pack(u_char *, int, struct msghdr *);
276 void pr_exthdrs(struct msghdr *);
1086 struct msghdr m; in main()
1459 pr_pack(u_char *buf, int cc, struct msghdr *mhdr) in pr_pack()
1745 pr_exthdrs(struct msghdr *mhdr) in pr_exthdrs()
2098 get_hoplim(struct msghdr *mhdr) in get_hoplim()
[all …]

1234