/illumos-gate/usr/src/cmd/nscd/ |
H A D | getserv.c | 79 if (e1->key.serv.proto == NULL && e2->key.serv.proto) 81 if (e1->key.serv.proto && e2->key.serv.proto == NULL) 83 if (e1->key.serv.proto) { 84 l1 = strlen(e1->key.serv.proto); 85 l2 = strlen(e2->key.serv.proto); 86 res = strncmp(e1->key.serv.proto, e2->key.serv.proto, 95 l1 = strlen(e1->key.serv [all...] |
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getservbyname_r.c | 72 nssin.arg.nss.serv.name = name; 73 nssin.arg.nss.serv.proto = proto; 74 nssin.arg.nss.serv.buf = buffer; 75 nssin.arg.nss.serv.buflen = buflen; 77 nssout.nss.serv = result; 89 return (nssout.nss.serv); 106 nssin.arg.nss.serv.port = port; 107 nssin.arg.nss.serv.proto = proto; 108 nssin.arg.nss.serv.buf = buffer; 109 nssin.arg.nss.serv [all...] |
H A D | getservent_r.c | 95 arg.key.serv.proto = NULL;
|
H A D | getnameinfo.c | 70 * servlen - length of caller supplied "serv" buffer 88 * serv - return the service name associated with the port number 89 * in the buffer pointed to by the "serv" argument. 97 char *serv, socklen_t servlen, int flags) 221 * fill in "serv" buffer that user passed in 234 (void) strcpy(serv, port_buf); 247 (void) strcpy(serv, sp->s_name); 258 (void) strcpy(serv, port_buf); 95 getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags) argument
|
/illumos-gate/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...] |
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getservent.c | 47 keyp = argp->key.serv.serv.name; 55 if (argp->key.serv.proto == NULL) 74 if ((keyp = argp->key.serv.proto) == NULL) { 101 keyp = argp->key.serv.serv.name; 125 argp->key.serv.serv.name, check_name)); 159 if (s_port == argp->key.serv.serv [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
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...] |
H A D | irs_p.h | 34 struct servent serv; member in struct:lcl_sv
|
H A D | lcl_sv.c | 343 sv->serv.s_name = p; 353 sv->serv.s_port = htons((u_short)strtol(p, &cp, 10)); 357 sv->serv.s_proto = p; 359 q = sv->serv.s_aliases = sv->serv_aliases; 378 return (&sv->serv); 394 sv->serv.s_port = ((u_short *)key->data)[1]; 400 sv->serv.s_name = sv->line; 401 if ((sv->serv.s_proto = strchr(sv->line, '/')) != NULL) 402 *(sv->serv.s_proto)++ = '\0'; 412 sv->serv [all...] |
H A D | getnameinfo.c | 100 getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) 105 char *serv; 145 if (serv == NULL || servlen == 0U) { 147 * rfc2553bis says that serv == NULL or servlen == 0 means that 154 strcpy(serv, numserv); 160 strcpy(serv, sp->s_name);
|
/illumos-gate/usr/src/head/ |
H A D | nss_netdir.h | 77 } serv; member in union:nss_netdirbyname_in::__anon2306::__anon2307 89 struct servent *serv; member in union:nss_netdirbyname_out::__anon2311 110 } serv; member in union:nss_netdirbyaddr_in::__anon2313::__anon2314 122 struct servent *serv; member in union:nss_netdirbyaddr_out::__anon2317
|
/illumos-gate/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...] |
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/ |
H A D | straddr.c | 181 char *serv; /* resultant service name obtained */ local 220 serv = servbuf; 222 serv = _taddr2uaddr(netconfigp, netbufp); 223 (void) strcpy(servbuf, serv); 224 free(serv); 225 serv = servbuf; 226 while (*serv != '.') 227 serv++; 257 ((nd_hostservp->h_serv = strdup(serv)) == NULL)) {
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | fake-addrinfo.c | 311 system_getaddrinfo (const char *name, const char *serv, argument 315 return getaddrinfo(name, serv, hint, res); 331 char *host, size_t hostlen, char *serv, size_t servlen, 334 return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags); 405 static void debug_dump_getaddrinfo_args (const char *name, const char *serv, argument 412 name ? name : "(null)", serv ? serv : "(null)"); 464 int getaddrinfo (const char *name, const char *serv, 824 fake_getaddrinfo (const char *name, const char *serv, argument 834 debug_dump_getaddrinfo_args(name, serv, hin 330 system_getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) argument 1068 getaddrinfo(const char *name, const char *serv, const struct addrinfo *hint, struct addrinfo **result) argument 1099 getaddrinfo(const char *name, const char *serv, const struct addrinfo *hint, struct addrinfo **result) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_tbind.h | 54 char *serv; /* ASCII service name, e.g. "NFS" */ member in struct:protob
|
H A D | nfs_tbind.c | 565 sock = bind_to_provider(provider, protobp0->serv, &retaddr, 568 sock = bind_to_proto(proto, protobp0->serv, &retaddr, 574 protobp0->serv, provider ? provider : proto); 626 protobp0->serv, sock, retnconf->nc_proto); 1638 bind_to_provider(char *provider, char *serv, struct netbuf **addr, argument 1646 hs.h_serv = serv_name_to_port_name(serv); 1668 bind_to_proto(NETSELDECL(proto), char *serv, struct netbuf **addr, variable 1676 hs.h_serv = serv_name_to_port_name(serv);
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getservent.c | 195 argp->key.serv.proto) { 209 argp->key.serv.proto) == 0) { 311 * entry and marshal the data results into *serv = (struct servent *) 320 const char *proto = argp->key.serv.proto; 327 if (_ldap_filter_name(name, argp->key.serv.serv.name, sizeof (name)) 367 * entry and marshal the data results into *serv = (struct servent *) 376 const char *proto = argp->key.serv.proto; 384 ntohs((ushort_t)argp->key.serv.serv [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nss_dbdefs.c | 378 * key.serv(name) s 379 * key.serv(port) S 483 if (arg->key.serv.serv.name == NULL) 485 len = strlen(arg->key.serv.serv.name) + 1; 487 if (arg->key.serv.proto != NULL) 488 len2 += strlen(arg->key.serv.proto); 493 (void) strlcpy(buffer, arg->key.serv.serv [all...] |
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet.c | 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 1440 struct servent *serv = (struct servent *)ent; local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | pkginstall.h | 64 PKGserver serv, VFP_T *tmpvfp, char *a_zoneName));
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_generic.c | 308 char *hostname, *serv; local 347 serv = NULL; 348 else if ((serv = strdup(service ? service : "")) == NULL) { 357 hs.h_serv = port ? NULL : serv; 480 if (serv) 481 free(serv);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 647 static struct nd_hostservlist *serv; local 659 if (serv) { 660 netdir_free((char *)serv, ND_HOSTSERVLIST); 661 serv = NULL; 675 if (netdir_getbyaddr(nconf, &serv, nbuf)) { 680 return (serv);
|
/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | net-nwam | 195 for serv in $yp_servers; do 196 if is_valid_addr $serv; then 197 addr="$serv," 199 addr=`$GREP -iw $serv /etc/inet/hosts | \
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | debug_alloc.c | 257 struct nd_hostserv *serv, 264 res = netdir_getbyname(tp, serv, addrs); 255 my_netdir_getbyname( struct netconfig *tp, struct nd_hostserv *serv, struct nd_addrlist **addrs, const char *file, int line) argument
|
/illumos-gate/usr/src/cmd/stat/iostat/ |
H A D | iostat.c | 353 * DISK_LEN = length of either "kps tps serv" or "wps rps util" 430 * tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy dt id 574 double wserv, rserv, serv; local 725 serv = rserv + wserv; 729 serv = 0.0; 820 push_out(fstr, kps, tps, serv); 833 fzero(serv) [all...] |