Lines Matching refs:rpc
54 #include <rpc/rpc.h>
69 #define RPCDB "/etc/rpc"
119 struct rpcent rpc;
147 rpcent_unpack(char *p, struct rpcent *rpc, char **r_aliases,
165 rpc->r_name = p;
168 rpc->r_number = atoi(cp);
169 q = rpc->r_aliases = r_aliases;
214 struct rpcent *rpc;
245 rpc = va_arg(ap, struct rpcent *);
291 rv = rpcent_unpack(buffer, rpc, aliases, aliases_size, errnop);
306 if (strcmp(rpc->r_name, name) == 0)
308 for (rp = rpc->r_aliases; *rp != NULL; rp++) {
318 rv = (rpc->r_number == number) ? NS_SUCCESS :
334 *((struct rpcent **)retval) = rpc;
391 struct rpcent *rpc;
426 rpc = va_arg(ap, struct rpcent *);
453 rv = yp_match(st->domain, "rpc.byname", buf,
484 if (yp_match(st->domain, "rpc.bynumber", buf,
492 rv = yp_first(st->domain, "rpc.bynumber",
503 rv = yp_next(st->domain, "rpc.bynumber",
545 if (rpcent_unpack(buffer, rpc, aliases, aliases_size,
553 if (strcmp(rpc->r_name, name) == 0)
555 for (rp = rpc->r_aliases; *rp != NULL; rp++) {
572 *((struct rpcent **)retval) = rpc;
608 int rpc;
632 rpc = va_arg(ap, int);
641 memcpy(buffer + sizeof(enum nss_lookup_type), &rpc,
662 struct rpcent *rpc;
685 rpc = va_arg(ap, struct rpcent *);
690 if (rpc->r_name != NULL)
691 desired_size += strlen(rpc->r_name) + 1;
693 if (rpc->r_aliases != NULL) {
695 for (alias = rpc->r_aliases; *alias; ++alias) {
710 new_rpc = *rpc;
749 struct rpcent *rpc;
771 rpc = va_arg(ap, struct rpcent *);
782 memcpy(rpc, buffer, sizeof(struct rpcent));
792 NS_APPLY_OFFSET(rpc->r_name, orig_buf, p, char *);
793 if (rpc->r_aliases != NULL) {
794 NS_APPLY_OFFSET(rpc->r_aliases, orig_buf, p, char **);
796 for (alias = rpc->r_aliases ; *alias; ++alias)
801 *((struct rpcent **)retval) = rpc;
806 NSS_MP_CACHE_HANDLING(rpc);
812 getrpcbyname_r(const char *name, struct rpcent *rpc, char *buffer,
818 rpc, (void *)nss_lt_name,
836 name, rpc, buffer, bufsize, &ret_errno);
845 getrpcbynumber_r(int number, struct rpcent *rpc, char *buffer,
851 rpc, (void *)nss_lt_id,
869 number, rpc, buffer, bufsize, &ret_errno);
878 getrpcent_r(struct rpcent *rpc, char *buffer, size_t bufsize,
883 rpc, (void *)nss_lt_all,
901 rpc, buffer, bufsize, &ret_errno);
921 wrap_getrpcbyname_r(union key key, struct rpcent *rpc, char *buffer,
924 return (getrpcbyname_r(key.name, rpc, buffer, bufsize, res));
928 wrap_getrpcbynumber_r(union key key, struct rpcent *rpc, char *buffer,
931 return (getrpcbynumber_r(key.number, rpc, buffer, bufsize, res));
935 wrap_getrpcent_r(union key key __unused, struct rpcent *rpc, char *buffer,
938 return (getrpcent_r(rpc, buffer, bufsize, res));
962 rv = fn(key, &st->rpc, st->buffer, st->bufsize, &res);
1017 rpc, (void *)nss_lt_all,
1041 rpc, (void *)nss_lt_all,