diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-11-25 00:27:33 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-11-25 00:27:33 +0300 |
commit | 0aca33c8236bec45e6acc238a1af0c5f2f6f8959 (patch) | |
tree | 11e45ea869c4aadf49a65449195e8c7733089321 /newlib/libc/locale/ldpart.c | |
parent | 0ef912dfc442abcadcc8a6f01c6a6de86a8a2ea9 (diff) |
2008-11-24 Craig Howland <howland@LGSInnovations.com>
* libc/stdlib/wcstoull_r.c: Add EINVAL return for bad base value,
include wchar.h for prototype, remove extraneous includes, use
C99/POSIX ULLONG_MAX (but allow for poor limits.h).
* libc/stdlib/wcstoull.c: Fix usage comments (mistakes and to add
base value check noted above), remove extraneous includes.
* libc/stdio/asnprintf.c: Add #include "local.h" to get function
prototype for _svfprintf_r().
* libc/stdio/vasnprintf.c: Ditto.
* libc/stdio/local.h: Add function prototype for __submore().
* libc/include/stdio.h: Add function prototypes for _fseeko_r and
_ftello_r.
* libc/posix/namespace.h: Commented out define for write to
eliminate write() prototype being missing for collate.c (which is
the only file that presently includes namespace.h).
* libc/include/reent.h: Added _rename_r.
* libc/reent/renamer.c: Corrected function prototypes in synopses.
* libc/locale/ldpart.c: Use struct stat64 when calling fstat64.
Diffstat (limited to 'newlib/libc/locale/ldpart.c')
-rw-r--r-- | newlib/libc/locale/ldpart.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/locale/ldpart.c b/newlib/libc/locale/ldpart.c index a284b9db2..595532298 100644 --- a/newlib/libc/locale/ldpart.c +++ b/newlib/libc/locale/ldpart.c @@ -57,7 +57,11 @@ __part_load_locale(const char *name, char *p; const char *plim; char filename[PATH_MAX]; +#ifdef __USE_INTERNAL_STAT64 + struct stat64 st; +#else struct stat st; +#endif size_t namesize; size_t bufsize; int save_using_locale; |