diff --git a/newlib/ChangeLog b/newlib/ChangeLog index fee2ed253..ff705e7a0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2006-11-07 Corinna Vinschen + + * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin. + (_PC_FILESIZEBITS): Add definition. + (_PC_2_SYMLINKS): Ditto. + (_PC_SYMLINK_MAX): Ditto. + 2006-10-27 Joel Schopp * libc/machine/spu/memcpy.c: Override generic function with vectorized diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index a670dd735..9b0e8e6b9 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -303,8 +303,10 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2)); #define _SC_LOGIN_NAME_MAX 52 #define _SC_THREAD_DESTRUCTOR_ITERATIONS 53 -#if !defined(__CYGWIN__) && !defined(__rtems__) +#if !defined(__rtems__) #define _SC_STREAM_MAX 100 +#endif +#if !defined(__CYGWIN__) && !defined(__rtems__) #define _SC_PRIORITY_SCHEDULING 101 #endif @@ -320,6 +322,9 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2)); # define _PC_ASYNC_IO 9 # define _PC_PRIO_IO 10 # define _PC_SYNC_IO 11 +# define _PC_FILESIZEBITS 12 +# define _PC_2_SYMLINKS 13 +# define _PC_SYMLINK_MAX 14 #ifdef __CYGWIN__ /* Ask for POSIX permission bits support. */ # define _PC_POSIX_PERMISSIONS 90