xref: /illumos-gate/usr/src/uts/common/rpc/clnt_stat.h (revision 2d6eb4a5e0a47d30189497241345dc5466bb68ab)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1986 - 1991, 1994, 1996, 1997, 2001 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 /*
28  * clnt_stat.h - Client side remote procedure call enum
29  *
30  */
31 
32 #ifndef	_RPC_CLNT_STAT_H
33 #define	_RPC_CLNT_STAT_H
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 enum clnt_stat {
40 	RPC_SUCCESS = 0,			/* call succeeded */
41 	/*
42 	 * local errors
43 	 */
44 	RPC_CANTENCODEARGS = 1,		/* can't encode arguments */
45 	RPC_CANTDECODERES = 2,		/* can't decode results */
46 	RPC_CANTSEND = 3,			/* failure in sending call */
47 	RPC_CANTRECV = 4,
48 	/* failure in receiving result */
49 	RPC_TIMEDOUT = 5,			/* call timed out */
50 	RPC_INTR = 18,			/* call interrupted */
51 	RPC_UDERROR = 23,			/* recv got uderr indication */
52 	/*
53 	 * remote errors
54 	 */
55 	RPC_VERSMISMATCH = 6,		/* rpc versions not compatible */
56 	RPC_AUTHERROR = 7,		/* authentication error */
57 	RPC_PROGUNAVAIL = 8,		/* program not available */
58 	RPC_PROGVERSMISMATCH = 9,	/* program version mismatched */
59 	RPC_PROCUNAVAIL = 10,		/* procedure unavailable */
60 	RPC_CANTDECODEARGS = 11,		/* decode arguments error */
61 	RPC_SYSTEMERROR = 12,		/* generic "other problem" */
62 
63 	/*
64 	 * rpc_call & clnt_create errors
65 	 */
66 	RPC_UNKNOWNHOST = 13,		/* unknown host name */
67 	RPC_UNKNOWNPROTO = 17,		/* unknown protocol */
68 	RPC_UNKNOWNADDR = 19,		/* Remote address unknown */
69 	RPC_NOBROADCAST = 21,		/* Broadcasting not supported */
70 
71 	/*
72 	 * rpcbind errors
73 	 */
74 	RPC_RPCBFAILURE = 14,		/* the pmapper failed in its call */
75 #define	RPC_PMAPFAILURE RPC_RPCBFAILURE
76 	RPC_PROGNOTREGISTERED = 15,	/* remote program is not registered */
77 	RPC_N2AXLATEFAILURE = 22,
78 	/* Name to address translation failed */
79 	/*
80 	 * Misc error in the TLI library
81 	 */
82 	RPC_TLIERROR = 20,
83 	/*
84 	 * unspecified error
85 	 */
86 	RPC_FAILED = 16,
87 	/*
88 	 * asynchronous errors
89 	 */
90 	RPC_INPROGRESS = 24,
91 	RPC_STALERACHANDLE = 25,
92 	RPC_CANTCONNECT = 26,		/* couldn't make connection (cots) */
93 	RPC_XPRTFAILED = 27,		/* received discon from remote (cots) */
94 	RPC_CANTCREATESTREAM = 28,	/* can't push rpc module (cots) */
95 	/*
96 	 * non blocking mode errors
97 	 */
98 	RPC_CANTSTORE = 29		/* fail to store a pending message */
99 
100 };
101 
102 #ifdef __cplusplus
103 }
104 #endif
105 
106 #endif	/* !_RPC_CLNT_STAT_H */
107