diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-11-24 21:27:33 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-11-24 21:27:33 +0000 |
commit | 0aca33c8236bec45e6acc238a1af0c5f2f6f8959 (patch) | |
tree | 11e45ea869c4aadf49a65449195e8c7733089321 /newlib/libc/include/reent.h | |
parent | 0ef912dfc442abcadcc8a6f01c6a6de86a8a2ea9 (diff) | |
download | cygnal-0aca33c8236bec45e6acc238a1af0c5f2f6f8959.tar.gz cygnal-0aca33c8236bec45e6acc238a1af0c5f2f6f8959.tar.bz2 cygnal-0aca33c8236bec45e6acc238a1af0c5f2f6f8959.zip |
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/include/reent.h')
-rw-r--r-- | newlib/libc/include/reent.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/reent.h b/newlib/libc/include/reent.h index dfd0c9a36..9430e7557 100644 --- a/newlib/libc/include/reent.h +++ b/newlib/libc/include/reent.h @@ -118,6 +118,7 @@ struct timezone; #define _lseek_r(__reent, __fdes, __off, __w) lseek(__fdes, __off, __w) #define _open_r(__reent, __path, __flag, __m) open(__path, __flag, __m) #define _read_r(__reent, __fd, __buff, __cnt) read(__fd, __buff, __cnt) +#define _rename_r(__reent, __old, __new) rename(__old, __new) #define _sbrk_r(__reent, __incr) sbrk(__incr) #define _stat_r(__reent, __path, __buff) stat(__path, __buff) #define _times_r(__reent, __time) times(__time) @@ -147,6 +148,7 @@ extern int _link_r _PARAMS ((struct _reent *, const char *, const char *)); extern _off_t _lseek_r _PARAMS ((struct _reent *, int, _off_t, int)); extern int _open_r _PARAMS ((struct _reent *, const char *, int, int)); extern _ssize_t _read_r _PARAMS ((struct _reent *, int, void *, size_t)); +extern int _rename_r _PARAMS ((struct _reent *, const char *, const char *)); extern void *_sbrk_r _PARAMS ((struct _reent *, ptrdiff_t)); extern int _stat_r _PARAMS ((struct _reent *, const char *, struct stat *)); extern _CLOCK_T_ _times_r _PARAMS ((struct _reent *, struct tms *)); |