/*1* Copyright (c) 1986 - 1991, 1994, 1996, 1997 by Sun Microsystems, Inc.2* All rights reserved.3*/45/*6* clnt_stat.h - Client side remote procedure call enum7*8*/910#ifndef _RPC_CLNT_STAT_H11#define _RPC_CLNT_STAT_H1213#ifdef __cplusplus14extern "C" {15#endif1617enum clnt_stat {18RPC_SUCCESS = 0, /* call succeeded */19/*20* local errors21*/22RPC_CANTENCODEARGS = 1, /* can't encode arguments */23RPC_CANTDECODERES = 2, /* can't decode results */24RPC_CANTSEND = 3, /* failure in sending call */25RPC_CANTRECV = 4,26/* failure in receiving result */27RPC_TIMEDOUT = 5, /* call timed out */28RPC_INTR = 18, /* call interrupted */29RPC_UDERROR = 23, /* recv got uderr indication */30/*31* remote errors32*/33RPC_VERSMISMATCH = 6, /* rpc versions not compatible */34RPC_AUTHERROR = 7, /* authentication error */35RPC_PROGUNAVAIL = 8, /* program not available */36RPC_PROGVERSMISMATCH = 9, /* program version mismatched */37RPC_PROCUNAVAIL = 10, /* procedure unavailable */38RPC_CANTDECODEARGS = 11, /* decode arguments error */39RPC_SYSTEMERROR = 12, /* generic "other problem" */4041/*42* rpc_call & clnt_create errors43*/44RPC_UNKNOWNHOST = 13, /* unknown host name */45RPC_UNKNOWNPROTO = 17, /* unknown protocol */46RPC_UNKNOWNADDR = 19, /* Remote address unknown */47RPC_NOBROADCAST = 21, /* Broadcasting not supported */4849/*50* rpcbind errors51*/52RPC_RPCBFAILURE = 14, /* the pmapper failed in its call */53#define RPC_PMAPFAILURE RPC_RPCBFAILURE54RPC_PROGNOTREGISTERED = 15, /* remote program is not registered */55RPC_N2AXLATEFAILURE = 22,56/* Name to address translation failed */57/*58* Misc error in the TLI library59*/60RPC_TLIERROR = 20,61/*62* unspecified error63*/64RPC_FAILED = 16,65/*66* asynchronous errors67*/68RPC_INPROGRESS = 24,69RPC_STALERACHANDLE = 25,70RPC_CANTCONNECT = 26, /* couldn't make connection (cots) */71RPC_XPRTFAILED = 27, /* received discon from remote (cots) */72RPC_CANTCREATESTREAM = 28 /* can't push rpc module (cots) */73};7475#ifdef __cplusplus76}77#endif7879#endif /* !_RPC_CLNT_STAT_H */808182