Lines Matching refs:serv
40 * dictates hosts/serv lookup policy.
161 * Top Level Interfaces that gethost/serv/netdir funnel through.
525 se = _switch_getservbyname_r(args->arg.nss.serv.name,
526 args->arg.nss.serv.proto,
527 res->nss.serv, args->arg.nss.serv.buf,
528 args->arg.nss.serv.buflen);
754 if (args->arg.nss.serv.proto == NULL) {
765 args->arg.nss.serv.proto = "tcp";
769 args->arg.nss.serv.proto = "udp";
782 service.h_serv = (char *)args->arg.nss.serv.name;
791 args->arg.nss.serv.proto,
794 res->nss.serv,
795 args->arg.nss.serv.buf, args->arg.nss.serv.buflen);
951 se = _switch_getservbyport_r(args->arg.nss.serv.port,
952 args->arg.nss.serv.proto,
953 res->nss.serv, args->arg.nss.serv.buf,
954 args->arg.nss.serv.buflen);
1155 * convert the host-serv pairs into h_aliases and hent.
1166 if (args->arg.nss.serv.proto == NULL) {
1177 args->arg.nss.serv.proto = "tcp";
1181 args->arg.nss.serv.proto = "udp";
1200 sa.sin_port = (ushort_t)args->arg.nss.serv.port;
1209 * convert the host-serv pairs into s_aliases and servent.
1211 _nderror = ndhostserv2srent(args->arg.nss.serv.port,
1212 args->arg.nss.serv.proto, addrs, res->nss.serv,
1213 args->arg.nss.serv.buf, args->arg.nss.serv.buflen);
1401 arg.key.serv.serv.name = name;
1402 arg.key.serv.proto = proto;
1418 arg.key.serv.serv.port = port;
1419 arg.key.serv.proto = proto;
1440 struct servent *serv = (struct servent *)ent;
1468 serv->s_name = buffer;
1488 serv->s_port = htons((int)strtol(numbuf, &numend, 10));
1502 serv->s_proto = buffer + namelen + 1;
1503 (void) memcpy(serv->s_proto, fieldstart, fieldlen - 1);
1504 serv->s_proto[fieldlen - 1] = '\0';
1521 serv->s_aliases = 0;
1525 serv->s_aliases = ptr;
1529 serv->s_aliases = _nss_netdb_aliases(p, (int)(lenstr - (p - instr)),
2391 * sort the vector of (host, serv) pairs in such a way that
2458 * do a host aliases first and serv aliases next