/external/strace/ |
D | sockaddr.c | 70 print_sockaddr_data_un(const void *const buf, const int addrlen) in print_sockaddr_data_un() argument 73 const int un_len = addrlen > (int) sizeof(*sa_un) in print_sockaddr_data_un() 74 ? (int) sizeof(*sa_un) : addrlen; in print_sockaddr_data_un() 163 print_sockaddr_data_in(const void *const buf, const int addrlen) in print_sockaddr_data_in() argument 174 print_sockaddr_data_in6(const void *const buf, const int addrlen) in print_sockaddr_data_in6() argument 182 if (addrlen <= (int) SIN6_MIN_LEN) in print_sockaddr_data_in6() 303 print_sockaddr_data_ax25(const void *const buf, const int addrlen) in print_sockaddr_data_ax25() argument 306 size_t addrlen_us = MAX(addrlen, 0); in print_sockaddr_data_ax25() 353 print_sockaddr_data_ipx(const void *const buf, const int addrlen) in print_sockaddr_data_ipx() argument 380 print_sockaddr_data_x25(const void *const buf, const int addrlen) in print_sockaddr_data_x25() argument [all …]
|
D | bind.c | 38 const int addrlen = tcp->u_arg[2]; in SYS_FUNC() local 39 decode_sockaddr(tcp, tcp->u_arg[1], addrlen); in SYS_FUNC() 40 tprintf(", %d", addrlen); in SYS_FUNC()
|
/external/u-boot/drivers/mtd/ |
D | mw_eeprom.c | 19 static int addrlen; variable 81 ssi_tx_byte((EEP_OPC_READ << 5) | ((addr >> (addrlen - 5)) & 0x1f)); in mw_eeprom_read_word() 82 rcv = ssi_txrx_byte(addr << (13 - addrlen)); in mw_eeprom_read_word() 83 res = rcv << (16 - addrlen); in mw_eeprom_read_word() 84 bits = 4 + addrlen; in mw_eeprom_read_word() 109 switch (addrlen) { in mw_eeprom_write_word() 135 printf("Unsupported number of address bits: %d\n", addrlen); in mw_eeprom_write_word() 231 addrlen = mw_eeprom_size(dev); in mw_eeprom_probe() 233 if (addrlen < 6 || addrlen > 10) { in mw_eeprom_probe()
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
D | socket_ops.hpp | 64 std::size_t* addrlen, asio::error_code& ec); 68 std::size_t* addrlen, asio::error_code& ec); 72 state_type state, socket_addr_type* addr, std::size_t* addrlen, 77 std::size_t addrlen, asio::error_code& ec); 92 std::size_t addrlen, asio::error_code& ec); 95 std::size_t addrlen, asio::error_code& ec); 131 std::size_t* addrlen, asio::error_code& ec); 135 std::size_t* addrlen, asio::error_code& ec); 140 socket_addr_type* addr, std::size_t* addrlen, 173 std::size_t addrlen, asio::error_code& ec); [all …]
|
/external/ltp/lib/ |
D | safe_net.c | 87 socklen_t addrlen = sizeof(ss); in tst_getsockport() local 90 safe_getsockname(file, lineno, NULL, sockfd, sa, &addrlen); in tst_getsockport() 210 const struct sockaddr *dest_addr, socklen_t addrlen) in safe_sendto() argument 215 rval = sendto(sockfd, buf, len, flags, dest_addr, addrlen); in safe_sendto() 221 tst_sock_addr(dest_addr, addrlen, res, sizeof(res)), in safe_sendto() 222 addrlen); in safe_sendto() 326 int sockfd, struct sockaddr *addr, socklen_t *addrlen) in safe_accept() argument 330 rval = accept(sockfd, addr, addrlen); in safe_accept() 335 sockfd, addr, *addrlen); in safe_accept() 342 int sockfd, const struct sockaddr *addr, socklen_t addrlen) in safe_connect() argument [all …]
|
/external/ltp/include/ |
D | tst_safe_net.h | 50 #define SAFE_SENDTO(strict, fd, buf, len, flags, dest_addr, addrlen) \ argument 52 dest_addr, addrlen) 67 #define SAFE_ACCEPT(sockfd, addr, addrlen) \ argument 68 safe_accept(__FILE__, __LINE__, NULL, sockfd, addr, addrlen) 70 #define SAFE_CONNECT(sockfd, addr, addrlen) \ argument 71 safe_connect(__FILE__, __LINE__, NULL, sockfd, addr, addrlen) 73 #define SAFE_GETSOCKNAME(sockfd, addr, addrlen) \ argument 75 addrlen)
|
D | safe_net_fn.h | 45 const struct sockaddr *dest_addr, socklen_t addrlen); 61 int sockfd, struct sockaddr *addr, socklen_t *addrlen); 64 int sockfd, const struct sockaddr *addr, socklen_t addrlen); 68 socklen_t *addrlen);
|
/external/openssh/ |
D | canohost.c | 71 socklen_t addrlen; in get_socket_address() local 76 addrlen = sizeof(addr); in get_socket_address() 80 if (getpeername(sock, (struct sockaddr *)&addr, &addrlen) != 0) in get_socket_address() 83 if (getsockname(sock, (struct sockaddr *)&addr, &addrlen) != 0) in get_socket_address() 89 addrlen = sizeof(struct sockaddr_in6); in get_socket_address() 90 ipv64_normalise_mapped(&addr, &addrlen); in get_socket_address() 97 if ((r = getnameinfo((struct sockaddr *)&addr, addrlen, ntop, in get_socket_address()
|
D | sshlogin.c | 128 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_login() argument 136 login_set_addr(li, addr, addrlen); in record_login() 144 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_utmp_only() argument 149 login_set_addr(li, addr, addrlen); in record_utmp_only()
|
/external/ltp/testcases/kernel/syscalls/accept4/ |
D | accept4_01.c | 43 accept4_01(int fd, struct sockaddr *sockaddr, socklen_t *addrlen, int flags) in accept4_01() argument 50 args[2] = (long)addrlen; in accept4_01() 55 return tst_syscall(__NR_accept4, fd, sockaddr, addrlen, flags); in accept4_01() 111 socklen_t addrlen; in verify_accept4() local 115 addrlen = sizeof(*accept_addr); in verify_accept4() 118 TEST(accept4_01(listening_fd, (struct sockaddr *)accept_addr, &addrlen, in verify_accept4() 121 TEST(accept4(listening_fd, (struct sockaddr *)accept_addr, &addrlen, in verify_accept4()
|
/external/compiler-rt/test/msan/Linux/ |
D | sendmsg.cc | 45 socklen_t addrlen = sizeof(serveraddr); in main() local 46 getsockname(sockfd, (struct sockaddr *)&serveraddr, &addrlen); in main() 56 msg.msg_namelen = addrlen; in main() 65 ret = connect(sockfd, (struct sockaddr *)&serveraddr, addrlen); in main() 72 sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, addrlen); in main()
|
/external/ltp/include/old/ |
D | old_safe_net.h | 40 #define SAFE_CONNECT(cleanup_fn, sockfd, addr, addrlen) \ argument 41 safe_connect(__FILE__, __LINE__, (cleanup_fn), sockfd, addr, addrlen) 43 #define SAFE_GETSOCKNAME(cleanup_fn, sockfd, addr, addrlen) \ argument 45 addrlen)
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/ |
D | socket_ops.ipp | 68 socket_type s, socket_addr_type* addr, std::size_t* addrlen) 70 SockLenType tmp_addrlen = addrlen ? (SockLenType)*addrlen : 0; 71 socket_type result = ::accept(s, addr, addrlen ? &tmp_addrlen : 0); 72 if (addrlen) 73 *addrlen = (std::size_t)tmp_addrlen; 78 std::size_t* addrlen, asio::error_code& ec) 89 &msghdr::msg_namelen, s, addr, addrlen), ec); 109 socket_addr_type* addr, std::size_t* addrlen, asio::error_code& ec) 115 socket_type new_socket = socket_ops::accept(s, addr, addrlen, ec); 154 state_type state, socket_addr_type* addr, std::size_t* addrlen, [all …]
|
/external/curl/lib/ |
D | setup-os400.h | 203 extern int Curl_os400_connect(int sd, struct sockaddr * destaddr, int addrlen); 204 extern int Curl_os400_bind(int sd, struct sockaddr * localaddr, int addrlen); 206 struct sockaddr * dstaddr, int addrlen); 208 struct sockaddr *fromaddr, int *addrlen); 209 extern int Curl_os400_getpeername(int sd, struct sockaddr *addr, int *addrlen); 210 extern int Curl_os400_getsockname(int sd, struct sockaddr *addr, int *addrlen);
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseaddr_conflict.c | 26 int addrlen; in open_port() local 45 addrlen = sizeof(addr6); in open_port() 48 addrlen = sizeof(addr4); in open_port() 68 if (bind(fd, addr, addrlen) < 0) { in open_port()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_tcp_style.c | 67 socklen_t addrlen; in main() local 133 addrlen = sizeof(accept_loop); in main() 135 error = accept(clt_sk[0], &accept_loop.sa, &addrlen); in main() 178 addrlen = sizeof(accept_loop); in main() 180 &addrlen); in main() 194 error = accept(accept_sk[0], &accept_loop.sa, &addrlen); in main() 199 error = accept(clt_sk[0], &accept_loop.sa, &addrlen); in main() 363 accept2_sk = test_accept(listen_sk, &accept_loop.sa, &addrlen); in main() 401 accept2_sk = test_accept(listen_sk, &accept_loop.sa, &addrlen); in main()
|
/external/curl/packages/OS400/ |
D | os400sys.c | 1308 Curl_os400_connect(int sd, struct sockaddr * destaddr, int addrlen) in Curl_os400_connect() argument 1313 i = sockaddr2ebcdic(&laddr, destaddr, addrlen); in Curl_os400_connect() 1323 Curl_os400_bind(int sd, struct sockaddr * localaddr, int addrlen) in Curl_os400_bind() argument 1328 i = sockaddr2ebcdic(&laddr, localaddr, addrlen); in Curl_os400_bind() 1339 struct sockaddr * dstaddr, int addrlen) in Curl_os400_sendto() argument 1344 i = sockaddr2ebcdic(&laddr, dstaddr, addrlen); in Curl_os400_sendto() 1355 struct sockaddr * fromaddr, int * addrlen) in Curl_os400_recvfrom() argument 1361 if(!fromaddr || !addrlen || *addrlen <= 0) in Curl_os400_recvfrom() 1362 return recvfrom(sd, buffer, buflen, flags, fromaddr, addrlen); in Curl_os400_recvfrom() 1374 laddrlen = sockaddr2ascii(fromaddr, *addrlen, &laddr, laddrlen); in Curl_os400_recvfrom() [all …]
|
/external/libnfnetlink/src/ |
D | rtnl.c | 208 socklen_t addrlen; in rtnl_open() local 215 addrlen = sizeof(h->rtnl_local); in rtnl_open() 227 if (bind(h->rtnl_fd, (struct sockaddr *) &h->rtnl_local, addrlen) < 0) { in rtnl_open() 234 &addrlen) < 0) { in rtnl_open() 239 if (addrlen != sizeof(h->rtnl_local)) { in rtnl_open()
|
/external/ltp/utils/sctp/testlib/ |
D | sctputil.h | 141 static inline int test_bind(int sk, struct sockaddr *addr, socklen_t addrlen) in test_bind() argument 143 int error = bind(sk, addr, addrlen); in test_bind() 165 static inline int test_connect(int sk, struct sockaddr *addr, socklen_t addrlen) in test_connect() argument 167 int error = connect(sk, addr, addrlen); in test_connect() 181 static inline int test_accept(int sk, struct sockaddr *addr, socklen_t *addrlen) in test_accept() argument 183 int error = accept(sk, addr, addrlen); in test_accept()
|
/external/wpa_supplicant_8/src/common/ |
D | ctrl_iface_common.c | 151 &dst->addr, dst->addrlen)) in ctrl_iface_attach() 160 dst->addrlen = fromlen; in ctrl_iface_attach() 177 &dst->addr, dst->addrlen)) { in ctrl_iface_detach() 199 &dst->addr, dst->addrlen)) { in ctrl_iface_level()
|
/external/dnsmasq/src/ |
D | cache.c | 243 int addrlen = (flags & F_IPV6) ? IN6ADDRSZ : INADDRSZ; in cache_scan_free() local 245 int addrlen = INADDRSZ; in cache_scan_free() local 260 memcmp(&crecp->addr.addr, addr, addrlen) == 0) { in cache_scan_free() 478 int addrlen = (prot == F_IPV6) ? IN6ADDRSZ : INADDRSZ; in cache_find_by_addr() local 480 int addrlen = INADDRSZ; in cache_find_by_addr() local 497 if ((crecp->flags & prot) && memcmp(&crecp->addr.addr, addr, addrlen) == 0) { in cache_find_by_addr() 519 memcmp(&ans->addr.addr, addr, addrlen) == 0) in cache_find_by_addr() 525 static void add_hosts_entry(struct crec* cache, struct all_addr* addr, int addrlen, in add_hosts_entry() argument 534 if (memcmp(&lookup->addr.addr, addr, addrlen) == 0) { in add_hosts_entry() 554 memcmp(&lookup->addr.addr, addr, addrlen) == 0) { in add_hosts_entry() [all …]
|
/external/strace/tests-mx32/ |
D | accept_compat.h | 15 do_accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen) in do_accept() argument 17 const long args[] = { sockfd, (long) addr, (long) addrlen }; in do_accept()
|
/external/strace/tests/ |
D | accept_compat.h | 15 do_accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen) in do_accept() argument 17 const long args[] = { sockfd, (long) addr, (long) addrlen }; in do_accept()
|
/external/strace/tests-m32/ |
D | accept_compat.h | 15 do_accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen) in do_accept() argument 17 const long args[] = { sockfd, (long) addr, (long) addrlen }; in do_accept()
|
/external/wayland/src/ |
D | wayland-os.c | 153 wl_os_accept_cloexec(int sockfd, struct sockaddr *addr, socklen_t *addrlen) in wl_os_accept_cloexec() argument 158 fd = accept4(sockfd, addr, addrlen, SOCK_CLOEXEC); in wl_os_accept_cloexec() 165 fd = accept(sockfd, addr, addrlen); in wl_os_accept_cloexec()
|