| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | monitor_fdpass.c | 57 if (sizeof(cmsgbuf.buf) < CMSG_SPACE(sizeof(int))) { in mm_send_fd() 59 sizeof(cmsgbuf.buf), CMSG_SPACE(sizeof(int))); in mm_send_fd() 66 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in mm_send_fd() 113 if (sizeof(cmsgbuf.buf) < CMSG_SPACE(sizeof(int))) { in mm_receive_fd() 115 sizeof(cmsgbuf.buf), CMSG_SPACE(sizeof(int))); in mm_receive_fd() 126 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in mm_receive_fd()
|
| /netbsd/src/tests/net/fdpass/ |
| D | fdpass.c | 60 if (sizeof(cmsgbuf.buf) < CMSG_SPACE(sizeof(int))) in send_fd() 62 sizeof(cmsgbuf.buf), CMSG_SPACE(sizeof(int))); in send_fd() 66 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in send_fd() 113 if (sizeof(cmsgbuf.buf) < CMSG_SPACE(sizeof(int))) in recv_fd() 115 sizeof(cmsgbuf.buf), CMSG_SPACE(sizeof(int))); in recv_fd() 123 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in recv_fd()
|
| /netbsd/src/lib/libc/net/ |
| D | sctp_sys_calls.c | 771 cmsgbuf = malloc(CMSG_SPACE(sizeof(struct sctp_sndinfo)) + in sctp_sendv() 772 CMSG_SPACE(sizeof(struct sctp_prinfo)) + in sctp_sendv() 773 CMSG_SPACE(sizeof(struct sctp_authinfo)) + in sctp_sendv() 774 (size_t)addrcnt * CMSG_SPACE(sizeof(struct in6_addr))); in sctp_sendv() 801 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndinfo)); in sctp_sendv() 802 … cmsg = (struct cmsghdr *)((caddr_t)cmsg + CMSG_SPACE(sizeof(struct sctp_sndinfo))); in sctp_sendv() 815 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_prinfo)); in sctp_sendv() 816 … cmsg = (struct cmsghdr *)((caddr_t)cmsg + CMSG_SPACE(sizeof(struct sctp_prinfo))); in sctp_sendv() 828 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_authinfo)); in sctp_sendv() 829 … cmsg = (struct cmsghdr *)((caddr_t)cmsg + CMSG_SPACE(sizeof(struct sctp_authinfo))); in sctp_sendv() [all …]
|
| D | ip6opt.c | 83 sp = CMSG_SPACE((nbytes + 7) & ~7); in inet6_option_space() 293 if (cmsg->cmsg_len < CMSG_SPACE(sizeof(struct ip6_ext))) in inet6_option_next() 297 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen)) in inet6_option_next() 352 if (cmsg->cmsg_len < CMSG_SPACE(sizeof(struct ip6_ext))) in inet6_option_find() 356 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen)) in inet6_option_find()
|
| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| D | unix_recv_fd.c | 70 #if defined(CMSG_SPACE) && !defined(NO_MSGHDR_MSG_CONTROL) in unix_recv_fd() 73 char control[CMSG_SPACE(sizeof(newfd))]; in unix_recv_fd() 82 msg.msg_controllen = CMSG_SPACE(sizeof(newfd)); /* normal */ in unix_recv_fd() 107 #if defined(CMSG_SPACE) && !defined(NO_MSGHDR_MSG_CONTROL) in unix_recv_fd()
|
| D | unix_send_fd.c | 77 #if defined(CMSG_SPACE) && !defined(NO_MSGHDR_MSG_CONTROL) in unix_send_fd() 80 char control[CMSG_SPACE(sizeof(sendfd))]; in unix_send_fd() 90 msg.msg_controllen = CMSG_SPACE(sizeof(sendfd)); /* normal */ in unix_send_fd()
|
| D | sys_defs.h | 90 #ifndef CMSG_SPACE 91 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) macro 610 #ifndef CMSG_SPACE 611 #define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len)) macro
|
| /netbsd/src/external/bsd/wpa/dist/src/crypto/ |
| D | crypto_linux.c | 451 char buf[CMSG_SPACE(sizeof(u32))]; in linux_af_alg_skcipher_oper() 463 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in linux_af_alg_skcipher_oper() 542 char buf[CMSG_SPACE(sizeof(u32))]; in rc4_skip() 565 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in rc4_skip() 612 char buf[CMSG_SPACE(sizeof(u32))]; in des_encrypt() 638 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in des_encrypt() 697 msg.msg_controllen = CMSG_SPACE(sizeof(u32)) + in aes_128_cbc_oper() 698 CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_128_cbc_oper() 712 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_128_cbc_oper() 806 msg.msg_controllen = CMSG_SPACE(sizeof(u32)) + in aes_unwrap() [all …]
|
| /netbsd/src/regress/sys/kern/unfdpass/ |
| D | unfdpass.c | 68 #define MESSAGE_SIZE (CMSG_SPACE(FDCM_DATASIZE) + \ 69 CMSG_SPACE(CRCM_DATASIZE)) 101 message = malloc(CMSG_SPACE(MESSAGE_SIZE)); 104 memset(message, 0, CMSG_SPACE(MESSAGE_SIZE)); 356 fdcm = malloc(CMSG_SPACE(FDCM_DATASIZE)); in child() 359 memset(fdcm, 0, CMSG_SPACE(FDCM_DATASIZE)); in child()
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/ |
| D | recvmsg-reverse.c | 40 char wc[CMSG_SPACE (sizeof (struct ucred)) + CMSG_SPACE (sizeof (int))]; 56 char rc[CMSG_SPACE (sizeof (struct ucred)) + 7];
|
| /netbsd/src/tests/include/sys/ |
| D | t_socket.c | 43 cmp = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY() 57 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in ATF_TC_BODY() 132 cmp = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY() 146 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in ATF_TC_BODY()
|
| /netbsd/src/external/bsd/openldap/dist/libraries/liblutil/ |
| D | getpeereid.c | 103 # ifndef CMSG_SPACE in lutil_getpeereid() 104 # define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len)) in lutil_getpeereid() 185 crmsgsize = CMSG_SPACE(SOCKCREDSIZE(NGROUPS)); in lutil_getpeereid()
|
| /netbsd/src/dist/pf/sbin/pflogd/ |
| D | privsep_fdpass.c | 54 char tmp[CMSG_SPACE(sizeof(int))]; in send_fd() 90 char tmp[CMSG_SPACE(sizeof(int))]; in receive_fd()
|
| /netbsd/src/external/bsd/openldap/dist/libraries/libldap/ |
| D | os-local.c | 197 # ifndef CMSG_SPACE in ldap_pvt_connect() 198 # define CMSG_SPACE(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) + _CMSG_ALIGN(len) ) in ldap_pvt_connect() macro 205 unsigned char control[CMSG_SPACE(sizeof(int))]; in ldap_pvt_connect()
|
| /netbsd/src/external/bsd/tmux/dist/compat/ |
| D | imsg.c | 59 char buf[CMSG_SPACE(sizeof(int) * 1)]; in imsg_read() 74 msg.msg_controllen = CMSG_SPACE(sizeof(int) * 16); in imsg_read() 81 (int)((CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int)) in imsg_read()
|
| D | imsg-buffer.c | 630 char buf[CMSG_SPACE(sizeof(int))]; in msgbuf_write() 653 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in msgbuf_write()
|
| /netbsd/src/usr.sbin/mld6query/ |
| D | mld6.c | 200 cmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + CMSG_SPACE(hbhlen); in make_msg() 203 cmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in make_msg()
|
| /netbsd/src/tests/lib/libc/sys/ |
| D | t_kevent.c | 91 msg = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY() 97 m.msg_controllen = CMSG_SPACE(sizeof(int)); in ATF_TC_BODY()
|
| /netbsd/src/external/bsd/tmux/dist/ |
| D | compat.h | 197 #ifndef CMSG_SPACE 198 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) macro
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/bio/ |
| D | bss_dgram.c | 1229 char cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndinfo)) + in dgram_sctp_write() 1230 CMSG_SPACE(sizeof(struct sctp_prinfo))]; in dgram_sctp_write() 1234 char cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in dgram_sctp_write() 1284 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndinfo)); in dgram_sctp_write() 1287 (struct cmsghdr *)&cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndinfo))]; in dgram_sctp_write() 1295 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_prinfo)); in dgram_sctp_write() 1311 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in dgram_sctp_write()
|
| /netbsd/src/sys/compat/common/ |
| D | uipc_syscalls_43.c | 316 clen = CMSG_SPACE(accrightslen); in compat43_set_accrights() 324 cmsg->cmsg_len = CMSG_SPACE(accrightslen); in compat43_set_accrights()
|
| /netbsd/src/tests/net/net/ |
| D | t_pktinfo.c | 106 char control[CMSG_SPACE(sizeof(*ipi)) * 2]; in receive()
|
| /netbsd/src/external/bsd/mdocml/dist/ |
| D | mandocd.c | 69 uint8_t controlbuf[CMSG_SPACE(NUM_FDS * sizeof(int))]; in read_fds()
|
| /netbsd/src/usr.sbin/inetd/ |
| D | inetd.c | 1077 __CTASSERT(sizeof(cmsgbuf) > CMSG_SPACE(sizeof(struct in_pktinfo))); in sendfromto() 1079 __CTASSERT(sizeof(cmsgbuf) > CMSG_SPACE(sizeof(struct in6_pktinfo))); in sendfromto() 1111 msg.msg_controllen += CMSG_SPACE(sizeof(struct in_pktinfo)); in sendfromto() 1131 msg.msg_controllen += CMSG_SPACE(sizeof(struct in6_pktinfo)); in sendfromto()
|
| /netbsd/src/sys/kern/ |
| D | uipc_usrreq.c | 1509 rights->m_len = CMSG_SPACE(nfds * sizeof(int)); in unp_externalize() 1521 rights->m_len = CMSG_SPACE(0); in unp_externalize() 1585 newcm = malloc(CMSG_SPACE(nfds * sizeof(file_t *)), M_MBUF, M_WAITOK); in unp_internalize() 1628 MEXTADD(control, newcm, CMSG_SPACE(nfds * sizeof(file_t *)), in unp_internalize() 1636 control->m_len = CMSG_SPACE(nfds * sizeof(file_t *)); in unp_internalize()
|