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