Lines Matching refs:service
31 * to obtain port and proto information for the specified service.
211 struct servent *service;
256 * Specified service is an RPC service.
269 if ((service = getservbyname(sname, sproto)) == NULL) {
276 (void) printf("Name %s\n", service->s_name);
277 (void) printf("Protocol %s\n", service->s_proto);
278 (void) printf("Port %d\n", htons(service->s_port));
280 (void) printf("%s\n", service->s_proto);
282 (void) printf("%d\n", htons(service->s_port));