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