summaryrefslogtreecommitdiff
path: root/sunrpc/clnt_perr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/clnt_perr.c')
-rw-r--r--sunrpc/clnt_perr.c128
1 files changed, 64 insertions, 64 deletions
diff --git a/sunrpc/clnt_perr.c b/sunrpc/clnt_perr.c
index 4a8c084e13..147a5ea23c 100644
--- a/sunrpc/clnt_perr.c
+++ b/sunrpc/clnt_perr.c
@@ -6,23 +6,23 @@
* 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
* OR ANY PART THEREOF.
- *
+ *
* 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.
- *
+ *
* Sun Microsystems, Inc.
* 2550 Garcia Avenue
* Mountain View, California 94043
@@ -78,17 +78,17 @@ clnt_sperror(rpch, s)
return (0);
CLNT_GETERR(rpch, &e);
- (void) sprintf(str, "%s: ", s);
+ (void) sprintf(str, "%s: ", s);
str += strlen(str);
- (void) strcpy(str, clnt_sperrno(e.re_status));
+ (void) strcpy(str, clnt_sperrno(e.re_status));
str += strlen(str);
switch (e.re_status) {
case RPC_SUCCESS:
case RPC_CANTENCODEARGS:
case RPC_CANTDECODERES:
- case RPC_TIMEDOUT:
+ case RPC_TIMEDOUT:
case RPC_PROGUNAVAIL:
case RPC_PROCUNAVAIL:
case RPC_CANTDECODEARGS:
@@ -103,41 +103,41 @@ clnt_sperror(rpch, s)
case RPC_CANTSEND:
case RPC_CANTRECV:
(void) sprintf(str, "; errno = %s",
- sys_errlist[e.re_errno]);
+ sys_errlist[e.re_errno]);
str += strlen(str);
break;
case RPC_VERSMISMATCH:
(void) sprintf(str,
- "; low version = %lu, high version = %lu",
+ _("; low version = %lu, high version = %lu"),
e.re_vers.low, e.re_vers.high);
str += strlen(str);
break;
case RPC_AUTHERROR:
err = auth_errmsg(e.re_why);
- (void) sprintf(str,"; why = ");
+ (void) sprintf(str,_("; why = "));
str += strlen(str);
if (err != NULL) {
(void) sprintf(str, "%s",err);
} else {
(void) sprintf(str,
- "(unknown authentication error - %d)",
+ _("(unknown authentication error - %d)"),
(int) e.re_why);
}
str += strlen(str);
break;
case RPC_PROGVERSMISMATCH:
- (void) sprintf(str,
- "; low version = %lu, high version = %lu",
+ (void) sprintf(str,
+ _("; low version = %lu, high version = %lu"),
e.re_vers.low, e.re_vers.high);
str += strlen(str);
break;
default: /* unknown */
- (void) sprintf(str,
- "; s1 = %lu, s2 = %lu",
+ (void) sprintf(str,
+ "; s1 = %lu, s2 = %lu",
e.re_lb.s1, e.re_lb.s2);
str += strlen(str);
break;
@@ -161,42 +161,42 @@ struct rpc_errtab {
};
static struct rpc_errtab rpc_errlist[] = {
- { RPC_SUCCESS,
- "RPC: Success" },
- { RPC_CANTENCODEARGS,
- "RPC: Can't encode arguments" },
- { RPC_CANTDECODERES,
- "RPC: Can't decode result" },
- { RPC_CANTSEND,
- "RPC: Unable to send" },
- { RPC_CANTRECV,
- "RPC: Unable to receive" },
- { RPC_TIMEDOUT,
- "RPC: Timed out" },
- { RPC_VERSMISMATCH,
- "RPC: Incompatible versions of RPC" },
- { RPC_AUTHERROR,
- "RPC: Authentication error" },
- { RPC_PROGUNAVAIL,
- "RPC: Program unavailable" },
- { RPC_PROGVERSMISMATCH,
- "RPC: Program/version mismatch" },
- { RPC_PROCUNAVAIL,
- "RPC: Procedure unavailable" },
- { RPC_CANTDECODEARGS,
- "RPC: Server can't decode arguments" },
- { RPC_SYSTEMERROR,
- "RPC: Remote system error" },
- { RPC_UNKNOWNHOST,
- "RPC: Unknown host" },
+ { RPC_SUCCESS,
+ N_("RPC: Success") },
+ { RPC_CANTENCODEARGS,
+ N_("RPC: Can't encode arguments") },
+ { RPC_CANTDECODERES,
+ N_("RPC: Can't decode result") },
+ { RPC_CANTSEND,
+ N_("RPC: Unable to send") },
+ { RPC_CANTRECV,
+ N_("RPC: Unable to receive") },
+ { RPC_TIMEDOUT,
+ N_("RPC: Timed out") },
+ { RPC_VERSMISMATCH,
+ N_("RPC: Incompatible versions of RPC") },
+ { RPC_AUTHERROR,
+ N_("RPC: Authentication error") },
+ { RPC_PROGUNAVAIL,
+ N_("RPC: Program unavailable") },
+ { RPC_PROGVERSMISMATCH,
+ N_("RPC: Program/version mismatch") },
+ { RPC_PROCUNAVAIL,
+ N_("RPC: Procedure unavailable") },
+ { RPC_CANTDECODEARGS,
+ N_("RPC: Server can't decode arguments") },
+ { RPC_SYSTEMERROR,
+ N_("RPC: Remote system error") },
+ { RPC_UNKNOWNHOST,
+ N_("RPC: Unknown host") },
{ RPC_UNKNOWNPROTO,
- "RPC: Unknown protocol" },
- { RPC_PMAPFAILURE,
- "RPC: Port mapper failure" },
- { RPC_PROGNOTREGISTERED,
- "RPC: Program not registered"},
- { RPC_FAILED,
- "RPC: Failed (unspecified error)"}
+ N_("RPC: Unknown protocol") },
+ { RPC_PMAPFAILURE,
+ N_("RPC: Port mapper failure") },
+ { RPC_PROGNOTREGISTERED,
+ N_("RPC: Program not registered") },
+ { RPC_FAILED,
+ N_("RPC: Failed (unspecified error)") }
};
@@ -211,10 +211,10 @@ clnt_sperrno(stat)
for (i = 0; i < sizeof(rpc_errlist)/sizeof(struct rpc_errtab); i++) {
if (rpc_errlist[i].status == stat) {
- return (rpc_errlist[i].message);
+ return _(rpc_errlist[i].message);
}
}
- return ("RPC: (unknown error code)");
+ return _("RPC: (unknown error code)");
}
void
@@ -251,7 +251,7 @@ clnt_spcreateerror(s)
(void) strcat(str,
sys_errlist[rpc_createerr.cf_error.re_errno]);
else
- (void) sprintf(&str[strlen(str)], "Error %d",
+ (void) sprintf(&str[strlen(str)], _("Error %d"),
rpc_createerr.cf_error.re_errno);
break;
}
@@ -267,27 +267,27 @@ clnt_pcreateerror(s)
}
struct auth_errtab {
- enum auth_stat status;
+ enum auth_stat status;
char *message;
};
static struct auth_errtab auth_errlist[] = {
{ AUTH_OK,
- "Authentication OK" },
+ N_("Authentication OK") },
{ AUTH_BADCRED,
- "Invalid client credential" },
+ N_("Invalid client credential") },
{ AUTH_REJECTEDCRED,
- "Server rejected credential" },
+ N_("Server rejected credential") },
{ AUTH_BADVERF,
- "Invalid client verifier" },
+ N_("Invalid client verifier") },
{ AUTH_REJECTEDVERF,
- "Server rejected verifier" },
+ N_("Server rejected verifier") },
{ AUTH_TOOWEAK,
- "Client credential too weak" },
+ N_("Client credential too weak") },
{ AUTH_INVALIDRESP,
- "Invalid server verifier" },
+ N_("Invalid server verifier") },
{ AUTH_FAILED,
- "Failed (unspecified error)" },
+ N_("Failed (unspecified error)") },
};
static char *
@@ -298,7 +298,7 @@ auth_errmsg(stat)
for (i = 0; i < sizeof(auth_errlist)/sizeof(struct auth_errtab); i++) {
if (auth_errlist[i].status == stat) {
- return(auth_errlist[i].message);
+ return _(auth_errlist[i].message);
}
}
return(NULL);