* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software program in whole or part. Users
* may copy or modify Sun RPC without charge, but are not authorized
* to license or distribute it to anyone else except as part of a product or
* program developed by the user.
* SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
* Sun RPC is provided with no support and without any obligation on the
* part of Sun Microsystems, Inc. to assist in its use, correction,
* modification or enhancement.
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
* In no event will Sun Microsystems, Inc. be liable for any lost revenue
* or profits or other special, indirect and consequential damages, even if
* Sun has been advised of the possibility of such damages.
* Mountain View, California 94043
static char sccsid
[] = "@(#)clnt_perror.c 1.1 85/02/08 Copyr 1984 Sun Micro";
* Copyright (C) 1984, Sun Microsystems, Inc.
extern char *sys_errlist
[];
fprintf(stderr
, "%s: ", s
);
clnt_perrno(e
.re_status
);
clnt_perrno(e
.re_status
);
fprintf(stderr
, "; errno = %s",
sys_errlist
[e
.re_errno
]);
clnt_perrno(e
.re_status
);
fprintf(stderr
, "; errno = %s",
sys_errlist
[e
.re_errno
]);
clnt_perrno(e
.re_status
);
fprintf(stderr
, "; low version = %lu, high version = %lu", e
.re_vers
.low
, e
.re_vers
.high
);
clnt_perrno(e
.re_status
);
fprintf(stderr
, "; why = ");
fprintf(stderr
, "AUTH_OK");
fprintf(stderr
, "AUTH_BOGUS_CREDENTIAL");
fprintf(stderr
, "AUTH_REJECTED_CREDENTIAL");
fprintf(stderr
, "AUTH_BOGUS_VERIFIER");
fprintf(stderr
, "AUTH_REJECTED_VERIFIER");
fprintf(stderr
, "AUTH_TOO_WEAK (remote error)");
fprintf(stderr
, "AUTH_INVALID_RESPONSE");
fprintf(stderr
, "AUTH_UNKNOWN_FAILURE");
case RPC_PROGVERSMISMATCH
:
clnt_perrno(e
.re_status
);
fprintf(stderr
, "; low version = %lu, high version = %lu", e
.re_vers
.low
, e
.re_vers
.high
);
fprintf(stderr
, "RPC_UNKNOWN_FAILURE; s1 = %lu, s2 = %lu", e
.re_lb
.s1
, e
.re_lb
.s2
);
* This interface for use by clntrpc
fprintf(stderr
, "RPC_SUCCESS");
fprintf(stderr
, "RPC_CANT_ENCODE_ARGS");
fprintf(stderr
, "RPC_CANT_DECODE_RESULTS");
fprintf(stderr
, "RPC_CANT_SEND");
fprintf(stderr
, "RPC_CANT_RECV");
fprintf(stderr
, "RPC_TIMED_OUT");
fprintf(stderr
, "RPC_VERSION_MISMATCH");
fprintf(stderr
, "RPC_AUTH_ERROR");
fprintf(stderr
, "RPC_REMOTE_PROGRAM_UNAVAILABLE");
case RPC_PROGVERSMISMATCH
:
fprintf(stderr
, "RPC_PROGRAM_MISMATCH");
fprintf(stderr
, "RPC_UNKNOWN_PROCEDURE");
fprintf(stderr
, "RPC_CANT_DECODE_ARGS");
fprintf(stderr
, "RPC_UNKNOWNHOST");
fprintf(stderr
, "RPC_PMAP_FAILURE");
case RPC_PROGNOTREGISTERED
:
fprintf(stderr
, "RPC_PROG_NOT_REGISTERED");
fprintf(stderr
, "RPC_SYSTEM_ERROR");
* A handle on why an rpc creation routine failed (returned NULL.)
struct rpc_createerr rpc_createerr
;
fprintf(stderr
, "%s: ", s
);
clnt_perrno(rpc_createerr
.cf_stat
);
switch (rpc_createerr
.cf_stat
) {
clnt_perrno(rpc_createerr
.cf_error
.re_status
);
fprintf(stderr
, " - %s", sys_errlist
[rpc_createerr
.cf_error
.re_errno
]);