Home
last modified time | relevance | path

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

/bionic/libc/netbsd/net/
Dgetnameinfo.c76 socklen_t a_addrlen;
77 socklen_t a_socklen;
95 static int getnameinfo_inet(const struct sockaddr *, socklen_t, char *,
96 socklen_t, char *, socklen_t, int, const char*);
99 socklen_t, int);
102 static int getnameinfo_local(const struct sockaddr *, socklen_t, char *,
103 socklen_t, char *, socklen_t, int);
109 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen, char* serv,… in getnameinfo()
114 int android_getnameinfoforiface(const struct sockaddr* sa, socklen_t salen, char* host, size_t host… in android_getnameinfoforiface()
135 getnameinfo_local(const struct sockaddr *sa, socklen_t salen, in getnameinfo_local()
[all …]
Dgetaddrinfo.c1773 socklen_t len; in _find_src_addr()
/bionic/libc/upstream-netbsd/libc/inet/
Dinet_ntop.c57 static const char *inet_ntop4(const u_char *src, char *dst, socklen_t size);
58 static const char *inet_ntop6(const u_char *src, char *dst, socklen_t size);
69 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop()
99 inet_ntop4(const u_char *src, char *dst, socklen_t size) in inet_ntop4()
109 if (l <= 0 || (socklen_t) l >= size) { in inet_ntop4()
124 inet_ntop6(const u_char *src, char *dst, socklen_t size) in inet_ntop6()
200 if (!inet_ntop4(src+12, tp, (socklen_t)(ep - tp))) in inet_ntop6()
Dinet_ntoa.c62 (void) inet_ntop(AF_INET, &in, ret, (socklen_t)sizeof ret); in __weak_alias()
/bionic/libc/include/sys/
Dsocket.h45 typedef int socklen_t; typedef
278 __socketcall int connect(int, const struct sockaddr *, socklen_t);
280 __socketcall int accept(int, struct sockaddr *, socklen_t *);
281 __socketcall int getsockname(int, struct sockaddr *, socklen_t *);
282 __socketcall int getpeername(int, struct sockaddr *, socklen_t *);
285 __socketcall int setsockopt(int, int, int, const void *, socklen_t);
286 __socketcall int getsockopt(int, int, int, void *, socklen_t *);
293 __socketcall ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *, socklen_t);
294 __socketcall ssize_t recvfrom(int, void *, size_t, unsigned int, const struct sockaddr *, socklen_t
/bionic/libc/include/
Dnetdb.h118 socklen_t ai_addrlen; /* length of ai_addr */
209 struct hostent *gethostbyaddr(const void *, socklen_t, int);
210 struct hostent *android_gethostbyaddrforiface(const void *, socklen_t, int, const char*);
245 int getnameinfo(const struct sockaddr *, socklen_t, char *, size_t, char *, size_t, int);
246 int android_getnameinfoforiface(const struct sockaddr *, socklen_t, char *, size_t, char *, size_t,…
/bionic/tests/
Dnetdb_test.cpp37 socklen_t too_much = sizeof(ss); in TEST()
38 socklen_t just_right = sizeof(sockaddr_in); in TEST()
39 socklen_t too_little = sizeof(sockaddr_in) - 1; in TEST()
/bionic/libc/upstream-netbsd/
Dport_before.h25 #define ISC_SOCKLEN_T socklen_t
/bionic/libc/include/arpa/
Dinet.h45 extern const char* inet_ntop(int, const void *, char *, socklen_t);
/bionic/libc/
DSYSCALLS.TXT240 int connect(int, struct sockaddr *, socklen_t) 1,-1,1
242 int accept(int, struct sockaddr *, socklen_t *) 1,-1,1
243 int getsockname(int, struct sockaddr *, socklen_t *) 1,-1,1
244 int getpeername(int, struct sockaddr *, socklen_t *) 1,-1,1
245 int sendto(int, const void *, size_t, int, const struct sockaddr *, socklen_t) 1,-1,1
246 int recvfrom(int, void *, size_t, unsigned int, struct sockaddr *, socklen_t *) 1,-1,1
248 int setsockopt(int, int, int, const void *, socklen_t) 1,-1,1
249 int getsockopt(int, int, int, void *, socklen_t *) 1,-1,1
256 int connect:socketcall:3(int, struct sockaddr *, socklen_t) -1,1,-1
258 int accept:socketcall:5(int, struct sockaddr *, socklen_t *) -1,1,-1
[all …]
/bionic/libc/netbsd/resolv/
Dres_send.c161 socklen_t salen, int sec);
177 socklen_t slen; in random_bind()
421 socklen_t peerlen; in res_nsend()
544 getnameinfo(nsap, (socklen_t)nsaplen, abuf, sizeof(abuf), in res_nsend()
764 socklen_t size = sizeof peer; in send_vc()
806 if (connect_with_timeout(statp->_vcsock, nsap, (socklen_t)nsaplen, in send_vc()
933 connect_with_timeout(int sock, const struct sockaddr *nsap, socklen_t salen, int sec) in connect_with_timeout()
974 socklen_t len; in retrying_select()
1047 socklen_t fromlen; in send_dg()
1091 if (connect(EXT(statp).nssocks[ns], nsap, (socklen_t)nsaplen) < 0) { in send_dg()
[all …]
/bionic/linker/
Ddebugger.cpp87 socklen_t alen = namelen + offsetof(sockaddr_un, sun_path) + 1; in socket_abstract_client()
/bionic/libc/bionic/
Dsystem_properties.c201 socklen_t alen; in send_prop_msg()
/bionic/libc/netbsd/
Dgethnamaddr.c783 socklen_t len, int af, const char* iface) in android_gethostbyaddrforiface_proxy()
813 socklen_t len, int af, const char* iface) in android_gethostbyaddrforiface_real()
816 socklen_t size; in android_gethostbyaddrforiface_real()
868 android_gethostbyaddrforiface(const void *addr, socklen_t len, int af, const char* iface) in android_gethostbyaddrforiface()
880 gethostbyaddr(const void *addr, socklen_t len, int af) in gethostbyaddr()