|
Packit |
00408a |
.\" @(#)rpc_svc_err.3n 1.23 93/08/31 SMI; from SVr4
|
|
Packit |
00408a |
.\" Copyright 1989 AT&T
|
|
Packit |
00408a |
.\" @(#)rpc_svc_err 1.4 89/06/28 SMI;
|
|
Packit |
00408a |
.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
|
|
Packit |
00408a |
.\" $NetBSD: rpc_svc_err.3,v 1.1 2000/06/02 23:11:14 fvdl Exp $
|
|
Packit |
00408a |
.\" $FreeBSD: src/lib/libc/rpc/rpc_svc_err.3,v 1.4 2002/12/19 09:40:23 ru Exp $
|
|
Packit |
00408a |
.Dd May 3, 1993
|
|
Packit |
00408a |
.Dt RPC_SVC_ERR 3
|
|
Packit |
00408a |
.Os
|
|
Packit |
00408a |
.Sh NAME
|
|
Packit |
00408a |
.Nm rpc_svc_err ,
|
|
Packit |
00408a |
.Nm svcerr_auth ,
|
|
Packit |
00408a |
.Nm svcerr_decode ,
|
|
Packit |
00408a |
.Nm svcerr_noproc ,
|
|
Packit |
00408a |
.Nm svcerr_noprog ,
|
|
Packit |
00408a |
.Nm svcerr_progvers ,
|
|
Packit |
00408a |
.Nm svcerr_systemerr ,
|
|
Packit |
00408a |
.Nm svcerr_weakauth
|
|
Packit |
00408a |
.Nd library routines for server side remote procedure call errors
|
|
Packit |
00408a |
.Sh SYNOPSIS
|
|
Packit |
00408a |
.In rpc/rpc.h
|
|
Packit |
00408a |
.Ft void
|
|
Packit |
00408a |
.Fn svcerr_auth "SVCXPRT *xprt" "enum auth_stat why"
|
|
Packit |
00408a |
.Ft void
|
|
Packit |
00408a |
.Fn svcerr_decode "SVCXPRT *xprt"
|
|
Packit |
00408a |
.Ft void
|
|
Packit |
00408a |
.Fn svcerr_noproc "SVCXPRT *xprt"
|
|
Packit |
00408a |
.Ft void
|
|
Packit |
00408a |
.Fn svcerr_noprog "SVCXPRT *xprt"
|
|
Packit |
00408a |
.Ft void
|
|
Packit |
00408a |
.Fn svcerr_progvers "SVCXPRT *xprt" "rpcvers_t low_vers" "rpcvers_t high_vers"
|
|
Packit |
00408a |
.Ft void
|
|
Packit |
00408a |
.Fn svcerr_systemerr "SVCXPRT *xprt"
|
|
Packit |
00408a |
.Ft void
|
|
Packit |
00408a |
.Fn svcerr_weakauth "SVCXPRT *xprt"
|
|
Packit |
00408a |
.Sh DESCRIPTION
|
|
Packit |
00408a |
These routines are part of the RPC
|
|
Packit |
00408a |
library which allows C language programs to make procedure
|
|
Packit |
00408a |
calls on other machines across the network.
|
|
Packit |
00408a |
.Pp
|
|
Packit |
00408a |
These routines can be called by the server side
|
|
Packit |
00408a |
dispatch function if there is any error in the
|
|
Packit |
00408a |
transaction with the client.
|
|
Packit |
00408a |
.Sh Routines
|
|
Packit |
00408a |
See
|
|
Packit |
00408a |
.Xr rpc 3
|
|
Packit |
00408a |
for the definition of the
|
|
Packit |
00408a |
.Vt SVCXPRT
|
|
Packit |
00408a |
data structure.
|
|
Packit |
00408a |
.Bl -tag -width XXXXX
|
|
Packit |
00408a |
.It Fn svcerr_auth
|
|
Packit |
00408a |
Called by a service dispatch routine that refuses to perform
|
|
Packit |
00408a |
a remote procedure call due to an authentication error.
|
|
Packit |
00408a |
.It Fn svcerr_decode
|
|
Packit |
00408a |
Called by a service dispatch routine that cannot successfully
|
|
Packit |
00408a |
decode the remote arguments
|
|
Packit |
00408a |
(see
|
|
Packit |
00408a |
.Fn svc_getargs
|
|
Packit |
00408a |
in
|
|
Packit |
00408a |
.Xr rpc_svc_reg 3 ) .
|
|
Packit |
00408a |
.It Fn svcerr_noproc
|
|
Packit |
00408a |
Called by a service dispatch routine that does not implement
|
|
Packit |
00408a |
the procedure number that the caller requests.
|
|
Packit |
00408a |
.It Fn svcerr_noprog
|
|
Packit |
00408a |
Called when the desired program is not registered with the
|
|
Packit |
00408a |
RPC package.
|
|
Packit |
00408a |
Service implementors usually do not need this routine.
|
|
Packit |
00408a |
.It Fn svcerr_progvers
|
|
Packit |
00408a |
Called when the desired version of a program is not registered with the
|
|
Packit |
00408a |
RPC package.
|
|
Packit |
00408a |
The
|
|
Packit |
00408a |
.Fa low_vers
|
|
Packit |
00408a |
argument
|
|
Packit |
00408a |
is the lowest version number,
|
|
Packit |
00408a |
and
|
|
Packit |
00408a |
.Fa high_vers
|
|
Packit |
00408a |
is the highest version number.
|
|
Packit |
00408a |
Service implementors usually do not need this routine.
|
|
Packit |
00408a |
.It Fn svcerr_systemerr
|
|
Packit |
00408a |
Called by a service dispatch routine when it detects a system
|
|
Packit |
00408a |
error not covered by any particular protocol.
|
|
Packit |
00408a |
For example, if a service can no longer allocate storage,
|
|
Packit |
00408a |
it may call this routine.
|
|
Packit |
00408a |
.It Fn svcerr_weakauth
|
|
Packit |
00408a |
Called by a service dispatch routine that refuses to perform
|
|
Packit |
00408a |
a remote procedure call due to insufficient (but correct)
|
|
Packit |
00408a |
authentication arguments.
|
|
Packit |
00408a |
The routine calls
|
|
Packit |
00408a |
.Fn svcerr_auth "xprt" "AUTH_TOOWEAK" .
|
|
Packit |
00408a |
.El
|
|
Packit |
00408a |
.Sh AVAILABILITY
|
|
Packit |
00408a |
These functions are part of libtirpc.
|
|
Packit |
00408a |
.Sh SEE ALSO
|
|
Packit |
00408a |
.Xr rpc 3 ,
|
|
Packit |
00408a |
.Xr rpc_svc_calls 3 ,
|
|
Packit |
00408a |
.Xr rpc_svc_create 3 ,
|
|
Packit |
00408a |
.Xr rpc_svc_reg 3
|