Lines Matching refs:sock
151 svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) in svcunix_create() argument
162 if (sock == RPC_ANYSOCK) in svcunix_create()
164 if ((sock = __socket (AF_UNIX, SOCK_STREAM, 0)) < 0) in svcunix_create()
171 __bind (sock, (struct sockaddr *) &addr, len); in svcunix_create()
173 if (__getsockname (sock, (struct sockaddr *) &addr, &len) != 0 in svcunix_create()
174 || __listen (sock, SOMAXCONN) != 0) in svcunix_create()
178 __close (sock); in svcunix_create()
198 xprt->xp_sock = sock; in svcunix_create()
248 int sock; in rendezvous_request() local
257 if ((sock = accept (xprt->xp_sock, (struct sockaddr *) &addr, &len)) < 0) in rendezvous_request()
269 xprt = makefd_xprt (sock, r->sendsize, r->recvsize); in rendezvous_request()
325 __msgread (int sock, void *data, size_t cnt) in __msgread() argument
347 if (__setsockopt (sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof (on))) in __msgread()
353 len = __recvmsg (sock, &msg, 0); in __msgread()
367 __msgwrite (int sock, void *data, size_t cnt) in __msgwrite() argument
404 len = __sendmsg (sock, &msg, 0); in __msgwrite()
423 int sock = xprt->xp_sock; in readunix() local
429 pollfd.fd = sock; in readunix()
448 if ((len = __msgread (sock, buf, len)) > 0) in readunix()