Lines Matching defs:serv
51 struct servent *serv = (struct servent *)args->returnval;
52 const char *name = args->key.serv.serv.name;
53 const char *proto = args->key.serv.proto;
56 if (proto != 0 && strcmp(serv->s_proto, proto) != 0) {
59 if (strcmp(serv->s_name, name) == 0) {
62 for (aliasp = serv->s_aliases; *aliasp != 0; aliasp++) {
78 keyp = argp->key.serv.serv.name;
86 if (argp->key.serv.proto == NULL)
105 if ((keyp = argp->key.serv.proto) == NULL) {
132 keyp = argp->key.serv.serv.name;
157 const char *name = argp->key.serv.serv.name;
158 const char *proto = argp->key.serv.proto;
216 struct servent *serv = (struct servent *)args->returnval;
221 return (serv->s_port == args->key.serv.serv.port);
255 if (s_port == argp->key.serv.serv.port) {
256 if ((keyp = argp->key.serv.proto) == NULL)
277 int port = ntohs(argp->key.serv.serv.port);
278 const char *proto = argp->key.serv.proto;