diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-08-17 05:19:18 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-08-17 05:19:18 +0000 |
commit | ad5527663ef5d01f531b4d4b23390c7566c93ee2 (patch) | |
tree | eaffc628056b9323b965c0e309656b4dfb19215d /newlib/libc/include/reent.h | |
parent | 9e0f101fa9f301ceaa8c6c5152b320ce7d535eb3 (diff) | |
download | cygnal-ad5527663ef5d01f531b4d4b23390c7566c93ee2.tar.gz cygnal-ad5527663ef5d01f531b4d4b23390c7566c93ee2.tar.bz2 cygnal-ad5527663ef5d01f531b4d4b23390c7566c93ee2.zip |
2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Move cmath stuff into libc/sys/linux.
* Makefile.in: Regenerated.
* configure.host: Default -DMB_CAPABLE for x86-linux.
* libc/include/reent.h: Define _sbrk to take signed int argument.
* libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
* libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
make locale name checking more efficient. Also allow "C-ISO-8859-1"
locale for LC_CTYPE and LC_MESSAGES.
* libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
* libc/sys/linux/brk.c: Change sbrk prototype.
* libc/sys/linux/include/time.h: Remove Cygwin stuff and
include <sys/features.h>.
(CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
(CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
* libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
with a few local additions.
* libc/sys/linux/sys/features.h: New file.
* libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
to take signed argument.
* libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
prototypes to take signed size argument.
Diffstat (limited to 'newlib/libc/include/reent.h')
-rw-r--r-- | newlib/libc/include/reent.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/include/reent.h b/newlib/libc/include/reent.h index b54e4cbb8..8f1077920 100644 --- a/newlib/libc/include/reent.h +++ b/newlib/libc/include/reent.h @@ -50,6 +50,7 @@ extern "C" { #include <machine/types.h> #define __need_size_t +#define __need_ptrdiff_t #include <stddef.h> /* FIXME: not namespace clean */ @@ -71,7 +72,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 void *_sbrk_r _PARAMS ((struct _reent *, size_t)); +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 *)); extern int _unlink_r _PARAMS ((struct _reent *, const char *)); |