Lines Matching defs:port
81 int port;
123 (void) __rpc_bindresvport(fd, NULL, &port, 0);
197 int port;
220 res = __rpc_bindresvport(fd, NULL, &port, 8);
230 port = (((struct sockaddr_in *)svc->xp_ltaddr.buf)->sin_port);
231 svc->xp_port = ntohs(port);
267 * Bind a fd to a privileged IP port.
278 static in_port_t port, *sinport;
285 /* VARIABLES PROTECTED BY portnum_lock: port */
336 if (port == 0)
337 port = (getpid() % NPORTS) + STARTPORT;
339 *sinport = htons(port++);
340 if (port > ENDPORT)
341 port = STARTPORT;
410 * Get port used by specified service on specified host.