Home
last modified time | relevance | path

Searched refs:serv (Results 1 – 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/cmd/nscd/
H A Dgetserv.c79 if (e1->key.serv.proto == NULL && e2->key.serv.proto) in servname_compar()
95 l1 = strlen(e1->key.serv.serv.name); in servname_compar()
96 l2 = strlen(e2->key.serv.serv.name); in servname_compar()
97 res = strncmp(e1->key.serv.serv.name, e2->key.serv.serv.name, in servname_compar()
104 return (ces_gethash(key->serv.serv.name, htsize)); in servname_gethash()
112 argp->key.serv.serv.name, in servname_getlogstr()
141 return (_NSC_INT_KEY_CMP(e1->key.serv.serv.port, in servport_compar()
142 e2->key.serv.serv.port)); in servport_compar()
147 return (db_gethash(&key->serv.serv.port, in servport_gethash()
148 sizeof (key->serv.serv.port), htsize)); in servport_gethash()
[all …]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c52 const char *name = args->key.serv.serv.name;
53 const char *proto = args->key.serv.proto;
59 if (strcmp(serv->s_name, name) == 0) {
78 keyp = argp->key.serv.serv.name; in check_name2()
86 if (argp->key.serv.proto == NULL) in check_name2()
132 keyp = argp->key.serv.serv.name; in check_name2()
157 const char *name = argp->key.serv.serv.name;
158 const char *proto = argp->key.serv.proto;
221 return (serv->s_port == args->key.serv.serv.port);
255 if (s_port == argp->key.serv.serv.port) { in check_port2()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetservbyname_r.c72 nssin.arg.nss.serv.name = name; in getservbyname_r()
73 nssin.arg.nss.serv.proto = proto; in getservbyname_r()
74 nssin.arg.nss.serv.buf = buffer; in getservbyname_r()
75 nssin.arg.nss.serv.buflen = buflen; in getservbyname_r()
77 nssout.nss.serv = result; in getservbyname_r()
89 return (nssout.nss.serv); in getservbyname_r()
106 nssin.arg.nss.serv.port = port; in getservbyport_r()
107 nssin.arg.nss.serv.proto = proto; in getservbyport_r()
108 nssin.arg.nss.serv.buf = buffer; in getservbyport_r()
111 nssout.nss.serv = result; in getservbyport_r()
[all …]
H A Dgetnameinfo.c95 char *serv, socklen_t servlen, int flags) in getnameinfo() argument
232 (void) strcpy(serv, port_buf); in getnameinfo()
245 (void) strcpy(serv, sp->s_name); in getnameinfo()
256 (void) strcpy(serv, port_buf); in getnameinfo()
H A Dgetservent_r.c95 arg.key.serv.proto = NULL; in getservent_r()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Ddns_sv.c50 struct servent serv; member
122 if (pvt->serv.s_aliases) in sv_close()
123 free(pvt->serv.s_aliases); in sv_close()
214 pvt->serv.s_name = p; in parse_hes_list()
221 pvt->serv.s_proto = p; in parse_hes_list()
251 if (!pvt->serv.s_aliases) in parse_hes_list()
253 if (!pvt->serv.s_aliases) in parse_hes_list()
256 return (&pvt->serv); in parse_hes_list()
260 if (pvt->serv.s_aliases) { in parse_hes_list()
261 free(pvt->serv.s_aliases); in parse_hes_list()
[all …]
H A Dlcl_sv.c337 sv->serv.s_name = p; in irs_lclsv_fnxt()
351 sv->serv.s_proto = p; in irs_lclsv_fnxt()
353 q = sv->serv.s_aliases = sv->serv_aliases; in irs_lclsv_fnxt()
372 return (&sv->serv); in irs_lclsv_fnxt()
394 sv->serv.s_name = sv->line; in sv_db_rec()
396 *(sv->serv.s_proto)++ = '\0'; in sv_db_rec()
406 sv->serv.s_name = sv->line; in sv_db_rec()
408 *(sv->serv.s_proto)++ = '\0'; in sv_db_rec()
409 sv->serv.s_port = *(u_short *)data->data; in sv_db_rec()
413 q = sv->serv.s_aliases = sv->serv_aliases; in sv_db_rec()
[all …]
H A Dgetnameinfo.c100 getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) in getnameinfo() argument
105 char *serv;
145 if (serv == NULL || servlen == 0U) {
154 strcpy(serv, numserv);
160 strcpy(serv, sp->s_name);
H A Dirs_p.h34 struct servent serv; member
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetservent.c47 keyp = argp->key.serv.serv.name; in check_name()
55 if (argp->key.serv.proto == NULL) in check_name()
74 if ((keyp = argp->key.serv.proto) == NULL) { in check_name()
101 keyp = argp->key.serv.serv.name; in check_name()
125 argp->key.serv.serv.name, check_name));
159 if (s_port == argp->key.serv.serv.port) { in check_port()
160 if ((keyp = argp->key.serv.proto) == NULL) in check_port()
182 (void) snprintf(portstr, 12, "%d", ntohs(argp->key.serv.serv.port));
/illumos-gate/usr/src/lib/libnsl/netdir/
H A Dnetdir.c173 nssin.arg.nd_hs = serv; in netdir_getbyname()
191 nssin.arg.nd_hs = serv; in netdir_getbyname()
224 nn = (*(t->gbn))(tp, serv); in __classic_netdir_getbyname()
242 nn = (*(t->gbn))(tp, serv); in __classic_netdir_getbyname()
281 nssout.nd_hslist = serv; in netdir_getbyaddr()
291 nssout.nd_hslist = serv; in netdir_getbyaddr()
294 return (__classic_netdir_getbyaddr(tp, serv, addr)); in netdir_getbyaddr()
315 nssout.nd_hslist = serv; in __netdir_getbyaddr_nosrv()
325 nssout.nd_hslist = serv; in __netdir_getbyaddr_nosrv()
355 *serv = hs; in __classic_netdir_getbyaddr()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dfake-addrinfo.c315 return getaddrinfo(name, serv, hint, res); in system_getaddrinfo()
412 name ? name : "(null)", serv ? serv : "(null)"); in debug_dump_getaddrinfo_args()
834 debug_dump_getaddrinfo_args(name, serv, hint); in fake_getaddrinfo()
847 if (serv) { in fake_getaddrinfo()
848 size_t numlen = strspn (serv, "0123456789"); in fake_getaddrinfo()
849 if (serv[numlen] == '\0') { in fake_getaddrinfo()
851 unsigned long p = strtoul (serv, 0, 10); in fake_getaddrinfo()
1113 debug_dump_getaddrinfo_args(name, serv, hint); in getaddrinfo()
1123 if (serv && serv[0] && isdigit(serv[0])) { in getaddrinfo()
1126 lport = strtoul(serv, &end, 10); in getaddrinfo()
[all …]
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/
H A Dstraddr.c181 char *serv; /* resultant service name obtained */ in _netdir_getbyaddr() local
220 serv = servbuf; in _netdir_getbyaddr()
222 serv = _taddr2uaddr(netconfigp, netbufp); in _netdir_getbyaddr()
223 (void) strcpy(servbuf, serv); in _netdir_getbyaddr()
224 free(serv); in _netdir_getbyaddr()
225 serv = servbuf; in _netdir_getbyaddr()
226 while (*serv != '.') in _netdir_getbyaddr()
227 serv++; in _netdir_getbyaddr()
257 ((nd_hostservp->h_serv = strdup(serv)) == NULL)) { in _netdir_getbyaddr()
/illumos-gate/usr/src/head/
H A Dnss_netdir.h77 } serv; member
89 struct servent *serv; member
110 } serv; member
122 struct servent *serv; member
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_dbdefs.c483 if (arg->key.serv.serv.name == NULL) in nss_pack_key2str()
485 len = strlen(arg->key.serv.serv.name) + 1; in nss_pack_key2str()
487 if (arg->key.serv.proto != NULL) in nss_pack_key2str()
493 (void) strlcpy(buffer, arg->key.serv.serv.name, len); in nss_pack_key2str()
504 if (arg->key.serv.proto != NULL) in nss_pack_key2str()
510 *uptr++ = (nssuint_t)arg->key.serv.serv.port; in nss_pack_key2str()
923 arg->key.serv.serv.name = (const char *)bptr; in nss_upack_key2arg()
924 len = strlen(arg->key.serv.serv.name) + 1; in nss_upack_key2arg()
927 arg->key.serv.proto = NULL; in nss_upack_key2arg()
932 arg->key.serv.serv.port = (int)(*uptr++); in nss_upack_key2arg()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetservent.c195 argp->key.serv.proto) { in _nss_ldap_services2str()
209 argp->key.serv.proto) == 0) { in _nss_ldap_services2str()
320 const char *proto = argp->key.serv.proto; in getbyname()
327 if (_ldap_filter_name(name, argp->key.serv.serv.name, sizeof (name)) in getbyname()
376 const char *proto = argp->key.serv.proto; in getbyport()
384 ntohs((ushort_t)argp->key.serv.serv.port)); in getbyport()
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet.c527 res->nss.serv, args->arg.nss.serv.buf, in _get_hostserv_inetnetdir_byname()
794 res->nss.serv, in _get_hostserv_inetnetdir_byname()
795 args->arg.nss.serv.buf, args->arg.nss.serv.buflen); in _get_hostserv_inetnetdir_byname()
953 res->nss.serv, args->arg.nss.serv.buf, in _get_hostserv_inetnetdir_byaddr()
1212 args->arg.nss.serv.proto, addrs, res->nss.serv, in _get_hostserv_inetnetdir_byaddr()
1213 args->arg.nss.serv.buf, args->arg.nss.serv.buflen); in _get_hostserv_inetnetdir_byaddr()
1401 arg.key.serv.serv.name = name; in _switch_getservbyname_r()
1418 arg.key.serv.serv.port = port; in _switch_getservbyport_r()
1468 serv->s_name = buffer; in str2servent()
1521 serv->s_aliases = 0; in str2servent()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/
H A Drpc.rquotad.c646 static struct nd_hostservlist *serv; local
658 if (serv) {
659 netdir_free((char *)serv, ND_HOSTSERVLIST);
660 serv = NULL;
674 if (netdir_getbyaddr(nconf, &serv, nbuf)) {
679 return (serv);
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_generic.c306 char *hostname, *serv; in clnt_create_service_timed() local
345 serv = NULL; in clnt_create_service_timed()
346 else if ((serv = strdup(service ? service : "")) == NULL) { in clnt_create_service_timed()
355 hs.h_serv = port ? NULL : serv; in clnt_create_service_timed()
478 if (serv) in clnt_create_service_timed()
479 free(serv); in clnt_create_service_timed()
/illumos-gate/usr/src/cmd/svc/milestone/
H A Dnet-nwam196 for serv in $yp_servers; do
197 if is_valid_addr $serv; then
198 addr="$serv,"
200 addr=`$GREP -iw $serv /etc/inet/hosts | \
/illumos-gate/usr/src/lib/lib9p/common/transport/
H A Dsocket.c376 char serv[NI_MAXSERV + 1]; in l9p_socket_accept() local
388 serv, NI_MAXSERV, NI_NUMERICHOST | NI_NUMERICSERV); in l9p_socket_accept()
394 L9P_LOG(L9P_INFO, "new connection from %s:%s", host, serv); in l9p_socket_accept()
418 host, serv, strerror(err)); in l9p_socket_accept()
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_tbind.h54 char *serv; /* ASCII service name, e.g. "NFS" */ member
H A Dnfs_tbind.c565 sock = bind_to_provider(provider, protobp0->serv, &retaddr, in do_one()
568 sock = bind_to_proto(proto, protobp0->serv, &retaddr, in do_one()
574 protobp0->serv, provider ? provider : proto); in do_one()
626 protobp0->serv, sock, retnconf->nc_proto); in do_one()
1638 bind_to_provider(char *provider, char *serv, struct netbuf **addr, in bind_to_provider() argument
1646 hs.h_serv = serv_name_to_port_name(serv); in bind_to_provider()
1668 bind_to_proto(NETSELDECL(proto), char *serv, struct netbuf **addr, in bind_to_proto() argument
1676 hs.h_serv = serv_name_to_port_name(serv); in bind_to_proto()
/illumos-gate/usr/src/cmd/stat/iostat/
H A Diostat.c575 double wserv = 0, rserv = 0, serv = 0; in show_disk() local
726 serv = rserv + wserv; in show_disk()
730 serv = 0.0; in show_disk()
821 push_out(fstr, kps, tps, serv); in show_disk()
834 fzero(serv) && fzero(w_pct) && fzero(r_pct) && in show_disk()
858 serv, w_pct, r_pct); in show_disk()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Ddebug_alloc.c257 struct nd_hostserv *serv, in my_netdir_getbyname() argument
264 res = netdir_getbyname(tp, serv, addrs); in my_netdir_getbyname()

12