Lines Matching defs:fd

78 	int fd = *sockp;
91 if (fd == RPC_ANYSOCK) {
92 fd = t_open(nconf->nc_device, O_RDWR, &tinfo);
93 if (fd == -1)
95 RPC_RAISEFD(fd);
98 if (t_getinfo(fd, &tinfo) == -1)
123 (void) __rpc_bindresvport(fd, NULL, &port, 0);
124 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers,
129 * The fd should be closed while destroying the handle.
132 *sockp = fd;
146 (void) t_close(fd);
192 svc_com_create(int fd, uint_t sendsize, uint_t recvsize, char *netid)
204 if (fd == RPC_ANYSOCK) {
205 fd = t_open(nconf->nc_device, O_RDWR, NULL);
206 if (fd == -1) {
220 res = __rpc_bindresvport(fd, NULL, &port, 8);
221 svc = svc_tli_create(fd, nconf, NULL,
226 (void) t_close(fd);
236 svctcp_create(int fd, uint_t sendsize, uint_t recvsize)
238 return (svc_com_create(fd, sendsize, recvsize, "tcp"));
242 svcudp_bufcreate(int fd, uint_t sendsz, uint_t recvsz)
244 return (svc_com_create(fd, sendsz, recvsz, "udp"));
248 svcfd_create(int fd, uint_t sendsize, uint_t recvsize)
250 return (svc_fd_create(fd, sendsize, recvsize));
255 svcudp_create(int fd)
257 return (svc_com_create(fd, UDPMSGSIZE, UDPMSGSIZE, "udp"));
267 * Bind a fd to a privileged IP port.
274 __rpc_bindresvport_ipv6(int fd, struct sockaddr *sin, int *portp, int qlen,
299 if ((i = t_getstate(fd)) != T_UNBND) {
322 if (t_getinfo(fd, &tinfo) == -1) {
325 tres = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR);
342 res = t_bind(fd, &tbindstr, tres);
348 (void) t_unbind(fd);
362 __rpc_bindresvport(int fd, struct sockaddr_in *sin, int *portp, int qlen)
364 return (__rpc_bindresvport_ipv6(fd, (struct sockaddr *)sin, portp,
512 int fd;
520 if ((fd = t_open(nconf->nc_device, O_RDWR, &tinfo)) == -1) {
524 (void) t_close(fd);