/dports/devel/android-tools-fastboot/platform_system_core-platform-tools-29.0.5/base/ |
H A D | cmsg.cpp | 35 size_t cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); in SendFileDescriptorVector() 134 CMSG_ASSERT(CMSG_LEN(0) + 1 * sizeof(int) == CMSG_LEN(1 * sizeof(int))); in ReceiveFileDescriptorVector() 135 CMSG_ASSERT(CMSG_LEN(0) + 2 * sizeof(int) == CMSG_LEN(2 * sizeof(int))); in ReceiveFileDescriptorVector() 136 CMSG_ASSERT(CMSG_LEN(0) + 3 * sizeof(int) == CMSG_LEN(3 * sizeof(int))); in ReceiveFileDescriptorVector() 137 CMSG_ASSERT(CMSG_LEN(0) + 4 * sizeof(int) == CMSG_LEN(4 * sizeof(int))); in ReceiveFileDescriptorVector() 141 } else if (cmsg->cmsg_len <= CMSG_LEN(0)) { in ReceiveFileDescriptorVector() 146 size_t cmsg_fdcount = static_cast<size_t>(cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int); in ReceiveFileDescriptorVector()
|
/dports/devel/arm-none-eabi-newlib/newlib-2.4.0/newlib/libc/sys/linux/net/ |
H A D | inet6_option.c | 34 unsigned char *p = CMSG_DATA (cmsg) + cmsg->cmsg_len - CMSG_LEN (0); in add_pad() 122 newp->cmsg_len = CMSG_LEN (0); 188 int dsize = cmsg->cmsg_len - CMSG_LEN (0); 201 uint8_t *result = CMSG_DATA (cmsg) + cmsg->cmsg_len - CMSG_LEN (0); 206 dsize = cmsg->cmsg_len - CMSG_LEN (0); 210 assert (((cmsg->cmsg_len - CMSG_LEN (0)) % 8) == 0); 211 int len8b = (cmsg->cmsg_len - CMSG_LEN (0)) / 8 - 1; 247 if (cmsg->cmsg_len < CMSG_LEN (sizeof (struct ip6_ext)) 249 || cmsg->cmsg_len < CMSG_LEN ((ip6e->ip6e_len + 1) * 8)) 304 if (cmsg->cmsg_len < CMSG_LEN (sizeof (struct ip6_ext)) [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/native_client/tests/nonsfi/ |
H A D | socket_test.cc | 154 ASSERT_EQ(CMSG_LEN(1), 13); in TestCmsg() 155 ASSERT_EQ(CMSG_LEN(2), 14); in TestCmsg() 156 ASSERT_EQ(CMSG_LEN(3), 15); in TestCmsg() 157 ASSERT_EQ(CMSG_LEN(4), 16); in TestCmsg() 158 ASSERT_EQ(CMSG_LEN(5), 17); in TestCmsg() 172 cmsg_ptr->cmsg_len = CMSG_LEN(1); in TestCmsg() 176 cmsg_ptr->cmsg_len = CMSG_LEN(2); in TestCmsg() 183 ASSERT_EQ(cmsg_ptr->cmsg_len, CMSG_LEN(1)); in TestCmsg() 186 ASSERT_EQ(cmsg_ptr->cmsg_len, CMSG_LEN(2)); in TestCmsg()
|
/dports/security/clamav-lts/clamav-0.103.5/cmake/ |
H A D | CheckFDPassing.c | 15 #if !defined CMSG_SPACE || !defined CMSG_LEN 24 #ifndef CMSG_LEN 25 #define CMSG_LEN(len) (ALIGN(sizeof(struct cmsghdr)) + len) macro 47 msg.msg_controllen = CMSG_LEN(sizeof(int)); in send_fd() 50 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in send_fd() 100 if (cmsg->cmsg_len == CMSG_LEN(sizeof(int)) && in recv_fd()
|
/dports/security/clamav/clamav-0.104.2/cmake/ |
H A D | CheckFDPassing.c | 15 #if !defined CMSG_SPACE || !defined CMSG_LEN 24 #ifndef CMSG_LEN 25 #define CMSG_LEN(len) (ALIGN(sizeof(struct cmsghdr)) + len) macro 47 msg.msg_controllen = CMSG_LEN(sizeof(int)); in send_fd() 50 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in send_fd() 100 if (cmsg->cmsg_len == CMSG_LEN(sizeof(int)) && in recv_fd()
|
/dports/devel/libowfat/libowfat-0.32/io/ |
H A D | io_receivefd.c | 55 #ifndef CMSG_LEN in io_receivefd() 56 #define CMSG_LEN(x) x in io_receivefd() macro 58 h->cmsg_len=CMSG_LEN(sizeof(int)); in io_receivefd() 67 …if (!h || h->cmsg_len!=CMSG_LEN(sizeof(int)) || h->cmsg_level!=SOL_SOCKET || h->cmsg_type!=SCM_RIG… in io_receivefd()
|
H A D | io_passfd.c | 56 #ifndef CMSG_LEN in io_passfd() 57 #define CMSG_LEN(x) x in io_passfd() macro 59 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in io_passfd()
|
/dports/security/clamav/clamav-0.104.2/common/ |
H A D | fdpassing.h | 37 #if !defined CMSG_SPACE || !defined CMSG_LEN 46 #ifndef CMSG_LEN 47 #define CMSG_LEN(len) (ALIGN(sizeof(struct cmsghdr)) + len) macro
|
/dports/security/clamav-lts/clamav-0.103.5/shared/ |
H A D | fdpassing.h | 37 #if !defined CMSG_SPACE || !defined CMSG_LEN 46 #ifndef CMSG_LEN 47 #define CMSG_LEN(len) (ALIGN(sizeof(struct cmsghdr)) + len) macro
|
/dports/devel/9base/9base-6/lib9/ |
H A D | sendfd.c | 21 #ifndef CMSG_LEN 22 # define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr))+(len)) macro 43 msg.msg_controllen = CMSG_LEN(sizeof(int)); in sendfd() 46 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in sendfd()
|
/dports/sysutils/libptytty/libptytty-2.0/src/ |
H A D | fdpass.C | 39 #ifndef CMSG_LEN 40 # define CMSG_LEN(len) (sizeof (cmsghdr) + len) macro 69 cmsg->cmsg_len = CMSG_LEN (sizeof (int)); in send_fd() 112 && cmsg->cmsg_len >= CMSG_LEN (sizeof (int))) in recv_fd()
|
/dports/devel/plan9port/plan9port-1f098efb7370a0b28306d10681e21883fb1c1507/src/lib9/ |
H A D | sendfd.c | 21 #ifndef CMSG_LEN 22 # define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr))+(len)) macro 43 msg.msg_controllen = CMSG_LEN(sizeof(int)); in sendfd() 46 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in sendfd()
|
/dports/devel/socket_wrapper/socket_wrapper-1.1.9/tests/ |
H A D | test_swrap_unit.c | 67 cmsg->cmsg_len = CMSG_LEN(s1_len); in test_sendmsg_cmsg() 78 cmsg->cmsg_len = CMSG_LEN(s2_len); in test_sendmsg_cmsg() 95 assert_int_equal(cmsg->cmsg_len, CMSG_LEN(s1_len)); in test_sendmsg_cmsg() 100 assert_int_equal(cmsg->cmsg_len, CMSG_LEN(s2_len)); in test_sendmsg_cmsg()
|
/dports/devel/p5-PPerl/PPerl-0.25/ |
H A D | pass_fd.c | 113 msg.msg_controllen = CMSG_LEN(sizeof(sendfd)); in send_fd() 116 cmptr->cmsg_len = CMSG_LEN(sizeof(sendfd)); in send_fd() 144 msg.msg_controllen = CMSG_LEN(sizeof(int)); in recv_fd() 158 && cmptr->cmsg_len == CMSG_LEN(sizeof(int))) { in recv_fd()
|
/dports/www/py-scgi/scgi-2.2/scgi/ |
H A D | passfd.c | 33 #ifndef CMSG_LEN 34 #define CMSG_LEN(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len)) macro 82 msg.msg_controllen = CMSG_LEN(sizeof(int)); in send_fd() 84 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in send_fd()
|
/dports/www/mod_scgi/scgi-2.0/scgi/ |
H A D | passfd.c | 33 #ifndef CMSG_LEN 34 #define CMSG_LEN(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len)) macro 82 msg.msg_controllen = CMSG_LEN(sizeof(int)); in send_fd() 84 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in send_fd()
|
/dports/devel/android-tools-adb/platform_system_core-android-9.0.0_r3/libmemunreachable/ |
H A D | LeakPipe.cpp | 38 hdr.msg_controllen = CMSG_LEN(sizeof(int)); in SendFd() 41 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in SendFd() 72 hdr.msg_controllen = CMSG_LEN(sizeof(int)); in ReceiveFd()
|
/dports/devel/android-tools-fastboot/platform_system_core-platform-tools-29.0.5/libmemunreachable/ |
H A D | LeakPipe.cpp | 38 hdr.msg_controllen = CMSG_LEN(sizeof(int)); in SendFd() 41 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in SendFd() 72 hdr.msg_controllen = CMSG_LEN(sizeof(int)); in ReceiveFd()
|
/dports/mail/dovecot/dovecot-2.3.17/src/lib/ |
H A D | fdpass.c | 75 # undef CMSG_LEN 98 # define CMSG_LEN(len) \ macro 131 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in fd_send() 150 (size_t)(cmsg)->cmsg_len >= (size_t)CMSG_LEN(sizeof(int)) && \
|
/dports/devel/libunit/unit-1.26.1/src/ |
H A D | nxt_socket_msg.h | 87 cmsg->cmsg_len = CMSG_LEN(sizeof(nxt_socket_cred_t)); in nxt_socket_msg_oob_init() 107 cmsg->cmsg_len = CMSG_LEN(nfds * sizeof(int)); in nxt_socket_msg_oob_init() 140 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get_fds() 179 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get()
|
/dports/devel/glib20/glib-2.70.4/gio/ |
H A D | gnetworking.h.in | 57 #ifndef CMSG_LEN 58 /* CMSG_LEN and CMSG_SPACE are defined by RFC 2292, but missing on 61 #define CMSG_LEN(len) ((size_t)CMSG_DATA((struct cmsghdr *)NULL) + (len)) macro 67 #define CMSG_SPACE(len) GLIB_ALIGN_TO_SIZEOF (CMSG_LEN (len), struct cmsghdr)
|
/dports/www/unit/unit-1.26.1/src/ |
H A D | nxt_socket_msg.h | 87 cmsg->cmsg_len = CMSG_LEN(sizeof(nxt_socket_cred_t)); in nxt_socket_msg_oob_init() 107 cmsg->cmsg_len = CMSG_LEN(nfds * sizeof(int)); in nxt_socket_msg_oob_init() 140 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get_fds() 179 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get()
|
/dports/www/unit-php/unit-1.26.1/src/ |
H A D | nxt_socket_msg.h | 87 cmsg->cmsg_len = CMSG_LEN(sizeof(nxt_socket_cred_t)); in nxt_socket_msg_oob_init() 107 cmsg->cmsg_len = CMSG_LEN(nfds * sizeof(int)); in nxt_socket_msg_oob_init() 140 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get_fds() 179 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get()
|
/dports/www/unit-perl/unit-1.26.1/src/ |
H A D | nxt_socket_msg.h | 87 cmsg->cmsg_len = CMSG_LEN(sizeof(nxt_socket_cred_t)); in nxt_socket_msg_oob_init() 107 cmsg->cmsg_len = CMSG_LEN(nfds * sizeof(int)); in nxt_socket_msg_oob_init() 140 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get_fds() 179 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get()
|
/dports/www/unit-python/unit-1.26.1/src/ |
H A D | nxt_socket_msg.h | 87 cmsg->cmsg_len = CMSG_LEN(sizeof(nxt_socket_cred_t)); in nxt_socket_msg_oob_init() 107 cmsg->cmsg_len = CMSG_LEN(nfds * sizeof(int)); in nxt_socket_msg_oob_init() 140 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get_fds() 179 size = cmsg->cmsg_len - CMSG_LEN(0); in nxt_socket_msg_oob_get()
|