diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-01 19:08:52 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-02 08:02:28 +0100 |
commit | 50aba30aee11d4fa51948c6ba258ec0bbdbae8c0 (patch) | |
tree | 84cdec45cf2982a4e3778bc391dcdcae14bd78d0 | |
parent | ed10e944ac7f9b4d55dc130987274a2799a115b1 (diff) |
remove libintl stub and libintl.h header
As __UCLIBC_HAS_GETTEXT_AWARENESS__ is never defined, this is
mostly dead code. It is planned to integrate libiconv-tiny
and gettext-tiny into uClibc-ng after the next release, so
that more software packages can be used without modification.
Remove any _/_N macro usage.
38 files changed, 147 insertions, 593 deletions
diff --git a/Makefile.in b/Makefile.in index cb858f6da..c5909796d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -32,7 +32,6 @@ endif # ifeq ($(HAVE_DOT_CONFIG),y) include $(top_srcdir)extra/locale/Makefile.in include $(top_srcdir)ldso/Makefile.in include $(top_srcdir)libcrypt/Makefile.in -include $(top_srcdir)libintl/Makefile.in include $(top_srcdir)libm/Makefile.in include $(top_srcdir)libutil/Makefile.in include $(top_srcdir)libpthread/Makefile.in @@ -273,7 +272,6 @@ HEADERS_RM-$(UCLIBC_HAS_FLOATS) += complex.h fpu_control.h ieee754. bits/math*.h HEADERS_RM-$(findstring y,$(UCLIBC_HAS_FTW)$(UCLIBC_HAS_NFTW)) += ftw.h HEADERS_RM-$(UCLIBC_HAS_FTS) += fts.h -HEADERS_RM-$(UCLIBC_HAS_GETTEXT_AWARENESS) += libintl.h HEADERS_RM-$(UCLIBC_HAS_GLIBC_CUSTOM_PRINTF) += printf.h HEADERS_RM-$(UCLIBC_HAS_GLOB) += glob.h HEADERS_RM-$(UCLIBC_HAS_GNU_ERROR) += error.h @@ -377,9 +375,6 @@ endif ifeq ($(UCLIBC_HAS_LIBUTIL),y) EMPTY_LIB_NAMES += util endif -ifeq ($(UCLIBC_HAS_GETTEXT_AWARENESS),y) -EMPTY_LIB_NAMES += intl -endif EMPTY_LIBS = $(EMPTY_LIB_NAMES:%=lib/lib%.a) $(EMPTY_LIBS): @@ -39,7 +39,6 @@ $(eval $(call add_IS_IN_lib,rtld,$(ldso-y))) $(eval $(call add_IS_IN_lib,libc,$(libc-y) $(libc-static-y) $(libc-y:.o=.os) $(libc-shared-y) $(libc-nonshared-y))) $(eval $(call add_IS_IN_lib,libcrypt,$(libcrypt-a-y) $(libcrypt-so-y))) $(eval $(call add_IS_IN_lib,libdl,$(libdl-a-y) $(libdl-so-y))) -$(eval $(call add_IS_IN_lib,libintl,$(libintl-a-y) $(libintl-so-y))) $(eval $(call add_IS_IN_lib,libm,$(libm-a-y) $(libm-so-y))) $(eval $(call add_IS_IN_lib,libpthread/$(PTNAME),$(libpthread-a-y) $(libpthread-so-y) $(libpthread-nonshared-y))) $(eval $(call add_IS_IN_lib,libpthread/$(PTNAME)_db,$(libthread_db-a-y) $(libthread_db-so-y))) @@ -49,16 +48,12 @@ $(eval $(call add_IS_IN_lib,libubacktrace,$(libubacktrace-a-y) $(libubacktrace-s $(eval $(call add_IS_IN_lib,libuargp,$(libuargp-a-y) $(libuargp-so-y))) shared_objs = $(libc-y:.o=.os) $(libc-shared-y) $(libc-nonshared-y) \ - $(libcrypt-so-y) $(libdl-so-y) \ - $(libintl-so-y) $(libm-so-y) \ + $(libcrypt-so-y) $(libdl-so-y) $(libm-so-y) \ $(libpthread-so-y) $(libpthread-nonshared-y) $(libthread_db-so-y) \ - $(librt-so-y) \ - $(ldso-y) \ - $(libutil-so-y) $(libubacktrace-so-y) $(libuargp-so-y) + $(librt-so-y) $(ldso-y) $(libutil-so-y) $(libubacktrace-so-y) $(libuargp-so-y) ar_objs = $(libc-y) $(libc-static-y) $(libcrypt-a-y) \ - $(libdl-a-y) $(libintl-a-y) $(libm-a-y) \ - $(libpthread-a-y) $(libthread_db-a-y) \ + $(libdl-a-y) $(libm-a-y) $(libpthread-a-y) $(libthread_db-a-y) \ $(librt-a-y) $(libutil-a-y) $(libubacktrace-a-y) $(libuargp-a-y) ifeq ($(DOPIC),y) ar_objs := $(ar_objs:.o=.os) diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 4449b6e6f..4dc05c76e 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -582,24 +582,6 @@ FIXME! - ? # define libdl_hidden_data_ver(local, name) #endif -#if defined NOT_IN_libc && defined IS_IN_libintl -# define libintl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs) -# define libintl_hidden_def(name) hidden_def (name) -# define libintl_hidden_weak(name) hidden_weak (name) -# define libintl_hidden_ver(local, name) hidden_ver (local, name) -# define libintl_hidden_data_def(name) hidden_data_def (name) -# define libintl_hidden_data_weak(name) hidden_data_weak (name) -# define libintl_hidden_data_ver(local, name) hidden_data_ver(local, name) -#else -# define libintl_hidden_proto(name, attrs...) -# define libintl_hidden_def(name) -# define libintl_hidden_weak(name) -# define libintl_hidden_ver(local, name) -# define libintl_hidden_data_def(name) -# define libintl_hidden_data_weak(name) -# define libintl_hidden_data_ver(local, name) -#endif - #if defined NOT_IN_libc && defined IS_IN_libutil # define libutil_hidden_proto(name, attrs...) hidden_proto (name, ##attrs) # define libutil_hidden_def(name) hidden_def (name) diff --git a/include/libintl.h b/include/libintl.h deleted file mode 100644 index 0cbf758ed..000000000 --- a/include/libintl.h +++ /dev/null @@ -1,140 +0,0 @@ -/* Message catalogs for internationalization. - Copyright (C) 1995-2002, 2004, 2005 Free Software Foundation, Inc. - This file is part of the GNU C Library. - This file is derived from the file libgettext.h in the GNU gettext package. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <http://www.gnu.org/licenses/>. */ - -#ifndef _LIBINTL_H -#define _LIBINTL_H 1 - -#include <features.h> - -#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__ - -/* We define an additional symbol to signal that we use the GNU - implementation of gettext. */ -#define __USE_GNU_GETTEXT 1 - -/* Provide information about the supported file formats. Returns the - maximum minor revision number supported for a given major revision. */ -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) \ - ((major) == 0 ? 1 : -1) - -__BEGIN_DECLS - -/* Look up MSGID in the current default message catalog for the current - LC_MESSAGES locale. If not found, returns MSGID itself (the default - text). */ -extern char *gettext (const char *__msgid) - __THROW __attribute_format_arg__ (1); - -/* Look up MSGID in the DOMAINNAME message catalog for the current - LC_MESSAGES locale. */ -extern char *dgettext (const char *__domainname, const char *__msgid) - __THROW __attribute_format_arg__ (2); -#if 0 /* uClibc: disabled */ -extern char *__dgettext (const char *__domainname, const char *__msgid) - __THROW __attribute_format_arg__ (2); -#endif - -/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY - locale. */ -extern char *dcgettext (const char *__domainname, - const char *__msgid, int __category) - __THROW __attribute_format_arg__ (2); -#if 0 /* uClibc: disabled */ -extern char *__dcgettext (const char *__domainname, - const char *__msgid, int __category) - __THROW __attribute_format_arg__ (2); -#endif - - -/* Similar to `gettext' but select the plural form corresponding to the - number N. */ -extern char *ngettext (const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __THROW __attribute_format_arg__ (1) __attribute_format_arg__ (2); - -/* Similar to `dgettext' but select the plural form corresponding to the - number N. */ -extern char *dngettext (const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __THROW __attribute_format_arg__ (2) __attribute_format_arg__ (3); - -/* Similar to `dcgettext' but select the plural form corresponding to the - number N. */ -extern char *dcngettext (const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) - __THROW __attribute_format_arg__ (2) __attribute_format_arg__ (3); - - -/* Set the current default message catalog to DOMAINNAME. - If DOMAINNAME is null, return the current default. - If DOMAINNAME is "", reset to the default of "messages". */ -extern char *textdomain (const char *__domainname) __THROW; - -/* Specify that the DOMAINNAME message catalog will be found - in DIRNAME rather than in the system locale data base. */ -extern char *bindtextdomain (const char *__domainname, - const char *__dirname) __THROW; - -/* Specify the character encoding in which the messages from the - DOMAINNAME message catalog will be returned. */ -extern char *bind_textdomain_codeset (const char *__domainname, - const char *__codeset) __THROW; - - -/* Optimized version of the function above. */ -#if defined __OPTIMIZE__ && !defined __cplusplus - -/* We need NULL for `gettext'. */ -# define __need_NULL -# include <stddef.h> - -/* We need LC_MESSAGES for `dgettext'. */ -# include <locale.h> - -/* These must be macros. Inlined functions are useless because the - `__builtin_constant_p' predicate in dcgettext would always return - false. */ - -# define gettext(msgid) dgettext (NULL, msgid) - -# define dgettext(domainname, msgid) \ - dcgettext (domainname, msgid, LC_MESSAGES) - -# define ngettext(msgid1, msgid2, n) dngettext (NULL, msgid1, msgid2, n) - -# define dngettext(domainname, msgid1, msgid2, n) \ - dcngettext (domainname, msgid1, msgid2, n, LC_MESSAGES) - -#endif /* Optimizing. */ - -__END_DECLS - -#else - -#define gettext(msgid) ((const char *) (msgid)) - -#endif /* __UCLIBC_HAS_GETTEXT_AWARENESS__ */ - -#ifdef _LIBC -# define _(x) gettext(x) -# define N_(x) x -#endif - -#endif /* libintl.h */ diff --git a/libc/Makefile.in b/libc/Makefile.in index e550f83a3..3cff9fd23 100644 --- a/libc/Makefile.in +++ b/libc/Makefile.in @@ -49,7 +49,6 @@ libc-a-$(UCLIBC_HAS_CRYPT) += $(libcrypt-a-y) libc-a-$(UCLIBC_HAS_ARGP) += $(libuargp-a-y) libc-a-$(UCLIBC_HAS_THREADS) += $(libpthread-a-y) libc-a-$(UCLIBC_HAS_REALTIME) += $(librt-a-y) -libc-a-$(UCLIBC_HAS_GETTEXT_AWARENESS) += $(libintl-a-y) libc-a-$(UCLIBC_HAS_BACKTRACE) += $(libubacktrace-a-y) libc-so-y = $(libc-y:.o=.os) $(libc-shared-y) @@ -61,7 +60,6 @@ libc-so-$(UCLIBC_HAS_CRYPT) += $(libcrypt-so-y) libc-so-$(UCLIBC_HAS_ARGP) += $(libuargp-so-y) libc-so-$(UCLIBC_HAS_THREADS) += $(libpthread-so-y) libc-so-$(UCLIBC_HAS_REALTIME) += $(librt-so-y) -libc-so-$(UCLIBC_HAS_GETTEXT_AWARENESS) += $(libintl-so-y) libc-so-$(UCLIBC_HAS_BACKTRACE) += $(libubacktrace-so-y) lib-a-y += $(top_builddir)lib/libc.a diff --git a/libc/inet/gai_strerror.c b/libc/inet/gai_strerror.c index 1da55524a..18e85bfaf 100644 --- a/libc/inet/gai_strerror.c +++ b/libc/inet/gai_strerror.c @@ -18,7 +18,6 @@ #include <stdio.h> #include <netdb.h> -#include <libintl.h> static const struct { @@ -27,22 +26,22 @@ static const struct } values[] = { - { EAI_ADDRFAMILY, N_("Address family for hostname not supported") }, - { EAI_AGAIN, N_("Temporary failure in name resolution") }, - { EAI_BADFLAGS, N_("Bad value for ai_flags") }, - { EAI_FAIL, N_("Non-recoverable failure in name resolution") }, - { EAI_FAMILY, N_("ai_family not supported") }, - { EAI_MEMORY, N_("Memory allocation failure") }, - { EAI_NODATA, N_("No address associated with hostname") }, - { EAI_NONAME, N_("Name or service not known") }, - { EAI_SERVICE, N_("Servname not supported for ai_socktype") }, - { EAI_SOCKTYPE, N_("ai_socktype not supported") }, - { EAI_SYSTEM, N_("System error") }, - { EAI_INPROGRESS, N_("Processing request in progress") }, - { EAI_CANCELED, N_("Request canceled") }, - { EAI_NOTCANCELED, N_("Request not canceled") }, - { EAI_ALLDONE, N_("All requests done") }, - { EAI_INTR, N_("Interrupted by a signal") } + { EAI_ADDRFAMILY, "Address family for hostname not supported" }, + { EAI_AGAIN, "Temporary failure in name resolution" }, + { EAI_BADFLAGS, "Bad value for ai_flags" }, + { EAI_FAIL, "Non-recoverable failure in name resolution" }, + { EAI_FAMILY, "ai_family not supported" }, + { EAI_MEMORY, "Memory allocation failure" }, + { EAI_NODATA, "No address associated with hostname" }, + { EAI_NONAME, "Name or service not known" }, + { EAI_SERVICE, "Servname not supported for ai_socktype" }, + { EAI_SOCKTYPE, "ai_socktype not supported" }, + { EAI_SYSTEM, "System error" }, + { EAI_INPROGRESS, "Processing request in progress" }, + { EAI_CANCELED, "Request canceled" }, + { EAI_NOTCANCELED, "Request not canceled" }, + { EAI_ALLDONE, "All requests done" }, + { EAI_INTR, "Interrupted by a signal" } }; const char * @@ -51,7 +50,7 @@ gai_strerror (int code) size_t i; for (i = 0; i < sizeof (values) / sizeof (values[0]); ++i) if (values[i].code == code) - return _(values[i].msg); + return values[i].msg; - return _("Unknown error"); + return "Unknown error"; } 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 @@ cln |