xref: /titanic_50/usr/src/uts/common/rpc/clnt_stat.h (revision 29e83d4b25fd82feb8e0e0fbe89f7e2a8438533d)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 enum clnt_stat {
42 	RPC_SUCCESS = 0,			/* call succeeded */
43 	/*
44 	 * local errors
45 	 */
46 	RPC_CANTENCODEARGS = 1,		/* can't encode arguments */
47 	RPC_CANTDECODERES = 2,		/* can't decode results */
48 	RPC_CANTSEND = 3,			/* failure in sending call */
49 	RPC_CANTRECV = 4,
50 	/* failure in receiving result */
51 	RPC_TIMEDOUT = 5,			/* call timed out */
52 	RPC_INTR = 18,			/* call interrupted */
53 	RPC_UDERROR = 23,			/* recv got uderr indication */
54 	/*
55 	 * remote errors
56 	 */
57 	RPC_VERSMISMATCH = 6,		/* rpc versions not compatible */
58 	RPC_AUTHERROR = 7,		/* authentication error */
59 	RPC_PROGUNAVAIL = 8,		/* program not available */
60 	RPC_PROGVERSMISMATCH = 9,	/* program version mismatched */
61 	RPC_PROCUNAVAIL = 10,		/* procedure unavailable */
62 	RPC_CANTDECODEARGS = 11,		/* decode arguments error */
63 	RPC_SYSTEMERROR = 12,		/* generic "other problem" */
64 
65 	/*
66 	 * rpc_call & clnt_create errors
67 	 */
68 	RPC_UNKNOWNHOST = 13,		/* unknown host name */
69 	RPC_UNKNOWNPROTO = 17,		/* unknown protocol */
70 	RPC_UNKNOWNADDR = 19,		/* Remote address unknown */
71 	RPC_NOBROADCAST = 21,		/* Broadcasting not supported */
72 
73 	/*
74 	 * rpcbind errors
75 	 */
76 	RPC_RPCBFAILURE = 14,		/* the pmapper failed in its call */
77 #define	RPC_PMAPFAILURE RPC_RPCBFAILURE
78 	RPC_PROGNOTREGISTERED = 15,	/* remote program is not registered */
79 	RPC_N2AXLATEFAILURE = 22,
80 	/* Name to address translation failed */
81 	/*
82 	 * Misc error in the TLI library
83 	 */
84 	RPC_TLIERROR = 20,
85 	/*
86 	 * unspecified error
87 	 */
88 	RPC_FAILED = 16,
89 	/*
90 	 * asynchronous errors
91 	 */
92 	RPC_INPROGRESS = 24,
93 	RPC_STALERACHANDLE = 25,
94 	RPC_CANTCONNECT = 26,		/* couldn't make connection (cots) */
95 	RPC_XPRTFAILED = 27,		/* received discon from remote (cots) */
96 	RPC_CANTCREATESTREAM = 28,	/* can't push rpc module (cots) */
97 	/*
98 	 * non blocking mode errors
99 	 */
100 	RPC_CANTSTORE = 29		/* fail to store a pending message */
101 
102 };
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif	/* !_RPC_CLNT_STAT_H */
109