Searched defs:serv (Results 1 - 23 of 23) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_tbind.h54 char *serv; /* ASCII service name, e.g. "NFS" */ member in struct:protob
H A Dnfs_tbind.c565 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/libresolv2/common/irs/
H A Dirs_p.h34 struct servent serv; member in struct:lcl_sv
H A Ddns_sv.c54 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...]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c51 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/libsocket/inet/
H A Dgetnameinfo.c70 * 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/head/
H A Dnss_netdir.h77 } 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
H A Dnss_dbdefs.h431 } serv; member in struct:nss_XbyY_key::__anon160
433 } serv; member in union:nss_XbyY_key
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/
H A Dstraddr.c181 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/libnsl/netdir/
H A Dnetdir.c160 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/libnsl/rpc/
H A Dclnt_generic.c308 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/autofs/
H A Ddebug_alloc.c257 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/fs.d/nfs/rquotad/
H A Drpc.rquotad.c647 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/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c1088 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);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocate_kdc.c768 struct servent *serv; local
790 serv = getservbyname(KRB524_SERVICE, "udp");
791 udpport = serv ? serv->s_port : htons (KRB524_PORT);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dfake-addrinfo.c311 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/rpcbind/
H A Drpcbind.c976 check_hostserv(struct netconfig *nconf, const char *host, const char *serv) argument
981 const char *servname = serv;
989 if (serv[0] == '\0')
993 nh.h_serv = (char *)serv;
/illumos-gate/usr/src/cmd/rpcinfo/
H A Drpcinfo.c617 struct nd_hostservlist *serv; local
621 if (netdir_getbyaddr(nconf, &serv, who)) {
624 hostname = serv->h_hostservs->h_host;
631 netdir_free((char *)serv, ND_HOSTSERVLIST);
/illumos-gate/usr/src/cmd/avs/rdc/
H A Dsndrd.c135 char *serv; /* ASCII service name, e.g. "RDC" */ member in struct:protob
369 sock = bind_to_provider(provider, protobp0->serv, &retaddr,
374 protobp0->serv, provider ? provider : proto);
385 protobp0->serv, provider ? provider : proto);
414 protobp0->serv, sock, retnconf->nc_proto);
647 protobp->serv = RDC_SVC_NAME;
1798 bind_to_provider(char *provider, char *serv, struct netbuf **addr, argument
1806 hs.h_serv = RDC_SERVICE; /* serv_name_to_port_name(serv); */
/illumos-gate/usr/src/cmd/stat/iostat/
H A Diostat.c353 * 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...]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet.c40 * 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/uts/common/pcmcia/nexus/
H A Dpcmcia.c1850 sservice_t *serv; local
1992 serv = va_arg(arglist, sservice_t *);
1993 if (serv != NULL)
1994 error = GetCookiesAndDip(serv);
3375 GetCookiesAndDip(sservice_t *serv) argument
3381 sock = CS_GET_SOCKET_NUMBER(serv->get_cookies.socket);
3384 (int)serv->get_cookies.socket < 0)
3388 ai = &serv->get_cookies.adapter_info;
3389 serv->get_cookies.dip = socket->ls_adapter->pca_dip;
3390 serv
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A Duds_daemon.c1597 mDNSlocal mStatus remove_extra(const request_state *const request, service_instance *const serv, mDNSu16 *const rrtype) argument
1602 for (ptr = serv->srs.Extras; ptr; ptr = ptr->next)
1607 if (serv->external_advertise) external_stop_advertising_service(&ptr->r.resrec, request->flags);
1608 err = mDNS_RemoveRecordFromService(&mDNSStorage, &serv->srs, ptr, FreeExtraRR, ptr);

Completed in 166 milliseconds