summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/auth_unix.c5
-rw-r--r--libc/inet/rpc/clnt_perror.c66
-rw-r--r--libc/inet/rpc/clnt_raw.c2
-rw-r--r--libc/inet/rpc/clnt_tcp.c2
-rw-r--r--libc/inet/rpc/clnt_udp.c2
-rw-r--r--libc/inet/rpc/clnt_unix.c2
-rw-r--r--libc/inet/rpc/get_myaddress.c3
-rw-r--r--libc/inet/rpc/pm_getmaps.c2
-rw-r--r--libc/inet/rpc/pmap_clnt.c4
-rw-r--r--libc/inet/rpc/pmap_rmt.c14
-rw-r--r--libc/inet/rpc/rcmd.c1
-rw-r--r--libc/inet/rpc/rpc_private.h1
-rw-r--r--libc/inet/rpc/ruserpass.c11
-rw-r--r--libc/inet/rpc/svc_run.c2
-rw-r--r--libc/inet/rpc/svc_simple.c12
-rw-r--r--libc/inet/rpc/svc_tcp.c8
-rw-r--r--libc/inet/rpc/svc_udp.c22
-rw-r--r--libc/inet/rpc/svc_unix.c8
-rw-r--r--libc/inet/rpc/xdr.c5
-rw-r--r--libc/inet/rpc/xdr_array.c3
-rw-r--r--libc/inet/rpc/xdr_rec.c2
-rw-r--r--libc/inet/rpc/xdr_reference.c3
22 files changed, 86 insertions, 94 deletions
diff --git a/libc/inet/rpc/auth_unix.c b/libc/inet/rpc/auth_unix.c
index 72d7a7af9..86c5ce956 100644
--- a/libc/inet/rpc/auth_unix.c
+++ b/libc/inet/rpc/auth_unix.c
@@ -42,7 +42,6 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <libintl.h>
#include <sys/param.h>
#include <rpc/types.h>
@@ -105,7 +104,7 @@ authunix_create (char *machname, uid_t uid, gid_t gid, int len,
if (auth == NULL || au == NULL)
{
no_memory:
- (void) fputs (_("authunix_create: out of memory\n"), stderr);
+ (void) fputs ("authunix_create: out of memory\n", stderr);
mem_free (auth, sizeof (*auth));
mem_free (au, sizeof (*au));
return NULL;
@@ -314,7 +313,7 @@ marshal_new_auth (AUTH *auth)
xdrmem_create (xdrs, au->au_marshed, MAX_AUTH_BYTES, XDR_ENCODE);
if ((!xdr_opaque_auth (xdrs, &(auth->ah_cred))) ||
(!xdr_opaque_auth (xdrs, &(auth->ah_verf))))
- perror (_("auth_unix.c - Fatal marshalling problem"));
+ perror ("auth_unix.c - Fatal marshalling problem");
else
au->au_mpos = XDR_GETPOS (xdrs);
diff --git a/libc/inet/rpc/clnt_perror.c b/libc/inet/rpc/clnt_perror.c
index 190e07eb7..f34900d54 100644
--- a/libc/inet/rpc/clnt_perror.c
+++ b/libc/inet/rpc/clnt_perror.c
@@ -72,74 +72,74 @@ struct rpc_errtab
static const char rpc_errstr[] =
{
#define RPC_SUCCESS_IDX 0
- N_("RPC: Success")
+ "RPC: Success"
"\0"
#define RPC_CANTENCODEARGS_IDX (RPC_SUCCESS_IDX + sizeof "RPC: Success")
- N_("RPC: Can't encode arguments")
+ "RPC: Can't encode arguments"
"\0"
#define RPC_CANTDECODERES_IDX (RPC_CANTENCODEARGS_IDX \
+ sizeof "RPC: Can't encode arguments")
- N_("RPC: Can't decode result")
+ "RPC: Can't decode result"
"\0"
#define RPC_CANTSEND_IDX (RPC_CANTDECODERES_IDX \
+ sizeof "RPC: Can't decode result")
- N_("RPC: Unable to send")
+ "RPC: Unable to send"
"\0"
#define RPC_CANTRECV_IDX (RPC_CANTSEND_IDX \
+ sizeof "RPC: Unable to send")
- N_("RPC: Unable to receive")
+ "RPC: Unable to receive"
"\0"
#define RPC_TIMEDOUT_IDX (RPC_CANTRECV_IDX \
+ sizeof "RPC: Unable to receive")
- N_("RPC: Timed out")
+ "RPC: Timed out"
"\0"
#define RPC_VERSMISMATCH_IDX (RPC_TIMEDOUT_IDX \
+ sizeof "RPC: Timed out")
- N_("RPC: Incompatible versions of RPC")
+ "RPC: Incompatible versions of RPC"
"\0"
#define RPC_AUTHERROR_IDX (RPC_VERSMISMATCH_IDX \
+ sizeof "RPC: Incompatible versions of RPC")
- N_("RPC: Authentication error")
+ "RPC: Authentication error"
"\0"
#define RPC_PROGUNAVAIL_IDX (RPC_AUTHERROR_IDX \
+ sizeof "RPC: Authentication error")
- N_("RPC: Program unavailable")
+ "RPC: Program unavailable"
"\0"
#define RPC_PROGVERSMISMATCH_IDX (RPC_PROGUNAVAIL_IDX \
+ sizeof "RPC: Program unavailable")
- N_("RPC: Program/version mismatch")
+ "RPC: Program/version mismatch"
"\0"
#define RPC_PROCUNAVAIL_IDX (RPC_PROGVERSMISMATCH_IDX \
+ sizeof "RPC: Program/version mismatch")
- N_("RPC: Procedure unavailable")
+ "RPC: Procedure unavailable"
"\0"
#define RPC_CANTDECODEARGS_IDX (RPC_PROCUNAVAIL_IDX \
+ sizeof "RPC: Procedure unavailable")
- N_("RPC: Server can't decode arguments")
+ "RPC: Server can't decode arguments"
"\0"
#define RPC_SYSTEMERROR_IDX (RPC_CANTDECODEARGS_IDX \
+ sizeof "RPC: Server can't decode arguments")
- N_("RPC: Remote system error")
+ "RPC: Remote system error"
"\0"
#define RPC_UNKNOWNHOST_IDX (RPC_SYSTEMERROR_IDX \
+ sizeof "RPC: Remote system error")
- N_("RPC: Unknown host")
+ "RPC: Unknown host"
"\0"
#define RPC_UNKNOWNPROTO_IDX (RPC_UNKNOWNHOST_IDX \
+ sizeof "RPC: Unknown host")
- N_("RPC: Unknown protocol")
+ "RPC: Unknown protocol"
"\0"
#define RPC_PMAPFAILURE_IDX (RPC_UNKNOWNPROTO_IDX \
+ sizeof "RPC: Unknown protocol")
- N_("RPC: Port mapper failure")
+ "RPC: Port mapper failure"
"\0"
#define RPC_PROGNOTREGISTERED_IDX (RPC_PMAPFAILURE_IDX \
+ sizeof "RPC: Port mapper failure")
- N_("RPC: Program not registered")
+ "RPC: Program not registered"
"\0"
#define RPC_FAILED_IDX (RPC_PROGNOTREGISTERED_IDX \
+ sizeof "RPC: Program not registered")
- N_("RPC: Failed (unspecified error)")
+ "RPC: Failed (unspecified error)"
};
static const struct rpc_errtab rpc_errlist[] =
@@ -177,10 +177,10 @@ clnt_sperrno (enum clnt_stat stat)
{
if (rpc_errlist[i].status == stat)
{
- return (char*)_(rpc_errstr + rpc_errlist[i].message_off);
+ return (char*)rpc_errstr + rpc_errlist[i].message_off;
}
}
- return N_("RPC: (unknown error code)");
+ return "RPC: (unknown error code)";
}
libc_hidden_def(clnt_sperrno)
@@ -238,14 +238,14 @@ clnt_sperror (CLIENT * rpch, const char *msg)
break;
case RPC_VERSMISMATCH:
- len= sprintf (str, _("; low version = %lu, high version = %lu"),
+ len= sprintf (str, "; low version = %lu, high version = %lu",
e.re_vers.low, e.re_vers.high);
str += len;
break;
case RPC_AUTHERROR:
err = auth_errmsg (e.re_why);
- (void) strcpy(str, _("; why = "));
+ (void) strcpy(str, "; why = ");
str += strlen(str);
if (err != NULL)
@@ -255,14 +255,14 @@ clnt_sperror (CLIENT * rpch, const char *msg)
}
else
{
- len = sprintf (str, _("(unknown authentication error - %d)"),
+ len = sprintf (str, "(unknown authentication error - %d)",
(int) e.re_why);
str += len;
}
break;
case RPC_PROGVERSMISMATCH:
- len = sprintf (str, _("; low version = %lu, high version = %lu"),
+ len = sprintf (str, "; low version = %lu, high version = %lu",
e.re_vers.low, e.re_vers.high);
str += len;
break;
@@ -345,34 +345,34 @@ struct auth_errtab
static const char auth_errstr[] =
{
#define AUTH_OK_IDX 0
- N_("Authentication OK")
+ "Authentication OK"
"\0"
#define AUTH_BADCRED_IDX (AUTH_OK_IDX + sizeof "Authentication OK")
- N_("Invalid client credential")
+ "Invalid client credential"
"\0"
#define AUTH_REJECTEDCRED_IDX (AUTH_BADCRED_IDX \
+ sizeof "Invalid client credential")
- N_("Server rejected credential")
+ "Server rejected credential"
"\0"
#define AUTH_BADVERF_IDX (AUTH_REJECTEDCRED_IDX \
+ sizeof "Server rejected credential")
- N_("Invalid client verifier")
+ "Invalid client verifier"
"\0"
#define AUTH_REJECTEDVERF_IDX (AUTH_BADVERF_IDX \
+ sizeof "Invalid client verifier")
- N_("Server rejected verifier")
+ "Server rejected verifier"
"\0"
#define AUTH_TOOWEAK_IDX (AUTH_REJECTEDVERF_IDX \
+ sizeof "Server rejected verifier")
- N_("Client credential too weak")
+ "Client credential too weak"
"\0"
#define AUTH_INVALIDRESP_IDX (AUTH_TOOWEAK_IDX \
+ sizeof "Client credential too weak")
- N_("Invalid server verifier")
+ "Invalid server verifier"
"\0"
#define AUTH_FAILED_IDX (AUTH_INVALIDRESP_IDX \
+ sizeof "Invalid server verifier")
- N_("Failed (unspecified error)")
+ "Failed (unspecified error)"
};
static const struct auth_errtab auth_errlist[] =
@@ -397,7 +397,7 @@ auth_errmsg (enum auth_stat stat)
{
if (auth_errlist[i].status == stat)
{
- return (char*)_(auth_errstr + auth_errlist[i].message_off);
+ return (char*)auth_errstr + auth_errlist[i].message_off;
}
}
return NULL;
diff --git a/libc/inet/rpc/clnt_raw.c b/libc/inet/rpc/clnt_raw.c
index ddc1c1421..0d4efde21 100644
--- a/libc/inet/rpc/clnt_raw.c
+++ b/libc/inet/rpc/clnt_raw.c
@@ -113,7 +113,7 @@ clntraw_create (u_long prog, u_long vers)
xdrmem_create (xdrs, clp->mashl_callmsg, MCALL_MSG_SIZE, XDR_ENCODE);
if (!xdr_callhdr (xdrs, &call_msg))
{
- perror (_ ("clnt_raw.c - Fatal header serialization error."));
+ perror ("clnt_raw.c - Fatal header serialization error.");
}
clp->mcnt = XDR_GETPOS (xdrs);
XDR_DESTROY (xdrs);
diff --git a/libc/inet/rpc/clnt_tcp.c b/libc/inet/rpc/clnt_tcp.c
index 4b19a9aab..7046057ab 100644
--- a/libc/inet/rpc/clnt_tcp.c
+++ b/libc/inet/rpc/clnt_tcp.c
@@ -122,7 +122,7 @@ clnttcp_create (struct sockaddr_in *raddr, u_long prog, u_long vers,
if (h == NULL || ct == NULL)
{
struct rpc_createerr *ce = &get_rpc_createerr ();
- (void) fputs (_("clnttcp_create: out of memory\n"), stderr);
+ (void) fputs ("clnttcp_create: out of memory\n", stderr);
ce->cf_stat = RPC_SYSTEMERROR;
ce->cf_error.re_errno = ENOMEM;
goto fooy;
diff --git a/libc/inet/rpc/clnt_udp.c b/libc/inet/rpc/clnt_udp.c
index ce7e9e6d9..b2dbbba07 100644
--- a/libc/inet/rpc/clnt_udp.c
+++ b/libc/inet/rpc/clnt_udp.c
@@ -128,7 +128,7 @@ clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, u_long version,
if (cl == NULL || cu == NULL)
{
struct rpc_createerr *ce = &get_rpc_createerr ();
- (void) fputs (_("clntudp_create: out of memory\n"), stderr);
+ (void) fputs ("clntudp_create: out of memory\n", stderr);
ce->cf_stat = RPC_SYSTEMERROR;
ce->cf_error.re_errno = ENOMEM;
goto fooy;
diff --git a/libc/inet/rpc/clnt_unix.c b/libc/inet/rpc/clnt_unix.c
index e4a6672b7..060fac422 100644
--- a/libc/inet/rpc/clnt_unix.c
+++ b/libc/inet/rpc/clnt_unix.c
@@ -119,7 +119,7 @@ clntunix_create (struct sockaddr_un *raddr, u_long prog, u_long vers,
if (h == NULL || ct == NULL)
{
struct rpc_createerr *ce = &get_rpc_createerr ();
- (void) fputs (_("clntunix_create: out of memory\n"), stderr);
+ (void) fputs ("clntunix_create: out of memory\n", stderr);
ce->cf_stat = RPC_SYSTEMERROR;
ce->cf_error.re_errno = ENOMEM;
goto fooy;
diff --git a/libc/inet/rpc/get_myaddress.c b/libc/inet/rpc/get_myaddress.c
index 04999a199..edeadce9f 100644
--- a/libc/inet/rpc/get_myaddress.c
+++ b/libc/inet/rpc/get_myaddress.c
@@ -44,7 +44,6 @@ static char sccsid[] = "@(#)get_myaddress.c 1.4 87/08/11 Copyr 1984 Sun Micro";
#include <sys/socket.h>
#include <stdio.h>
#include <unistd.h>
-#include <libintl.h>
#include <net/if.h>
#include <sys/ioctl.h>
/* Order of following two #includes reversed by roland@gnu */
@@ -76,7 +75,7 @@ get_myaddress (struct sockaddr_in *addr)
ifc.ifc_buf = buf;
if (ioctl (s, SIOCGIFCONF, (char *) &ifc) < 0)
{
- perror (_("get_myaddress: ioctl (get interface configuration)"));
+ perror ("get_myaddress: ioctl (get interface configuration)");
exit (1);
}
diff --git a/libc/inet/rpc/pm_getmaps.c b/libc/inet/rpc/pm_getmaps.c
index 910625a75..17d570575 100644
--- a/libc/inet/rpc/pm_getmaps.c
+++ b/libc/inet/rpc/pm_getmaps.c
@@ -74,7 +74,7 @@ pmap_getmaps (struct sockaddr_in *address)
(xdrproc_t)xdr_pmaplist, (caddr_t)&head,
minutetimeout) != RPC_SUCCESS)
{
- clnt_perror (client, _("pmap_getmaps rpc problem"));
+ clnt_perror (client, "pmap_getmaps rpc problem");
}
CLNT_DESTROY (client);
}
diff --git a/libc/inet/rpc/pmap_clnt.c b/libc/inet/rpc/pmap_clnt.c
index 20a54313b..c7f759e34 100644
--- a/libc/inet/rpc/pmap_clnt.c
+++ b/libc/inet/rpc/pmap_clnt.c
@@ -69,7 +69,7 @@ __get_myaddress (struct sockaddr_in *addr)
ifc.ifc_buf = buf;
if (ioctl (s, SIOCGIFCONF, (char *) &ifc) < 0)
{
- perror (_("__get_myaddress: ioctl (get interface configuration)"));
+ perror ("__get_myaddress: ioctl (get interface configuration)");
exit (1);
}
@@ -133,7 +133,7 @@ pmap_set (u_long program, u_long version, int protocol, u_short port)
(xdrproc_t)xdr_bool, (caddr_t)&rslt,
tottimeout) != RPC_SUCCESS)
{
- clnt_perror (client, _("Cannot register service"));
+ clnt_perror (client, "Cannot register service");
rslt = FALSE;
}
CLNT_DESTROY (client);
diff --git a/libc/inet/rpc/pmap_rmt.c b/libc/inet/rpc/pmap_rmt.c
index 2576e396b..df271fb04 100644
--- a/libc/inet/rpc/pmap_rmt.c
+++ b/libc/inet/rpc/pmap_rmt.c
@@ -176,7 +176,7 @@ getbroadcastnets (struct in_addr *addrs, int sock, char *buf)
ifc.ifc_buf = buf;
if (ioctl (sock, SIOCGIFCONF, (char *) &ifc) < 0)
{
- perror (_("broadcast: ioctl (get interface configuration)"));
+ perror ("broadcast: ioctl (get interface configuration)");
return (0);
}
ifr = ifc.ifc_req;
@@ -185,7 +185,7 @@ getbroadcastnets (struct in_addr *addrs, int sock, char *buf)
ifreq = *ifr;
if (ioctl (sock, SIOCGIFFLAGS, (char *) &ifreq) < 0)
{
- perror (_("broadcast: ioctl (get interface flags)"));
+ perror ("broadcast: ioctl (get interface flags)");
continue;
}
if ((ifreq.ifr_flags & IFF_BROADCAST) &&
@@ -255,14 +255,14 @@ clnt_broadcast (
*/
if ((sock = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0)
{
- perror (_("Cannot create socket for broadcast rpc"));
+ perror ("Cannot create socket for broadcast rpc");
stat = RPC_CANTSEND;
goto done_broad;
}
#ifdef SO_BROADCAST
if (setsockopt (sock, SOL_SOCKET, SO_BROADCAST, &on, sizeof (on)) < 0)
{
- perror (_("Cannot set socket option SO_BROADCAST"));
+ perror ("Cannot set socket option SO_BROADCAST");
stat = RPC_CANTSEND;
goto done_broad;
}
@@ -313,7 +313,7 @@ clnt_broadcast (
(struct sockaddr *) &baddr,
sizeof (struct sockaddr)) != outlen)
{
- perror (_("Cannot send broadcast packet"));
+ perror ("Cannot send broadcast packet");
stat = RPC_CANTSEND;
goto done_broad;
}
@@ -338,7 +338,7 @@ clnt_broadcast (
case -1: /* some kind of error */
if (errno == EINTR)
goto recv_again;
- perror (_("Broadcast poll problem"));
+ perror ("Broadcast poll problem");
stat = RPC_CANTRECV;
goto done_broad;
@@ -351,7 +351,7 @@ clnt_broadcast (
{
if (errno == EINTR)
goto try_again;
- perror (_("Cannot receive reply to broadcast"));
+ perror ("Cannot receive reply to broadcast");
stat = RPC_CANTRECV;
goto done_broad;
}
diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c
index fdfaa0908..63b0ef2e2 100644
--- a/libc/inet/rpc/rcmd.c
+++ b/libc/inet/rpc/rcmd.c
@@ -78,7 +78,6 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94";
#include <stdio.h>
#include <ctype.h>
#include <string.h>
-#include <libintl.h>
#include <stdlib.h>
#ifdef __UCLIBC_HAS_WCHAR__
#include <wchar.h>
diff --git a/libc/inet/rpc/rpc_private.h b/libc/inet/rpc/rpc_private.h
index 9e01df49a..adb81383c 100644
--- a/libc/inet/rpc/rpc_private.h
+++ b/libc/inet/rpc/rpc_private.h
@@ -1,7 +1,6 @@
#ifndef _RPC_PRIVATE_H
#define _RPC_PRIVATE_H
#include <rpc/rpc.h>
-#include <libintl.h>
/* Now define the internal interfaces. */
extern u_long _create_xid (void) attribute_hidden;
diff --git a/libc/inet/rpc/ruserpass.c b/libc/inet/rpc/ruserpass.c
index 9197763a3..4f3060b22 100644
--- a/libc/inet/rpc/ruserpass.c
+++ b/libc/inet/rpc/ruserpass.c
@@ -41,7 +41,6 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <libintl.h>
/* #include "ftp_var.h" */
@@ -163,7 +162,7 @@ next:
newp = malloc((unsigned) strlen(tokval) + 1);
if (newp == NULL)
{
- printf(_("out of memory"));
+ printf("out of memory");
goto bad;
}
*aname = strcpy(newp, tokval);
@@ -177,8 +176,8 @@ next:
if (strcmp(*aname, "anonymous") &&
fstat(fileno(cfile), &stb) >= 0 &&
(stb.st_mode & 077) != 0) {
- printf(_("Error: .netrc file is readable by others."));
- printf(_("Remove password or make file unreadable by others."));
+ printf("Error: .netrc file is readable by others.");
+ printf("Remove password or make file unreadable by others.");
goto bad;
}
if (token() && *apass == 0) {
@@ -186,7 +185,7 @@ next:
newp = malloc((unsigned) strlen(tokval) + 1);
if (newp == NULL)
{
- printf(_("out of memory"));
+ printf("out of memory");
goto bad;
}
*apass = strcpy(newp, tokval);
@@ -270,7 +269,7 @@ next:
#endif
break;
default:
- printf(_("Unknown .netrc keyword %s"), tokval);
+ printf("Unknown .netrc keyword %s", tokval);
break;
}
goto done;
diff --git a/libc/inet/rpc/svc_run.c b/libc/inet/rpc/svc_run.c
index f3e020951..32c4deedb 100644
--- a/libc/inet/rpc/svc_run.c
+++ b/libc/inet/rpc/svc_run.c
@@ -74,7 +74,7 @@ svc_run (void)
free (my_pollfd);
if (errno == EINTR)
continue;
- perror (_("svc_run: - poll failed"));
+ perror ("svc_run: - poll failed");
return;
case 0:
free (my_pollfd);
diff --git a/libc/inet/rpc/svc_simple.c b/libc/inet/rpc/svc_simple.c
index c770938a1..4c27eaeb7 100644
--- a/libc/inet/rpc/svc_simple.c
+++ b/libc/inet/rpc/svc_simple.c
@@ -80,7 +80,7 @@ registerrpc (u_long prognum, u_long versnum, u_long procnum,
if (procnum == NULLPROC)
{
- (void) asprintf (&buf, _("can't reassign procedure number %ld\n"),
+ (void) asprintf (&buf, "can't reassign procedure number %ld\n",
NULLPROC);
goto err_out;
}
@@ -89,7 +89,7 @@ registerrpc (u_long prognum, u_long versnum, u_long procnum,
transp = svcudp_create (RPC_ANYSOCK);
if (transp == NULL)
{
- buf = strdup (_("couldn't create an rpc server\n"));
+ buf = strdup ("couldn't create an rpc server\n");
goto err_out;
}
}
@@ -97,14 +97,14 @@ registerrpc (u_long prognum, u_long versnum, u_long procnum,
if (!svc_register (transp, (u_long) prognum, (u_long) versnum,
universal, IPPROTO_UDP))
{
- (void) asprintf (&buf, _("couldn't register prog %ld vers %ld\n"),
+ (void) asprintf (&buf, "couldn't register prog %ld vers %ld\n",
prognum, versnum);
goto err_out;
}
pl = (struct proglst_ *) malloc (sizeof (struct proglst_));
if (pl == NULL)
{
- buf = strdup (_("registerrpc: out of memory\n"));
+ buf = strdup ("registerrpc: out of memory\n");
goto err_out;
}
pl->p_progname = progname;
@@ -162,7 +162,7 @@ universal (struct svc_req *rqstp, SVCXPRT *transp_l)
if (!svc_sendreply (transp_l, pl->p_outproc, outdata))
{
(void) asprintf (&buf,
- _("trouble replying to prog %d\n"),
+ "trouble replying to prog %d\n",
pl->p_prognum);
exit (1);
}
@@ -170,7 +170,7 @@ universal (struct svc_req *rqstp, SVCXPRT *transp_l)
(void) svc_freeargs (transp_l, pl->p_inproc, xdrbuf);
return;
}
- (void) asprintf (&buf, _("never registered prog %d\n"), prog);
+ (void) asprintf (&buf, "never registered prog %d\n", prog);
fputs (buf, stderr);
free (buf);
exit (1);
diff --git a/libc/inet/rpc/svc_tcp.c b/libc/inet/rpc/svc_tcp.c
index f0acf35dc..c1608aca9 100644
--- a/libc/inet/rpc/svc_tcp.c
+++ b/libc/inet/rpc/svc_tcp.c
@@ -146,7 +146,7 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize)
{
if ((sock = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0)
{
- perror (_("svc_tcp.c - tcp socket creation problem"));
+ perror ("svc_tcp.c - tcp socket creation problem");
return (SVCXPRT *) NULL;
}
madesock = TRUE;
@@ -161,7 +161,7 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize)
if ((getsockname (sock, (struct sockaddr *) &addr, &len) != 0) ||
(listen (sock, 2) != 0))
{
- perror (_("svc_tcp.c - cannot getsockname or listen"));
+ perror ("svc_tcp.c - cannot getsockname or listen");
if (madesock)
(void) close (sock);
return (SVCXPRT *) NULL;
@@ -170,7 +170,7 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize)
xprt = (SVCXPRT *) mem_alloc (sizeof (SVCXPRT));
if (r == NULL || xprt == NULL)
{
- (void) fputs (_("svctcp_create: out of memory\n"), stderr);
+ (void) fputs ("svctcp_create: out of memory\n", stderr);
mem_free (r, sizeof (*r));
mem_free (xprt, sizeof (SVCXPRT));
return NULL;
@@ -210,7 +210,7 @@ makefd_xprt (int fd, u_int sendsize, u_int recvsize)
cd = (struct tcp_conn *) mem_alloc (sizeof (struct tcp_conn));
if (xprt == (SVCXPRT *) NULL || cd == NULL)
{
- (void) fputs (_("svc_tcp: makefd_xprt: out of memory\n"), stderr);
+ (void) fputs ("svc_tcp: makefd_xprt: out of memory\n", stderr);
mem_free (xprt, sizeof (SVCXPRT));
mem_free (cd, sizeof (struct tcp_conn));
return NULL;
diff --git a/libc/inet/rpc/svc_udp.c b/libc/inet/rpc/svc_udp.c
index 456c6ded2..5b8a8d297 100644
--- a/libc/inet/rpc/svc_udp.c
+++ b/libc/inet/rpc/svc_udp.c
@@ -117,7 +117,7 @@ svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz)
{
if ((sock = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0)
{
- perror (_("svcudp_create: socket creation problem"));
+ perror ("svcudp_create: socket creation problem");
return (SVCXPRT *) NULL;
}
madesock = TRUE;
@@ -131,7 +131,7 @@ svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz)
}
if (getsockname (sock, (struct sockaddr *) &addr, &len) != 0)
{
- perror (_("svcudp_create - cannot getsockname"));
+ perror ("svcudp_create - cannot getsockname");
if (madesock)
(void) close (sock);
return (SVCXPRT *) NULL;
@@ -141,7 +141,7 @@ svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz)
buf = mem_alloc (((MAX (sendsz, recvsz) + 3) / 4) * 4);
if (xprt == NULL || su == NULL || buf == NULL)
{
- (void) fputs (_("svcudp_create: out of memory\n"), stderr);
+ (void) fputs ("svcudp_create: out of memory\n", stderr);
mem_free (xprt, sizeof (SVCXPRT));
mem_free (su, sizeof (*su));
mem_free (buf, ((MAX (sendsz, recvsz) + 3) / 4) * 4);
@@ -162,7 +162,7 @@ svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz)
+ sizeof(struct cmsghdr) + sizeof (struct in_pktinfo))
> sizeof (xprt->xp_pad))
{
- (void) fputs (_("svcudp_create: xp_pad is too small for IP_PKTINFO\n"),
+ (void) fputs ("svcudp_create: xp_pad is too small for IP_PKTINFO\n",
stderr);
return NULL;
}
@@ -429,13 +429,13 @@ svcudp_enablecache (SVCXPRT *transp, u_long size)
if (su->su_cache != NULL)
{
- CACHE_PERROR (_("enablecache: cache already enabled"));
+ CACHE_PERROR ("enablecache: cache already enabled");
return 0;
}
uc = ALLOC (struct udp_cache, 1);
if (uc == NULL)
{
- CACHE_PERROR (_("enablecache: could not allocate cache"));
+ CACHE_PERROR ("enablecache: could not allocate cache");
return 0;
}
uc->uc_size = size;
@@ -443,14 +443,14 @@ svcudp_enablecache (SVCXPRT *transp, u_long size)
uc->uc_entries = ALLOC (cache_ptr, size * SPARSENESS);
if (uc->uc_entries == NULL)
{
- CACHE_PERROR (_("enablecache: could not allocate cache data"));
+ CACHE_PERROR ("enablecache: could not allocate cache data");
return 0;
}
BZERO (uc->uc_entries, cache_ptr, size * SPARSENESS);
uc->uc_fifo = ALLOC (cache_ptr, size);
if (uc->uc_fifo == NULL)
{
- CACHE_PERROR (_("enablecache: could not allocate cache fifo"));
+ CACHE_PERROR ("enablecache: could not allocate cache fifo");
return 0;
}
BZERO (uc->uc_fifo, cache_ptr, size);
@@ -486,7 +486,7 @@ cache_set (SVCXPRT *xprt, u_long replylen)
;
if (*vicp == NULL)
{
- CACHE_PERROR (_("cache_set: victim not found"));
+ CACHE_PERROR ("cache_set: victim not found");
return;
}
*vicp = victim->cache_next; /* remote from cache */
@@ -497,13 +497,13 @@ cache_set (SVCXPRT *xprt, u_long replylen)
victim = ALLOC (struct cache_node, 1);
if (victim == NULL)
{
- CACHE_PERROR (_("cache_set: victim alloc failed"));
+ CACHE_PERROR ("cache_set: victim alloc failed");
return;
}
newbuf = mem_alloc (su->su_iosz);
if (newbuf == NULL)
{
- CACHE_PERROR (_("cache_set: could not allocate new rpc_buffer"));
+ CACHE_PERROR ("cache_set: could not allocate new rpc_buffer");
return;
}
}
diff --git a/libc/inet/rpc/svc_unix.c b/libc/inet/rpc/svc_unix.c
index 7a09af6a1..8cc982a59 100644
--- a/libc/inet/rpc/svc_unix.c
+++ b/libc/inet/rpc/svc_unix.c
@@ -142,7 +142,7 @@ svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path)
{
if ((sock = socket (AF_UNIX, SOCK_STREAM, 0)) < 0)
{
- perror (_("svc_unix.c - AF_UNIX socket creation problem"));
+ perror ("svc_unix.c - AF_UNIX socket creation problem");
return (SVCXPRT *) NULL;
}
madesock = TRUE;
@@ -158,7 +158,7 @@ svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path)
if (getsockname (sock, (struct sockaddr *) &addr, &len) != 0
|| listen (sock, 2) != 0)
{
- perror (_("svc_unix.c - cannot getsockname or listen"));
+ perror ("svc_unix.c - cannot getsockname or listen");
if (madesock)
close (sock);
return (SVCXPRT *) NULL;
@@ -168,7 +168,7 @@ svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path)
xprt = (SVCXPRT *) mem_alloc (sizeof (SVCXPRT));
if (r == NULL || xprt == NULL)
{
- fputs (_("svcunix_create: out of memory\n"), stderr);
+ fputs ("svcunix_create: out of memory\n", stderr);
mem_free (r, sizeof (*r));
mem_free (xprt, sizeof (SVCXPRT));
return NULL;
@@ -208,7 +208,7 @@ makefd_xprt (int fd, u_int sendsize, u_int recvsize)
cd = (struct unix_conn *) mem_alloc (sizeof (struct unix_conn));
if (xprt == (SVCXPRT *) NULL || cd == (struct unix_conn *) NULL)
{
- (void) fputs (_("svc_unix: makefd_xprt: out of memory\n"), stderr);
+ (void) fputs ("svc_unix: makefd_xprt: out of memory\n", stderr);
mem_free (xprt, sizeof (SVCXPRT));
mem_free (cd, sizeof (struct unix_conn));
return NULL;
diff --git a/libc/inet/rpc/xdr.c b/libc/inet/rpc/xdr.c
index 57d7dbd40..1bca29752 100644
--- a/libc/inet/rpc/xdr.c
+++ b/libc/inet/rpc/xdr.c
@@ -44,7 +44,6 @@ static char sccsid[] = "@(#)xdr.c 1.35 87/08/12";
#include <stdio.h>
#include <limits.h>
#include <string.h>
-#include <libintl.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
@@ -557,7 +556,7 @@ xdr_bytes (XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize)
}
if (sp == NULL)
{
- (void) fputs (_("xdr_bytes: out of memory\n"), stderr);
+ (void) fputs ("xdr_bytes: out of memory\n", stderr);
return FALSE;
}
/* fall into ... */
@@ -694,7 +693,7 @@ xdr_string (XDR *xdrs, char **cpp, u_int maxsize)
*cpp = sp = (char *) mem_alloc (nodesize);
if (sp == NULL)
{
- (void) fputs (_("xdr_string: out of memory\n"), stderr);
+ (void) fputs ("xdr_string: out of memory\n", stderr);
return FALSE;
}
sp[size] = 0;
diff --git a/libc/inet/rpc/xdr_array.c b/libc/inet/rpc/xdr_array.c
index 25428aac3..1bce142ff 100644
--- a/libc/inet/rpc/xdr_array.c
+++ b/libc/inet/rpc/xdr_array.c
@@ -45,7 +45,6 @@ static char sccsid[] = "@(#)xdr_array.c 1.10 87/08/11 Copyr 1984 Sun Micro";
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <limits.h>
-#include <libintl.h>
#define LASTUNSIGNED ((u_int)0-1)
@@ -94,7 +93,7 @@ xdr_array (XDR *xdrs, caddr_t *addrp, u_int *sizep, u_int maxsize, u_int elsize,
*addrp = target = mem_alloc (nodesize);
if (target == NULL)
{
- (void) fputs (_("xdr_array: out of memory\n"), stderr);
+ (void) fputs ("xdr_array: out of memory\n", stderr);
return FALSE;
}
memset (target, 0, nodesize);
diff --git a/libc/inet/rpc/xdr_rec.c b/libc/inet/rpc/xdr_rec.c
index 3ad7d7275..c17bfa12b 100644
--- a/libc/inet/rpc/xdr_rec.c
+++ b/libc/inet/rpc/xdr_rec.c
@@ -154,7 +154,7 @@ xdrrec_create (XDR *xdrs, u_int sendsize,
if (rstrm == NULL || buf == NULL)
{
- (void) fputs (_("xdrrec_create: out of memory\n"), stderr);
+ (void) fputs ("xdrrec_create: out of memory\n", stderr);
mem_free (rstrm, sizeof (RECSTREAM));
mem_free (buf, sendsize + recvsize + BYTES_PER_XDR_UNIT);
/*
diff --git a/libc/inet/rpc/xdr_reference.c b/libc/inet/rpc/xdr_reference.c
index 85765886b..00feb8a59 100644
--- a/libc/inet/rpc/xdr_reference.c
+++ b/libc/inet/rpc/xdr_reference.c
@@ -44,7 +44,6 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI";
#include <string.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
-#include <libintl.h>
#define LASTUNSIGNED ((u_int)0-1)
@@ -73,7 +72,7 @@ xdr_reference (XDR *xdrs, caddr_t *pp, u_int size, xdrproc_t proc)
*pp = loc = (caddr_t) mem_alloc (size);
if (loc == NULL)
{
- (void) fputs (_("xdr_reference: out of memory\n"), stderr);
+ (void) fputs ("xdr_reference: out of memory\n", stderr);
return FALSE;
}
memset (loc, 0, (int) size);