Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-11-07 18:33:40 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-11-07 18:33:40 +0300
commitb1755fe736898400c88fa030a9667b576fa7e88c (patch)
tree82969f364015b7fdac9972abf7d533ea5452fe97
parentcc9dbc905cad82fd4e12882c787c4d0518b4a55c (diff)
* libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
(_PC_FILESIZEBITS): Add definition. (_PC_2_SYMLINKS): Ditto. (_PC_SYMLINK_MAX): Ditto.
-rw-r--r--newlib/ChangeLog7
-rw-r--r--newlib/libc/include/sys/unistd.h7
2 files changed, 13 insertions, 1 deletions
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 <corinna@vinschen.de>
+
+ * 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 <jschopp@austin.ibm.com>
* 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