Home
last modified time | relevance | path

Searched refs:socklen_t (Results 1 – 25 of 26) sorted by relevance

12

/bionic/tests/headers/posix/
Dsys_socket_h.c34 TYPE(socklen_t); in sys_socket_h()
46 STRUCT_MEMBER(struct msghdr, socklen_t, msg_namelen); in sys_socket_h()
57 STRUCT_MEMBER(struct msghdr, socklen_t, msg_controllen); in sys_socket_h()
67 STRUCT_MEMBER(struct cmsghdr, socklen_t, cmsg_len); in sys_socket_h()
135 FUNCTION(accept, int (*f)(int, struct sockaddr*, socklen_t*)); in sys_socket_h()
136 FUNCTION(bind, int (*f)(int, const struct sockaddr*, socklen_t)); in sys_socket_h()
137 FUNCTION(connect, int (*f)(int, const struct sockaddr*, socklen_t)); in sys_socket_h()
138 FUNCTION(getpeername, int (*f)(int, struct sockaddr*, socklen_t*)); in sys_socket_h()
139 FUNCTION(getsockname, int (*f)(int, struct sockaddr*, socklen_t*)); in sys_socket_h()
140 FUNCTION(getsockopt, int (*f)(int, int, int, void*, socklen_t*)); in sys_socket_h()
[all …]
Dnetdb_h.c68 STRUCT_MEMBER(struct addrinfo, socklen_t, ai_addrlen); in netdb_h()
110 …FUNCTION(getnameinfo, int (*f)(const struct sockaddr*, socklen_t, char*, size_t, char*, size_t, in… in netdb_h()
112 …UNCTION(getnameinfo, int (*f)(const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_… in netdb_h()
128 TYPE(socklen_t); in netdb_h()
/bionic/libc/dns/net/
Dgetnameinfo.c82 socklen_t a_addrlen;
83 socklen_t a_socklen;
101 static int getnameinfo_inet(const struct sockaddr *, socklen_t, char *,
102 socklen_t, char *, socklen_t, int, unsigned, unsigned);
105 socklen_t, int);
108 static int getnameinfo_local(const struct sockaddr *, socklen_t, char *,
109 socklen_t, char *, socklen_t, int);
116 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen, in getnameinfo()
123 int android_getnameinfofornet(const struct sockaddr* sa, socklen_t salen, char* host, in android_getnameinfofornet()
146 getnameinfo_local(const struct sockaddr *sa, socklen_t salen, in getnameinfo_local()
[all …]
Dgethnamaddr.c163 static struct hostent* android_gethostbyaddrfornetcontext_proxy_internal(const void*, socklen_t,
823 int gethostbyaddr_r(const void *addr, socklen_t len, int af, struct hostent *hp, char *buf, in gethostbyaddr_r()
832 android_gethostbyaddrfornetcontext_real(const void *addr, socklen_t len, int af, struct hostent *hp, in android_gethostbyaddrfornetcontext_real()
837 socklen_t size; in android_gethostbyaddrfornetcontext_real()
893 android_gethostbyaddrfornetcontext_proxy_internal(const void* addr, socklen_t len, int af, in android_gethostbyaddrfornetcontext_proxy_internal()
1460 if (inet_ntop(af, uaddr, name, (socklen_t)sizeof(name)) == NULL) in _yp_gethtbyaddr()
1595 gethostbyaddr(const void *addr, socklen_t len, int af) in gethostbyaddr()
1601 android_gethostbyaddrfornet(const void *addr, socklen_t len, int af, unsigned netid, unsigned mark) in android_gethostbyaddrfornet()
1608 android_gethostbyaddrfornetcontext(const void *addr, socklen_t len, int af, in android_gethostbyaddrfornetcontext()
1615 android_gethostbyaddrfornetcontext_proxy(const void* addr, socklen_t len, int af, in android_gethostbyaddrfornetcontext_proxy()
/bionic/libc/bionic/
DNetdClientDispatch.cpp29 extern "C" __socketcall int __accept4(int, sockaddr*, socklen_t*, int);
30 extern "C" __socketcall int __connect(int, const sockaddr*, socklen_t);
33 extern "C" __socketcall int __sendto(int, const void*, size_t, int, const sockaddr*, socklen_t);
57 int accept4(int fd, sockaddr* addr, socklen_t* addr_length, int flags) { in accept4()
61 int connect(int fd, const sockaddr* addr, socklen_t addr_length) { in connect()
74 const struct sockaddr* dst_addr, socklen_t dst_addr_length) { in sendto()
Daccept.cpp19 int accept(int sockfd, sockaddr* addr, socklen_t* addrlen) { in accept()
Dfortify.cpp220 int flags, sockaddr* src_addr, socklen_t* addrlen) { in __recvfrom_chk()
227 socklen_t addrlen) { in __sendto_chk()
Dsystem_property_set.cpp68 socklen_t alen = namelen + offsetof(sockaddr_un, sun_path) + 1; in PropertyServiceConnection()
/bionic/libc/include/sys/
Dsocket.h90 socklen_t msg_namelen;
290 __socketcall int accept(int __fd, struct sockaddr* __addr, socklen_t* __addr_length);
291 __socketcall int accept4(int __fd, struct sockaddr* __addr, socklen_t* __addr_length, int __flags) …
292 __socketcall int bind(int __fd, const struct sockaddr* __addr, socklen_t __addr_length);
293 __socketcall int connect(int __fd, const struct sockaddr* __addr, socklen_t __addr_length);
294 __socketcall int getpeername(int __fd, struct sockaddr* __addr, socklen_t* __addr_length);
295 __socketcall int getsockname(int __fd, struct sockaddr* __addr, socklen_t* __addr_length);
296 __socketcall int getsockopt(int __fd, int __level, int __option, void* __value, socklen_t* __value_…
303 __socketcall int setsockopt(int __fd, int __level, int __option, const void* __value, socklen_t __v…
311 …oid* __buf, size_t __n, int __flags, const struct sockaddr* __dst_addr, socklen_t __dst_addr_lengt…
[all …]
Dtypes.h117 typedef __socklen_t socklen_t; typedef
/bionic/libc/dns/include/
Dresolv_netid.h84 struct hostent *android_gethostbyaddrfornet(const void *, socklen_t, int, unsigned, unsigned) __use…
92 struct hostent *android_gethostbyaddrfornetcontext(const void *, socklen_t, int, const struct andro…
108 struct hostent *android_gethostbyaddrfornetcontext_proxy(const void *, socklen_t, int , const struc…
109 int android_getnameinfofornet(const struct sockaddr *, socklen_t, char *, size_t, char *, size_t, i…
Dresolv_private.h513 __socketcall int __connect(int, const struct sockaddr*, socklen_t);
/bionic/libc/private/
DNetdClientDispatch.h25 int (*accept4)(int, struct sockaddr*, socklen_t*, int);
26 int (*connect)(int, const struct sockaddr*, socklen_t);
29 int (*sendto)(int, const void*, size_t, int, const struct sockaddr*, socklen_t);
/bionic/libc/include/bits/fortify/
Dsocket.h34 socklen_t) __INTRODUCED_IN(26);
36 socklen_t*) __INTRODUCED_IN(21);
41 …nst buf __pass_object_size0, size_t len, int flags, struct sockaddr* src_addr, socklen_t* addr_len) in recvfrom()
56 …f __pass_object_size0, size_t len, int flags, const struct sockaddr* dest_addr, socklen_t addr_len) in sendto()
/bionic/libc/include/
Dnetdb.h115 socklen_t ai_addrlen; /* length of ai_addr */
203 int getnameinfo(const struct sockaddr* __sa, socklen_t __sa_length, char* __host, size_t __host_len…
211 struct hostent* gethostbyaddr(const void* __addr, socklen_t __length, int __type);
212 int gethostbyaddr_r(const void* __addr, socklen_t __length, int __type, struct hostent* __ret, char…
/bionic/libc/
DSYSCALLS.TXT256 int bind(int, struct sockaddr*, socklen_t) arm,lp64
257 int __connect:connect(int, struct sockaddr*, socklen_t) arm,lp64
259 int __accept4:accept4(int, struct sockaddr*, socklen_t*, int) arm,lp64
260 int getsockname(int, struct sockaddr*, socklen_t*) arm,lp64
261 int getpeername(int, struct sockaddr*, socklen_t*) arm,lp64
262 ssize_t __sendto:sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) ar…
263 ssize_t recvfrom(int, void*, size_t, unsigned int, struct sockaddr*, socklen_t*) arm,lp64
265 int setsockopt(int, int, int, const void*, socklen_t) arm,lp64
266 int getsockopt(int, int, int, void*, socklen_t*) arm,lp64
275 int __connect:socketcall:3(int, struct sockaddr*, socklen_t) x86
[all …]
/bionic/libc/upstream-netbsd/android/include/
Dport_before.h25 #define ISC_SOCKLEN_T socklen_t
/bionic/libc/dns/resolv/
Dres_send.c151 socklen_t salen, const struct timespec timeout);
166 socklen_t slen; in random_bind()
396 socklen_t peerlen; in res_nsend()
536 getnameinfo(nsap, (socklen_t)nsaplen, abuf, sizeof(abuf), in res_nsend()
786 socklen_t size = sizeof peer; in send_vc()
788 socklen_t mark_size = sizeof(old_mark); in send_vc()
836 if (connect_with_timeout(statp->_vcsock, nsap, (socklen_t)nsaplen, in send_vc()
980 connect_with_timeout(int sock, const struct sockaddr *nsap, socklen_t salen, in connect_with_timeout()
1049 socklen_t len = sizeof(error); in retrying_poll()
1083 socklen_t fromlen; in send_dg()
[all …]
Dres_debug.c750 inet_ntop(AF_INET, &u.sin.sin_addr, ret, (socklen_t)sizeof ret); in p_sockun()
/bionic/tests/
Dsys_socket_test.cpp107 socklen_t len = sizeof(*addr); in TestAccept4()
140 socklen_t len = sizeof(*addr); in TestRecvMMsg()
208 socklen_t len = sizeof(*addr); in TestSendMMsg()
Dnetdb_test.cpp107 ASSERT_GE(ai->ai_addrlen, static_cast<socklen_t>(sizeof(sockaddr_in6))); in TEST()
122 socklen_t too_much = sizeof(ss); in TEST()
123 socklen_t just_right = sizeof(sockaddr_in); in TEST()
124 socklen_t too_little = sizeof(sockaddr_in) - 1; in TEST()
Dfdtrack_test.cpp311 socklen_t addrlen = sizeof(addr); in CreateListener()
/bionic/libc/include/arpa/
Dinet.h46 const char* inet_ntop(int __af, const void* __src, char* __dst, socklen_t __size);
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_ntop.c45 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop()
/bionic/libc/dns/nameser/
Dns_print.c163 (void) inet_ntop(AF_INET, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()
333 (void) inet_ntop(AF_INET6, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()
424 (void) inet_ntop(AF_INET, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()
691 (void) inet_ntop(AF_INET6, &a, buf, (socklen_t)buflen); in ns_sprintrrf()
963 (void) inet_ntop(AF_INET, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()
968 (void) inet_ntop(AF_INET6, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()

12