OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:CMSG_ALIGN
(Results
1 - 16
of
16
) sorted by relevancy
/src/external/bsd/tmux/dist/
compat.h
197
#ifndef
CMSG_ALIGN
199
#define
CMSG_ALIGN
_CMSG_DATA_ALIGN
201
#define
CMSG_ALIGN
(len) (((len) + sizeof(long) - 1) & ~(sizeof(long) - 1))
206
#define CMSG_SPACE(len) (
CMSG_ALIGN
(sizeof(struct cmsghdr)) +
CMSG_ALIGN
(len))
210
#define CMSG_LEN(len) (
CMSG_ALIGN
(sizeof(struct cmsghdr)) + (len))
/src/lib/librumpuser/
rumpuser_port.h
285
#ifdef
CMSG_ALIGN
286
#define __CMSG_ALIGN(a)
CMSG_ALIGN
(a)
/src/sys/compat/linux/common/
linux_socket.h
206
(
CMSG_ALIGN
(sizeof(struct cmsghdr)) - sizeof(struct linux_cmsghdr))
linux_socket.c
603
CMSG_ALIGN
(sizeof(*cmsg)) - sizeof(*cmsg));
/src/external/ibm-public/postfix/dist/src/util/
sys_defs.h
92
#define CMSG_SPACE(len) (
CMSG_ALIGN
(sizeof(struct cmsghdr)) +
CMSG_ALIGN
(len))
95
#define CMSG_LEN(len) (
CMSG_ALIGN
(sizeof(struct cmsghdr)) + (len))
97
#ifndef
CMSG_ALIGN
98
#define
CMSG_ALIGN
(n) ALIGN(n)
/src/sys/compat/netbsd32/
netbsd32_socket.c
123
cmsg = (void *)((char *)cmsg +
CMSG_ALIGN
(cmsg->cmsg_len));
457
cidx +=
CMSG_ALIGN
(cmsg->cmsg_len);
466
mp->msg_controllen = ctl_mbuf->m_len =
CMSG_ALIGN
(cidx);
/src/external/gpl3/gcc.old/dist/libphobos/libdruntime/core/sys/posix/sys/
socket.d
206
size_t
CMSG_ALIGN
( size_t len ) pure nothrow @nogc
213
return
CMSG_ALIGN
(cmsghdr.sizeof) + len;
219
return
CMSG_ALIGN
(len) +
CMSG_ALIGN
(cmsghdr.sizeof);
/src/external/bsd/dhcpcd/dist/src/
privsep.c
85
/*
CMSG_ALIGN
is a Linux extension */
86
#ifndef
CMSG_ALIGN
87
#define
CMSG_ALIGN
(n) (CMSG_SPACE((n)) - CMSG_SPACE(0))
92
((has_cmsg) ? (socklen_t)(
CMSG_ALIGN
((pos)) - (pos)) : 0)
/src/sys/kern/
uipc_usrreq.c
1415
const size_t nfds = (cm->cmsg_len -
CMSG_ALIGN
(sizeof(*cm))) /
1556
cm->cmsg_len <
CMSG_ALIGN
(sizeof(*cm)))
1563
nfds = (cm->cmsg_len -
CMSG_ALIGN
(sizeof(*cm))) / sizeof(int);
1925
qfds = (cm->cmsg_len -
CMSG_ALIGN
(sizeof(*cm)))
uipc_syscalls.c
578
if (mp->msg_controllen <
CMSG_ALIGN
(sizeof(struct cmsghdr))) {
810
KASSERT(
CMSG_ALIGN
(sizeof(*cm)) <= cm->cmsg_len);
812
nfds = (cm->cmsg_len -
CMSG_ALIGN
(sizeof(*cm))) / sizeof(int);
uipc_socket2.c
1454
memset((uint8_t *)*p + size, 0,
CMSG_ALIGN
(size) - size);
/src/sys/sys/
socket.h
547
#define
CMSG_ALIGN
(n) __CMSG_ALIGN(n)
/src/sys/netinet/
ip_output.c
1528
control->m_data +=
CMSG_ALIGN
(cm->cmsg_len),
1529
control->m_len -=
CMSG_ALIGN
(cm->cmsg_len)) {
sctp_output.c
129
if ((tlen-at) < (int)
CMSG_ALIGN
(sizeof(cmh))) {
144
at +=
CMSG_ALIGN
(sizeof(struct cmsghdr));
145
if ((int)(cmh.cmsg_len -
CMSG_ALIGN
(sizeof(struct cmsghdr))) < cpsize) {
155
at +=
CMSG_ALIGN
(cmh.cmsg_len);
/src/external/bsd/unbound/dist/util/
netevent.c
87
/** if
CMSG_ALIGN
is not defined on this platform, a workaround */
88
#ifndef
CMSG_ALIGN
90
# define
CMSG_ALIGN
(n) __CMSG_ALIGN(n)
92
# define
CMSG_ALIGN
_CMSG_DATA_ALIGN
94
# define
CMSG_ALIGN
(len) (((len)+sizeof(long)-1) & ~(sizeof(long)-1))
100
# define CMSG_LEN(len) (
CMSG_ALIGN
(sizeof(struct cmsghdr))+(len))
106
# define CMSG_SPACE(l) (
CMSG_ALIGN
(l)+_CMSG_HDR_ALIGN(sizeof(struct cmsghdr)))
108
# define CMSG_SPACE(l) (
CMSG_ALIGN
(l)+
CMSG_ALIGN
(sizeof(struct cmsghdr)))
/src/sys/netinet6/
ip6_output.c
2793
for (; control->m_len > 0; control->m_data +=
CMSG_ALIGN
(cm->cmsg_len),
2794
control->m_len -=
CMSG_ALIGN
(cm->cmsg_len)) {
Completed in 38 milliseconds
Indexes created Mon Aug 03 00:25:36 UTC 2026