1RPC_SVC_ERR(3) BSD Library Functions Manual RPC_SVC_ERR(3)
2
4 rpc_svc_err, svcerr_auth, svcerr_decode, svcerr_noproc, svcerr_noprog,
5 svcerr_progvers, svcerr_systemerr, svcerr_weakauth — library routines for
6 server side remote procedure call errors
7
9 Standard C Library (libc, -lc)
10
12 #include <rpc/rpc.h>
13
14 void
15 svcerr_auth(SVCXPRT *xprt, enum auth_stat why);
16
17 void
18 svcerr_decode(SVCXPRT *xprt);
19
20 void
21 svcerr_noproc(SVCXPRT *xprt);
22
23 void
24 svcerr_noprog(SVCXPRT *xprt);
25
26 void
27 svcerr_progvers(SVCXPRT *xprt, rpcvers_t low_vers, rpcvers_t high_vers);
28
29 void
30 svcerr_systemerr(SVCXPRT *xprt);
31
32 void
33 svcerr_weakauth(SVCXPRT *xprt);
34
36 These routines are part of the RPC library which allows C language pro‐
37 grams to make procedure calls on other machines across the network.
38
39 These routines can be called by the server side dispatch function if
40 there is any error in the transaction with the client.
41
43 See rpc(3) for the definition of the SVCXPRT data structure.
44
45 svcerr_auth()
46 Called by a service dispatch routine that refuses to perform a
47 remote procedure call due to an authentication error.
48
49 svcerr_decode()
50 Called by a service dispatch routine that cannot successfully
51 decode the remote arguments (see svc_getargs() in rpc_svc_reg(3)).
52
53 svcerr_noproc()
54 Called by a service dispatch routine that does not implement the
55 procedure number that the caller requests.
56
57 svcerr_noprog()
58 Called when the desired program is not registered with the RPC
59 package. Service implementors usually do not need this routine.
60
61 svcerr_progvers()
62 Called when the desired version of a program is not registered
63 with the RPC package. The low_vers argument is the lowest version
64 number, and high_vers is the highest version number. Service
65 implementors usually do not need this routine.
66
67 svcerr_systemerr()
68 Called by a service dispatch routine when it detects a system
69 error not covered by any particular protocol. For example, if a
70 service can no longer allocate storage, it may call this routine.
71
72 svcerr_weakauth()
73 Called by a service dispatch routine that refuses to perform a
74 remote procedure call due to insufficient (but correct) authenti‐
75 cation arguments. The routine calls svcerr_auth(xprt,
76 AUTH_TOOWEAK).
77
79 rpc(3), rpc_svc_calls(3), rpc_svc_create(3), rpc_svc_reg(3)
80
81BSD May 3, 1993 BSD