diff options
author | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2013-05-18 00:51:47 +0000 |
---|---|---|
committer | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2013-05-18 00:51:47 +0000 |
commit | eab7f6089510455a9b26643c64da331749a15650 (patch) | |
tree | e069c5f33da7c0cffbb68f47ec07b1b10b6789e4 /libc/sunrpc/rpc_main.c | |
parent | f9b341f7c8c64a0df8707b3cf29b425a25a52d12 (diff) | |
download | eglibc2-eab7f6089510455a9b26643c64da331749a15650.tar.gz |
Merge changes between r22954 and r23097 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@23098 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/sunrpc/rpc_main.c')
-rw-r--r-- | libc/sunrpc/rpc_main.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libc/sunrpc/rpc_main.c b/libc/sunrpc/rpc_main.c index 1477b43a7..0223c9a9f 100644 --- a/libc/sunrpc/rpc_main.c +++ b/libc/sunrpc/rpc_main.c @@ -39,6 +39,7 @@ #include <string.h> #include <unistd.h> #include <libintl.h> +#include <locale.h> #include <ctype.h> #include <sys/types.h> #include <sys/param.h> @@ -173,6 +174,9 @@ main (int argc, const char *argv[]) { struct commandline cmd; + setlocale (LC_ALL, ""); + textdomain (_libc_intl_domainname); + (void) memset ((char *) &cmd, 0, sizeof (struct commandline)); clear_args (); if (!parseargs (argc, argv, &cmd)) @@ -322,9 +326,9 @@ clear_args (void) static void find_cpp (void) { - struct stat buf; + struct stat64 buf; - if (stat (CPP, &buf) == 0) + if (stat64 (CPP, &buf) == 0) return; if (cppDefined) /* user specified cpp but it does not exist */ @@ -1110,17 +1114,17 @@ putarg (int whereto, const char *cp) static void checkfiles (const char *infile, const char *outfile) { - struct stat buf; + struct stat64 buf; if (infile) /* infile ! = NULL */ - if (stat (infile, &buf) < 0) + if (stat64 (infile, &buf) < 0) { perror (infile); crash (); } if (outfile) { - if (stat (outfile, &buf) < 0) + if (stat64 (outfile, &buf) < 0) return; /* file does not exist */ else { |