Lines Matching defs:serv
37 * dictates hosts/serv lookup policy.
159 * Top Level Interfaces that gethost/serv/netdir funnel through.
528 se = _switch_getservbyname_r(args->arg.nss.serv.name,
529 args->arg.nss.serv.proto,
530 res->nss.serv, args->arg.nss.serv.buf,
531 args->arg.nss.serv.buflen);
757 if (args->arg.nss.serv.proto == NULL) {
768 args->arg.nss.serv.proto = "tcp";
772 args->arg.nss.serv.proto = "udp";
785 service.h_serv = (char *)args->arg.nss.serv.name;
794 args->arg.nss.serv.proto,
796 res->nss.serv,
797 args->arg.nss.serv.buf, args->arg.nss.serv.buflen);
955 se = _switch_getservbyport_r(args->arg.nss.serv.port,
956 args->arg.nss.serv.proto,
957 res->nss.serv, args->arg.nss.serv.buf,
958 args->arg.nss.serv.buflen);
1158 * convert the host-serv pairs into h_aliases and hent.
1169 if (args->arg.nss.serv.proto == NULL) {
1180 args->arg.nss.serv.proto = "tcp";
1184 args->arg.nss.serv.proto = "udp";
1203 sa.sin_port = (ushort_t)args->arg.nss.serv.port;
1212 * convert the host-serv pairs into s_aliases and servent.
1214 _nderror = ndhostserv2srent(args->arg.nss.serv.port,
1215 args->arg.nss.serv.proto, addrs, res->nss.serv,
1216 args->arg.nss.serv.buf, args->arg.nss.serv.buflen);
1393 arg.key.serv.serv.name = name;
1394 arg.key.serv.proto = proto;
1410 arg.key.serv.serv.port = port;
1411 arg.key.serv.proto = proto;
1432 struct servent *serv = (struct servent *)ent;
1460 serv->s_name = buffer;
1480 serv->s_port = htons((int)strtol(numbuf, &numend, 10));
1494 serv->s_proto = buffer + namelen + 1;
1495 (void) memcpy(serv->s_proto, fieldstart, fieldlen - 1);
1496 serv->s_proto[fieldlen - 1] = '\0';
1513 serv->s_aliases = 0;
1517 serv->s_aliases = ptr;
1521 serv->s_aliases = _nss_netdb_aliases(p, (int)(lenstr - (p - instr)),
2380 * sort the vector of (host, serv) pairs in such a way that
2447 * do a host aliases first and serv aliases next