rac.c revision ac9418faa9bc5d2e2b8fdb33f434b05183528026
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* rac.c
#include "rac_private.h"
#include <ctype.h>
#include <netconfig.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
enum clnt_stat
enum clnt_stat
__rpc_dtbsize(void)
static int tbsize = 0;
if (tbsize) {
return (tbsize);
return ((uint_t)0);
if (size == 0) {
if (size >= 0) {
return ((uint_t)0);
struct netconfig *
char *netid;
static char *netid_tcp;
static char *netid_udp;
void *confighandle;
return (NULL);
return (NULL);
return (NULL);
struct handle {
int nettype;
struct _rpcnettype {
const char *name;
const int type;
} _rpctypelist[] = {
0, _RPC_NONE
strlocase(char *p)
if (isupper(*p))
*p = tolower(*p);
return (NULL);
case _RPC_NETPATH:
case _RPC_CIRCUIT_N:
case _RPC_DATAGRAM_N:
return (NULL);
case _RPC_VISIBLE:
case _RPC_CIRCUIT_V:
case _RPC_DATAGRAM_V:
case _RPC_TCP:
case _RPC_UDP:
return (NULL);
return (NULL);
return (handle);
struct netconfig *
return (NULL);
case _RPC_VISIBLE:
case _RPC_CIRCUIT_V:
case _RPC_CIRCUIT_N:
case _RPC_DATAGRAM_V:
case _RPC_DATAGRAM_N:
case _RPC_TCP:
case _RPC_UDP:
return (nconf);
long *in;
p->fd = n + j;
return (p - p0);
return (p - p0);
if (t->tv_usec)
return (t1);
switch (acpt_stat) {
case PROG_UNAVAIL:
case PROG_MISMATCH:
case PROC_UNAVAIL:
case GARBAGE_ARGS:
case SYSTEM_ERR:
case SUCCESS:
switch (rjct_stat) {
case RPC_MISMATCH:
case AUTH_ERROR:
case MSG_ACCEPTED:
case MSG_DENIED:
case RPC_VERSMISMATCH:
case RPC_AUTHERROR:
case RPC_PROGVERSMISMATCH: