/prebuilts/go/darwin-x86/src/net/ |
cgo_resnew.go | 20 func cgoNameinfoPTR(b []byte, sa *C.struct_sockaddr, salen C.socklen_t) (int, error) { 21 gerrno, err := C.getnameinfo(sa, salen, (*C.char)(unsafe.Pointer(&b[0])), C.socklen_t(len(b)), nil, 0, C.NI_NAMEREQD)
|
cgo_resold.go | 20 func cgoNameinfoPTR(b []byte, sa *C.struct_sockaddr, salen C.socklen_t) (int, error) { 21 gerrno, err := C.getnameinfo(sa, salen, (*C.char)(unsafe.Pointer(&b[0])), C.size_t(len(b)), nil, 0, C.NI_NAMEREQD)
|
cgo_unix.go | 259 sa, salen := cgoSockaddr(ip, zone) 264 names, err := cgoLookupAddrPTR(addr, sa, salen) 268 go cgoReverseLookup(result, addr, sa, salen) 277 func cgoLookupAddrPTR(addr string, sa *C.struct_sockaddr, salen C.socklen_t) (names []string, err error) { 285 gerrno, err = cgoNameinfoPTR(b, sa, salen) 310 func cgoReverseLookup(result chan<- reverseLookupResult, addr string, sa *C.struct_sockaddr, salen C.socklen_t) { 311 names, err := cgoLookupAddrPTR(addr, sa, salen)
|
/prebuilts/go/linux-x86/src/net/ |
cgo_resnew.go | 20 func cgoNameinfoPTR(b []byte, sa *C.struct_sockaddr, salen C.socklen_t) (int, error) { 21 gerrno, err := C.getnameinfo(sa, salen, (*C.char)(unsafe.Pointer(&b[0])), C.socklen_t(len(b)), nil, 0, C.NI_NAMEREQD)
|
cgo_resold.go | 20 func cgoNameinfoPTR(b []byte, sa *C.struct_sockaddr, salen C.socklen_t) (int, error) { 21 gerrno, err := C.getnameinfo(sa, salen, (*C.char)(unsafe.Pointer(&b[0])), C.size_t(len(b)), nil, 0, C.NI_NAMEREQD)
|
cgo_unix.go | 259 sa, salen := cgoSockaddr(ip, zone) 264 names, err := cgoLookupAddrPTR(addr, sa, salen) 268 go cgoReverseLookup(result, addr, sa, salen) 277 func cgoLookupAddrPTR(addr string, sa *C.struct_sockaddr, salen C.socklen_t) (names []string, err error) { 285 gerrno, err = cgoNameinfoPTR(b, sa, salen) 310 func cgoReverseLookup(result chan<- reverseLookupResult, addr string, sa *C.struct_sockaddr, salen C.socklen_t) { 311 names, err := cgoLookupAddrPTR(addr, sa, salen)
|
/external/openssh/openbsd-compat/ |
bindresvport.c | 61 socklen_t salen; local 67 salen = sizeof(myaddr); 69 if (getsockname(sd, sa, &salen) == -1) 73 memset(&myaddr, 0, salen); 79 salen = sizeof(struct sockaddr_in); 83 salen = sizeof(struct sockaddr_in6); 101 error = bind(sd, sa, salen);
|
rresvport.c | 64 socklen_t salen; local 71 salen = sizeof(struct sockaddr_in); 75 salen = sizeof(struct sockaddr_in6); 90 if (bind(s, sa, salen) >= 0)
|
/external/ltp/testcases/kernel/syscalls/getsockname/ |
getsockname01.c | 71 socklen_t *salen; /* getsockname's 3rd argument */ member in struct:test_case_t 91 /* invalid salen test for aligned input */ 94 "invalid aligned salen"}, { 95 /* invalid salen test for unaligned input */ 98 "invalid unaligned salen"}, 118 tdat[testno].salen));
|
/bionic/libc/dns/net/ |
getnameinfo.c | 106 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen, 109 return android_getnameinfofornet(sa, salen, host, hostlen, serv, servlen, flags, 113 int android_getnameinfofornet(const struct sockaddr* sa, socklen_t salen, char* host, 120 return getnameinfo_inet(sa, salen, host, hostlen, 123 return getnameinfo_local(sa, salen, host, hostlen, 136 getnameinfo_local(const struct sockaddr *sa, socklen_t salen, 143 if (salen < (socklen_t) offsetof(struct sockaddr_un, sun_path)) { 162 getnameinfo_inet(const struct sockaddr* sa, socklen_t salen, 195 if (salen < afd->a_socklen) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
getnameinfo.c | 97 getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
99 size_t salen;
125 if (len != salen) return ENI_SALEN;
127 len = salen;
|
/external/ltp/testcases/kernel/syscalls/accept/ |
accept01.c | 61 socklen_t *salen; /* accept's 3rd argument */ member in struct:test_case_t 80 "invalid salen"}, { 83 "invalid salen"}, { 107 tdat[testno].salen));
|
/external/python/cpython2/Modules/ |
getnameinfo.c | 89 getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) 91 size_t salen; 117 if (len != salen) return ENI_SALEN; 119 len = salen;
|
/prebuilts/go/darwin-x86/src/syscall/ |
sockcmsg_unix.go | 14 func cmsgAlignOf(salen int) int { 22 return (salen + salign - 1) & ^(salign - 1)
|
/prebuilts/go/linux-x86/src/syscall/ |
sockcmsg_unix.go | 14 func cmsgAlignOf(salen int) int { 22 return (salen + salign - 1) & ^(salign - 1)
|
/external/ltp/testcases/kernel/syscalls/bind/ |
bind01.c | 71 int salen; /* bind's 3rd argument */ member in struct:test_case_t 87 3, -1, EINVAL, setup0, cleanup0, "invalid salen"}, { 121 (s, tdat[testno].sockaddr, tdat[testno].salen));
|
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
getnameinfo.c | 141 socklen_t salen,
153 return getnameinfo_inet(sa, salen, host, hostlen,
156 return getnameinfo_link(sa, salen, host, hostlen,
172 socklen_t salen,
198 if (sa->sa_len != salen)
211 if (salen != afd->a_socklen)
479 socklen_t salen,
|
/external/libnl/lib/ |
addr.c | 691 * @arg salen Length of sockaddr structure buffer. 694 * specified abstract address. The salen argument needs to be set to the 701 socklen_t *salen) 707 if (*salen < sizeof(*sai)) 712 *salen = sizeof(*sai); 719 if (*salen < sizeof(*sa6)) 724 *salen = sizeof(*sa6); 804 socklen_t salen = sizeof(buf); local 806 err = nl_addr_fill_sockaddr(addr, (struct sockaddr *) &buf, &salen); 810 err = getnameinfo((struct sockaddr *) &buf, salen, host, hostlen [all...] |
/external/iputils/ |
tracepath6.c | 212 socklen_t salen; local 221 salen = sizeof(struct sockaddr_in6); 224 salen = sizeof(struct sockaddr_in); 227 salen = 0; 231 if (getnameinfo(sa, salen, 240 if (getnameinfo(sa, salen,
|
/external/ltp/testcases/kernel/syscalls/connect/ |
connect01.c | 74 int salen; /* connect's 3rd argument */ member in struct:test_case_t 94 3, -1, EINVAL, setup1, cleanup1, "invalid salen"}, { 136 (s, tdat[testno].sockaddr, tdat[testno].salen));
|
/external/c-ares/ |
ares_getnameinfo.c | 95 ares_socklen_t salen, 105 (salen == sizeof(struct sockaddr_in))) 111 (salen == sizeof(struct sockaddr_in6))) 156 if (salen == sizeof(struct sockaddr_in6))
|
/external/ltp/include/ |
safe_net_fn.h | 28 char *tst_sock_addr(const struct sockaddr *sa, socklen_t salen, char *res,
|
/external/curl/lib/ |
hostip6.c | 74 GETNAMEINFO_TYPE_ARG2 salen, 80 int res = (getnameinfo)(sa, salen,
|
memdebug.h | 129 #define getnameinfo(sa,salen,host,hostlen,serv,servlen,flags) \ 130 curl_dogetnameinfo(sa, salen, host, hostlen, serv, servlen, flags, \
|
/external/ltp/lib/ |
safe_net.c | 23 char *tst_sock_addr(const struct sockaddr *sa, socklen_t salen, char *res, 76 sa->sa_family, salen);
|