From ad5527663ef5d01f531b4d4b23390c7566c93ee2 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Sat, 17 Aug 2002 05:19:18 +0000 Subject: 2002-08-17 Jeff Johnston * 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 . (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. --- newlib/libc/include/sys/unistd.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'newlib/libc/include/sys/unistd.h') diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 1565bf0f8..d6ff2500a 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -91,11 +91,7 @@ int _EXFUN(rmdir, (const char *__path )); #if defined(__CYGWIN__) int _EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser)); #endif -#if defined(__rtems__) void * _EXFUN(sbrk, (ptrdiff_t __incr)); -#else -void * _EXFUN(sbrk, (size_t __incr)); -#endif #if defined(__CYGWIN__) int _EXFUN(setegid, (gid_t __gid )); int _EXFUN(seteuid, (uid_t __uid )); @@ -141,7 +137,7 @@ pid_t _EXFUN(_getpid, (void )); int _EXFUN(_link, (const char *__path1, const char *__path2 )); off_t _EXFUN(_lseek, (int __fildes, off_t __offset, int __whence )); _READ_WRITE_RETURN_TYPE _EXFUN(_read, (int __fd, void *__buf, size_t __nbyte )); -void * _EXFUN(_sbrk, (size_t __incr)); +void * _EXFUN(_sbrk, (ptrdiff_t __incr)); int _EXFUN(_unlink, (const char *__path )); _READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nbyte )); int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); -- cgit v1.2.3