/osnet-11/usr/src/lib/libresolv2/common/irs/ |
H A D | irs_p.h | 34 struct servent serv; member in struct:lcl_sv
|
H A D | dns_sv.c | 54 struct servent serv; member in struct:pvt 126 if (pvt->serv.s_aliases) 127 free(pvt->serv.s_aliases); 218 pvt->serv.s_name = p; 225 pvt->serv.s_proto = p; 232 pvt->serv.s_port = htons((u_short) atoi(p)); 239 if ((num + 1) >= max || !pvt->serv.s_aliases) { 241 new = realloc(pvt->serv.s_aliases, 247 pvt->serv.s_aliases = new; 249 pvt->serv [all...] |
/osnet-11/usr/src/lib/libsocket/inet/ |
H A D | getnameinfo.c | 67 * servlen - length of caller supplied "serv" buffer 85 * serv - return the service name associated with the port number 86 * in the buffer pointed to by the "serv" argument. 94 char *serv, socklen_t servlen, int flags) 225 * fill in "serv" buffer that user passed in 238 (void) strcpy(serv, port_buf); 251 (void) strcpy(serv, sp->s_name); 262 (void) strcpy(serv, port_buf); 92 getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags) argument
|
/osnet-11/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 51 struct servent *serv = (struct servent *)args->returnval; local 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 216 struct servent *serv = (struct servent *)args->returnval; local [all...] |
/osnet-11/usr/src/lib/libnsl/netdir/ |
H A D | netdir.c | 160 netdir_getbyname(struct netconfig *tp, struct nd_hostserv *serv, argument 173 nssin.arg.nd_hs = serv; 191 nssin.arg.nd_hs = serv; 198 return (__classic_netdir_getbyname(tp, serv, addrs)); 211 __classic_netdir_getbyname(struct netconfig *tp, struct nd_hostserv *serv, argument 224 nn = (*(t->gbn))(tp, serv); 242 nn = (*(t->gbn))(tp, serv); 267 netdir_getbyaddr(struct netconfig *tp, struct nd_hostservlist **serv, argument 281 nssout.nd_hslist = serv; 291 nssout.nd_hslist = serv; 301 __netdir_getbyaddr_nosrv(struct netconfig *tp, struct nd_hostservlist **serv, struct netbuf *addr) argument 340 __classic_netdir_getbyaddr(struct netconfig *tp, struct nd_hostservlist **serv, struct netbuf *addr) argument [all...] |
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | clnt_generic.c | 305 char *hostname, *serv; local 344 serv = NULL; 345 else if ((serv = strdup(service ? service : "")) == NULL) { 354 hs.h_serv = port ? NULL : serv; 474 if (serv) 475 free(serv);
|
/osnet-11/usr/src/lib/nametoaddr/straddr/common/ |
H A D | straddr.c | 180 char *serv; /* resultant service name obtained */ local 219 serv = servbuf; 221 serv = _taddr2uaddr(netconfigp, netbufp); 222 (void) strcpy(servbuf, serv); 223 free(serv); 224 serv = servbuf; 225 while (*serv != '.') 226 serv++; 256 ((nd_hostservp->h_serv = strdup(serv)) == NULL)) {
|
/osnet-11/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_mkupdate.c | 1088 static struct servent serv; local 1103 serv.s_name = lp->name; 1104 serv.s_port = htons((u_int16_t)lp->port); 1105 serv.s_proto = lp->proto; 1106 return (&serv);
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | locate_kdc.c | 748 struct servent *serv; local 770 serv = getservbyname(KRB524_SERVICE, "udp"); 771 udpport = serv ? serv->s_port : htons (KRB524_PORT);
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | fake-addrinfo.c | 324 system_getaddrinfo (const char *name, const char *serv, argument 328 return getaddrinfo(name, serv, hint, res); 344 char *host, size_t hostlen, char *serv, size_t servlen, 347 return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags); 418 static void debug_dump_getaddrinfo_args (const char *name, const char *serv, argument 425 name ? name : "(null)", serv ? serv : "(null)"); 482 int getaddrinfo (const char *name, const char *serv, 844 fake_getaddrinfo (const char *name, const char *serv, argument 854 debug_dump_getaddrinfo_args(name, serv, hin 343 system_getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) argument 1089 getaddrinfo(const char *name, const char *serv, const struct addrinfo *hint, struct addrinfo **result) argument 1120 getaddrinfo(const char *name, const char *serv, const struct addrinfo *hint, struct addrinfo **result) argument [all...] |
/osnet-11/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet.c | 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 1432 struct servent *serv = (struct servent *)ent; local [all...] |