Searched refs:sock (Results 1 - 5 of 5) sorted by relevance

/bionic/libc/kernel/common/linux/sunrpc/
H A Dxprt.h105 struct socket * sock; member in struct:rpc_xprt
106 struct sock * inet;
170 void (*old_data_ready)(struct sock *, int);
171 void (*old_state_change)(struct sock *);
172 void (*old_write_space)(struct sock *);
/bionic/libc/netbsd/resolv/
H A Dres_send.c160 static int connect_with_timeout(int sock, const struct sockaddr *nsap,
162 static int retrying_select(const int sock, fd_set *readset, fd_set *writeset,
944 connect_with_timeout(int sock, const struct sockaddr *nsap, socklen_t salen, int sec) argument
950 origflags = fcntl(sock, F_GETFL, 0);
951 fcntl(sock, F_SETFL, origflags | O_NONBLOCK);
953 res = connect(sock, nsap, salen);
963 __libc_format_log(ANDROID_LOG_DEBUG, "libc", " %d send_vc\n", sock);
966 res = retrying_select(sock, &rset, &wset, &finish);
972 fcntl(sock, F_SETFL, origflags);
975 " %d connect_with_timeout returning %d\n", sock, re
981 retrying_select(const int sock, fd_set *readset, fd_set *writeset, const struct timespec *finish) argument
[all...]
/bionic/libc/kernel/common/linux/
H A Dskbuff.h107 struct sock *sk;
/bionic/libc/netbsd/net/
H A Dgetaddrinfo.c412 int sock; local
431 sock = socket(AF_UNIX, SOCK_STREAM, 0);
432 if (sock < 0) {
436 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one));
441 if (TEMP_FAILURE_RETRY(connect(sock,
444 close(sock);
449 proxy = fdopen(sock, "r+");
1772 int sock; local
1788 sock = socket(addr->sa_family, SOCK_DGRAM, IPPROTO_UDP);
1789 if (sock
[all...]
/bionic/libc/netbsd/
H A Dgethnamaddr.c533 int sock; local
537 sock = socket(AF_UNIX, SOCK_STREAM, 0);
538 if (sock < 0) {
542 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one));
546 if (TEMP_FAILURE_RETRY(connect(sock,
549 close(sock);
553 return fdopen(sock, "r+");

Completed in 288 milliseconds