Home
last modified time | relevance | path

Searched refs:CMSG_ALIGN (Results 1 – 17 of 17) sorted by relevance

/netbsd-src/lib/librumpuser/
H A Drumpuser_port.h285 #ifdef CMSG_ALIGN
286 #define __CMSG_ALIGN(a) CMSG_ALIGN(a)
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Dsys_defs.h91 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
94 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
96 #ifndef CMSG_ALIGN
97 #define CMSG_ALIGN(n) ALIGN(n) macro
/netbsd-src/sys/compat/linux/common/
H A Dlinux_socket.h199 (CMSG_ALIGN(sizeof(struct cmsghdr)) - sizeof(struct linux_cmsghdr))
H A Dlinux_socket.c603 CMSG_ALIGN(sizeof(*cmsg)) - sizeof(*cmsg)); in linux_sys_sendmsg()
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_socket.c123 cmsg = (void *)((char *)cmsg + CMSG_ALIGN(cmsg->cmsg_len)); in copyout32_msg_control_mbuf()
456 cidx += CMSG_ALIGN(cmsg->cmsg_len); in copyin32_msg_control()
465 mp->msg_controllen = ctl_mbuf->m_len = CMSG_ALIGN(cidx); in copyin32_msg_control()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/sys/
H A Dsocket.d206 size_t CMSG_ALIGN( size_t len ) pure nothrow @nogc in version()
213 return CMSG_ALIGN(cmsghdr.sizeof) + len; in version()
219 return CMSG_ALIGN(len) + CMSG_ALIGN(cmsghdr.sizeof); in version()
/netbsd-src/external/bsd/dhcpcd/dist/src/
H A Dprivsep.c86 #ifndef CMSG_ALIGN
87 #define CMSG_ALIGN(n) (CMSG_SPACE((n)) - CMSG_SPACE(0)) macro
92 ((has_cmsg) ? (socklen_t)(CMSG_ALIGN((pos)) - (pos)) : 0)
/netbsd-src/sys/kern/
H A Duipc_usrreq.c1415 const size_t nfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) / in unp_externalize()
1555 cm->cmsg_len < CMSG_ALIGN(sizeof(*cm))) in unp_internalize()
1562 nfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) / sizeof(int); in unp_internalize()
1924 qfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) in unp_scan()
H A Duipc_syscalls.c577 if (mp->msg_controllen < CMSG_ALIGN(sizeof(struct cmsghdr))) { in do_sys_sendmsg_so()
809 KASSERT(CMSG_ALIGN(sizeof(*cm)) <= cm->cmsg_len); in free_rights()
811 nfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) / sizeof(int); in free_rights()
H A Duipc_socket2.c1454 memset((uint8_t *)*p + size, 0, CMSG_ALIGN(size) - size); in sbcreatecontrol1()
/netbsd-src/sys/sys/
H A Dsocket.h545 #define CMSG_ALIGN(n) __CMSG_ALIGN(n) macro
/netbsd-src/external/bsd/unbound/dist/util/
H A Dnetevent.c80 #ifndef CMSG_ALIGN
82 # define CMSG_ALIGN(n) __CMSG_ALIGN(n) macro
84 # define CMSG_ALIGN _CMSG_DATA_ALIGN macro
86 # define CMSG_ALIGN(len) (((len)+sizeof(long)-1) & ~(sizeof(long)-1)) macro
92 # define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr))+(len))
98 # define CMSG_SPACE(l) (CMSG_ALIGN(l)+_CMSG_HDR_ALIGN(sizeof(struct cmsghdr)))
100 # define CMSG_SPACE(l) (CMSG_ALIGN(l)+CMSG_ALIGN(sizeof(struct cmsghdr)))
/netbsd-src/sys/netinet/
H A Dip_output.c1516 control->m_data += CMSG_ALIGN(cm->cmsg_len), in ip_setpktopts()
1517 control->m_len -= CMSG_ALIGN(cm->cmsg_len)) { in ip_setpktopts()
H A Dsctp_output.c129 if ((tlen-at) < (int)CMSG_ALIGN(sizeof(cmh))) { in sctp_find_cmsg()
144 at += CMSG_ALIGN(sizeof(struct cmsghdr)); in sctp_find_cmsg()
145 if ((int)(cmh.cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr))) < cpsize) { in sctp_find_cmsg()
155 at += CMSG_ALIGN(cmh.cmsg_len); in sctp_find_cmsg()
/netbsd-src/sys/netinet6/
H A Dip6_output.c2793 for (; control->m_len > 0; control->m_data += CMSG_ALIGN(cm->cmsg_len), in ip6_setpktopts()
2794 control->m_len -= CMSG_ALIGN(cm->cmsg_len)) { in ip6_setpktopts()
/netbsd-src/external/bsd/unbound/dist/contrib/
H A Dfastrpz.patch3399 /** if CMSG_ALIGN is not defined on this platform, a workaround */
/netbsd-src/external/bsd/unbound/dist/doc/
H A DChangelog7927 - more portability defines for CMSG_SPACE, CMSG_ALIGN, CMSG_LEN.