1 /* 2 * Copyright (c) 1986 - 1991, 1994, 1996, 1997 by Sun Microsystems, Inc. 3 * All rights reserved. 4 */ 5 6 /* 7 * clnt_stat.h - Client side remote procedure call enum 8 * 9 */ 10 11 #ifndef _RPC_CLNT_STAT_H 12 #define _RPC_CLNT_STAT_H 13 14 /* #pragma ident "@(#)clnt_stat.h 1.2 97/04/28 SMI" */ 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 enum clnt_stat { 21 RPC_SUCCESS = 0, /* call succeeded */ 22 /* 23 * local errors 24 */ 25 RPC_CANTENCODEARGS = 1, /* can't encode arguments */ 26 RPC_CANTDECODERES = 2, /* can't decode results */ 27 RPC_CANTSEND = 3, /* failure in sending call */ 28 RPC_CANTRECV = 4, 29 /* failure in receiving result */ 30 RPC_TIMEDOUT = 5, /* call timed out */ 31 RPC_INTR = 18, /* call interrupted */ 32 RPC_UDERROR = 23, /* recv got uderr indication */ 33 /* 34 * remote errors 35 */ 36 RPC_VERSMISMATCH = 6, /* rpc versions not compatible */ 37 RPC_AUTHERROR = 7, /* authentication error */ 38 RPC_PROGUNAVAIL = 8, /* program not available */ 39 RPC_PROGVERSMISMATCH = 9, /* program version mismatched */ 40 RPC_PROCUNAVAIL = 10, /* procedure unavailable */ 41 RPC_CANTDECODEARGS = 11, /* decode arguments error */ 42 RPC_SYSTEMERROR = 12, /* generic "other problem" */ 43 44 /* 45 * rpc_call & clnt_create errors 46 */ 47 RPC_UNKNOWNHOST = 13, /* unknown host name */ 48 RPC_UNKNOWNPROTO = 17, /* unknown protocol */ 49 RPC_UNKNOWNADDR = 19, /* Remote address unknown */ 50 RPC_NOBROADCAST = 21, /* Broadcasting not supported */ 51 52 /* 53 * rpcbind errors 54 */ 55 RPC_RPCBFAILURE = 14, /* the pmapper failed in its call */ 56 #define RPC_PMAPFAILURE RPC_RPCBFAILURE 57 RPC_PROGNOTREGISTERED = 15, /* remote program is not registered */ 58 RPC_N2AXLATEFAILURE = 22, 59 /* Name to address translation failed */ 60 /* 61 * Misc error in the TLI library 62 */ 63 RPC_TLIERROR = 20, 64 /* 65 * unspecified error 66 */ 67 RPC_FAILED = 16, 68 /* 69 * asynchronous errors 70 */ 71 RPC_INPROGRESS = 24, 72 RPC_STALERACHANDLE = 25, 73 RPC_CANTCONNECT = 26, /* couldn't make connection (cots) */ 74 RPC_XPRTFAILED = 27, /* received discon from remote (cots) */ 75 RPC_CANTCREATESTREAM = 28 /* can't push rpc module (cots) */ 76 }; 77 78 #ifdef __cplusplus 79 } 80 #endif 81 82 #endif /* !_RPC_CLNT_STAT_H */ 83