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