/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 | 18 static int addrlen; variable 80 ssi_tx_byte((EEP_OPC_READ << 5) | ((addr >> (addrlen - 5)) & 0x1f)); in mw_eeprom_read_word() 81 rcv = ssi_txrx_byte(addr << (13 - addrlen)); in mw_eeprom_read_word() 82 res = rcv << (16 - addrlen); in mw_eeprom_read_word() 83 bits = 4 + addrlen; in mw_eeprom_read_word() 108 switch (addrlen) { in mw_eeprom_write_word() 134 printf("Unsupported number of address bits: %d\n", addrlen); in mw_eeprom_write_word() 230 addrlen = mw_eeprom_size(dev); in mw_eeprom_probe() 232 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() 184 const struct sockaddr *dest_addr, socklen_t addrlen) in safe_sendto() argument 189 rval = sendto(sockfd, buf, len, flags, dest_addr, addrlen); in safe_sendto() 195 tst_sock_addr(dest_addr, addrlen, res, sizeof(res)), in safe_sendto() 196 addrlen); in safe_sendto() 300 int sockfd, const struct sockaddr *addr, socklen_t addrlen) in safe_connect() argument 305 rval = connect(sockfd, addr, addrlen); in safe_connect() 310 sockfd, tst_sock_addr(addr, addrlen, buf, in safe_connect() 311 sizeof(buf)), addrlen); in safe_connect() [all …]
|
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
D | syscall_linux_s390x.go | 165 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (int, error) { 166 args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))} 174 func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (int, error) { 175 …args := [4]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uin… 183 func getsockname(s int, rsa *RawSockaddrAny, addrlen *_Socklen) error { 184 args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))} 192 func getpeername(s int, rsa *RawSockaddrAny, addrlen *_Socklen) error { 193 args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))} 210 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) error { 211 args := [3]uintptr{uintptr(s), uintptr(addr), uintptr(addrlen)} [all …]
|
D | syscall_linux_386.go | 206 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 207 …tcall(_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) 214 func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { 215 …CCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags)… 222 func getsockname(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 223 …(_GETSOCKNAME, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) 230 func getpeername(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 231 …(_GETPEERNAME, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) 246 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 247 _, e := socketcall(_BIND, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) [all …]
|
/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/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_CONNECT(sockfd, addr, addrlen) \ argument 68 safe_connect(__FILE__, __LINE__, NULL, sockfd, addr, addrlen) 70 #define SAFE_GETSOCKNAME(sockfd, addr, addrlen) \ argument 72 addrlen)
|
/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/testcases/kernel/syscalls/accept4/ |
D | accept4_01.c | 69 accept4_01(int fd, struct sockaddr *sockaddr, socklen_t *addrlen, int flags) in accept4_01() argument 91 args[2] = (long)addrlen; in accept4_01() 96 return ltp_syscall(__NR_accept4, fd, sockaddr, addrlen, flags); in accept4_01() 108 socklen_t addrlen; in do_test() local 121 addrlen = sizeof(struct sockaddr_in); in do_test() 123 acceptfd = accept4_01(lfd, (struct sockaddr *)&claddr, &addrlen, in do_test() 126 acceptfd = accept4(lfd, (struct sockaddr *)&claddr, &addrlen, in do_test()
|
/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/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/syzkaller/sys/netbsd/ |
D | socket_unix.txt | 15 bind$unix(fd sock_unix, addr ptr[in, sockaddr_un], addrlen len[addr]) 16 connect$unix(fd sock_unix, addr ptr[in, sockaddr_un], addrlen len[addr]) 19 …f buffer[in], len len[buf], f flags[send_flags], addr ptr[in, sockaddr_un, opt], addrlen len[addr]) 21 … buffer[out], len len[buf], f flags[recv_flags], addr ptr[in, sockaddr_un, opt], addrlen len[addr]) 22 getsockname$unix(fd sock_unix, addr ptr[out, sockaddr_un], addrlen ptr[inout, len[addr, int32]]) 51 addrlen len[addr, int32]
|
D | socket_inet.txt | 27 bind$inet(fd sock_in, addr ptr[in, sockaddr_in], addrlen len[addr]) 28 connect$inet(fd sock_in, addr ptr[in, sockaddr_in], addrlen len[addr]) 29 …f buffer[in], len len[buf], f flags[send_flags], addr ptr[in, sockaddr_in, opt], addrlen len[addr]) 30 … buffer[out], len len[buf], f flags[recv_flags], addr ptr[in, sockaddr_in, opt], addrlen len[addr]) 31 getsockname$inet(fd sock_in, addr ptr[out, sockaddr_in], addrlen ptr[inout, len[addr, int32]])
|
D | socket_inet6.txt | 32 bind$inet6(fd sock_in6, addr ptr[in, sockaddr_in6], addrlen len[addr]) 33 connect$inet6(fd sock_in6, addr ptr[in, sockaddr_in6], addrlen len[addr]) 34 … buffer[in], len len[buf], f flags[send_flags], addr ptr[in, sockaddr_in6, opt], addrlen len[addr]) 35 …buffer[out], len len[buf], f flags[recv_flags], addr ptr[in, sockaddr_in6, opt], addrlen len[addr]) 36 getsockname$inet6(fd sock_in6, addr ptr[out, sockaddr_in6], addrlen ptr[inout, len[addr, int32]])
|
/external/syzkaller/sys/linux/ |
D | socket_unix.txt | 14 bind$unix(fd sock_unix, addr ptr[in, sockaddr_un], addrlen len[addr]) 15 connect$unix(fd sock_unix, addr ptr[in, sockaddr_un], addrlen len[addr]) 19 …f buffer[in], len len[buf], f flags[send_flags], addr ptr[in, sockaddr_un, opt], addrlen len[addr]) 22 … buffer[out], len len[buf], f flags[recv_flags], addr ptr[in, sockaddr_un, opt], addrlen len[addr]) 23 getsockname$unix(fd sock_unix, addr ptr[out, sockaddr_un], addrlen ptr[inout, len[addr, int32]]) 52 addrlen len[addr, int32]
|
D | socket_llc.txt | 17 bind$llc(fd sock_llc, addr ptr[in, sockaddr_llc], addrlen len[addr]) 18 connect$llc(fd sock_llc, addr ptr[in, sockaddr_llc], addrlen len[addr]) 20 … buffer[in], len len[buf], f flags[send_flags], addr ptr[in, sockaddr_llc, opt], addrlen len[addr]) 21 …buffer[out], len len[buf], f flags[recv_flags], addr ptr[in, sockaddr_llc, opt], addrlen len[addr]) 22 getsockname$llc(fd sock_llc, addr ptr[out, sockaddr_llc], addrlen ptr[inout, len[addr, int32]])
|
D | socket_ipx.txt | 16 bind$ipx(fd sock_ipx, addr ptr[in, sockaddr_ipx], addrlen len[addr]) 17 connect$ipx(fd sock_ipx, addr ptr[in, sockaddr_ipx], addrlen len[addr]) 21 … buffer[in], len len[buf], f flags[send_flags], addr ptr[in, sockaddr_ipx, opt], addrlen len[addr]) 22 …buffer[out], len len[buf], f flags[recv_flags], addr ptr[in, sockaddr_ipx, opt], addrlen len[addr]) 23 getsockname$ipx(fd sock_ipx, addr ptr[out, sockaddr_ipx], addrlen ptr[inout, len[addr, int32]])
|
D | socket_ax25.txt | 18 bind$ax25(fd sock_ax25, addr ptr[in, sockaddr_ax25], addrlen len[addr]) 19 connect$ax25(fd sock_ax25, addr ptr[in, sockaddr_ax25], addrlen len[addr]) 23 …buffer[in], len len[buf], f flags[send_flags], addr ptr[in, sockaddr_ax25, opt], addrlen len[addr]) 24 …uffer[out], len len[buf], f flags[recv_flags], addr ptr[in, sockaddr_ax25, opt], addrlen len[addr]) 25 getsockname$ax25(fd sock_ax25, addr ptr[out, sockaddr_ax25], addrlen ptr[inout, len[addr, int32]])
|
/external/syzkaller/sys/freebsd/ |
D | socket_unix.txt | 16 bind$unix(fd sock_unix, addr ptr[in, sockaddr_un], addrlen len[addr]) 17 connect$unix(fd sock_unix, addr ptr[in, sockaddr_un], addrlen len[addr]) 21 …f buffer[in], len len[buf], f flags[send_flags], addr ptr[in, sockaddr_un, opt], addrlen len[addr]) 23 … buffer[out], len len[buf], f flags[recv_flags], addr ptr[in, sockaddr_un, opt], addrlen len[addr]) 24 getsockname$unix(fd sock_unix, addr ptr[out, sockaddr_un], addrlen ptr[inout, len[addr, int32]]) 53 addrlen len[addr, int32]
|
/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/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()
|