Lines Matching refs:sockfd
505 int sockfd; in uv__socket() local
509 sockfd = socket(domain, type | SOCK_NONBLOCK | SOCK_CLOEXEC, protocol); in uv__socket()
510 if (sockfd != -1) in uv__socket()
511 return sockfd; in uv__socket()
517 sockfd = socket(domain, type, protocol); in uv__socket()
518 if (sockfd == -1) in uv__socket()
521 err = uv__nonblock(sockfd, 1); in uv__socket()
523 err = uv__cloexec(sockfd, 1); in uv__socket()
526 uv__close(sockfd); in uv__socket()
533 setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on)); in uv__socket()
537 return sockfd; in uv__socket()
557 int uv__accept(int sockfd) { in uv__accept() argument
562 assert(sockfd >= 0); in uv__accept()
566 peerfd = uv__accept4(sockfd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC); in uv__accept()
568 peerfd = accept(sockfd, NULL, NULL); in uv__accept()