]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 27 Nov 2004 20:57:44 +0000 (20:57 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 27 Nov 2004 20:57:44 +0000 (20:57 +0000)
2004-11-27  Ulrich Drepper  <drepper@redhat.com>

* posix/getconf.c (vars): Add support for _SC_IPV6 and
_SC_RAW_SOCKETS.
* sysdeps/posix/sysconf.c (__sysconf): Add support for _SC_IPV6
and _SC_RAW_SOCKETS.
* sysdeps/generic/bits/confname.h: Define _SC_IPV6 and
_SC_RAW_SOCKETS.

ChangeLog
bits/confname.h
linuxthreads/ChangeLog
nptl/ChangeLog
posix/getconf.c
sysdeps/generic/bits/confname.h
sysdeps/posix/sysconf.c

index db7ae9e7301eeeff151f1ce45184dbe2825ab909..c85a1bd0449fb2948371d911906826a91b79b064 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-11-27  Ulrich Drepper  <drepper@redhat.com>
+
+       * posix/getconf.c (vars): Add support for _SC_IPV6 and
+       _SC_RAW_SOCKETS.
+       * sysdeps/posix/sysconf.c (__sysconf): Add support for _SC_IPV6
+       and _SC_RAW_SOCKETS.
+       * sysdeps/generic/bits/confname.h: Define _SC_IPV6 and
+       _SC_RAW_SOCKETS.
+
 2004-11-26  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add GETCONF_DIR.
index d097a4ba1a57a2d6b53cd87fc00722af860d2426..8947d48ed7dbd9fa9a2b878417375f493135abab 100644 (file)
@@ -492,9 +492,14 @@ enum
 #define _SC_LEVEL4_CACHE_SIZE          _SC_LEVEL4_CACHE_SIZE
     _SC_LEVEL4_CACHE_ASSOC,
 #define _SC_LEVEL4_CACHE_ASSOC         _SC_LEVEL4_CACHE_ASSOC
-    _SC_LEVEL4_CACHE_LINESIZE
+    _SC_LEVEL4_CACHE_LINESIZE,
 #define _SC_LEVEL4_CACHE_LINESIZE      _SC_LEVEL4_CACHE_LINESIZE
     /* Leave room here, maybe we need a few more cache levels some day.  */
+
+    _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
+#define _SC_IPV6                       _SC_IPV6
+    _SC_RAW_SOCKETS
+#define _SC_RAW_SOCKETS                        _SC_RAW_SOCKETS
   };
 
 /* Values for the NAME argument to `confstr'.  */
index 4b4a3c339086fd52a00589d7c64a51fb806aaab2..3c797fe7f5e26d3892f42f0f4f2aed80bfbd4c56 100644 (file)
@@ -1,3 +1,13 @@
+2004-11-26  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
+       _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
+       _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
+       _POSIX_TYPED_MEMORY_OBJECTS): Define.
+       * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
+
 2004-11-05  Maciej W. Rozycki  <macro@mips.com>
 
        * sysdeps/mips/pspinlock.c: Include <sgidefs.h>.  Use _ABIO32,
index efe123510761ee420b52f4f6bb0c6f6cbab684b2..902cbbfbf97019c6dd7c6870866df9e10c35621d 100644 (file)
@@ -1,3 +1,13 @@
+2004-11-26  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
+       _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
+       _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
+       _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
+       * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
+
 2004-11-24  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
index 6175dfec26c40e738aa218e94807ea77e4bef7e5..5aac25e4ca4898fb2d95caffcaa32fe849ff9d24 100644 (file)
@@ -912,6 +912,12 @@ static const struct conf vars[] =
     { "LEVEL4_CACHE_ASSOC", _SC_LEVEL4_CACHE_ASSOC, SYSCONF },
 #endif
 
+#ifdef _SC_IPV6
+    { "IPV6", _SC_IPV6, SYSCONF },
+#endif
+#ifdef _SC_RAW_SOCKETS
+    { "RAW_SOCKETS", _SC_RAW_SOCKETS, SYSCONF },
+#endif
 
     { NULL, 0, SYSCONF }
   };
index d097a4ba1a57a2d6b53cd87fc00722af860d2426..8947d48ed7dbd9fa9a2b878417375f493135abab 100644 (file)
@@ -492,9 +492,14 @@ enum
 #define _SC_LEVEL4_CACHE_SIZE          _SC_LEVEL4_CACHE_SIZE
     _SC_LEVEL4_CACHE_ASSOC,
 #define _SC_LEVEL4_CACHE_ASSOC         _SC_LEVEL4_CACHE_ASSOC
-    _SC_LEVEL4_CACHE_LINESIZE
+    _SC_LEVEL4_CACHE_LINESIZE,
 #define _SC_LEVEL4_CACHE_LINESIZE      _SC_LEVEL4_CACHE_LINESIZE
     /* Leave room here, maybe we need a few more cache levels some day.  */
+
+    _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
+#define _SC_IPV6                       _SC_IPV6
+    _SC_RAW_SOCKETS
+#define _SC_RAW_SOCKETS                        _SC_RAW_SOCKETS
   };
 
 /* Values for the NAME argument to `confstr'.  */
index de81c2120bd89d6c259b5f69058a3b6f41c955ee..a4bc2e78b1e1ee41d33d4be605791ea56a06050f 100644 (file)
@@ -1189,6 +1189,20 @@ __sysconf (name)
         return zero which indicates that no information is
         available.  */
       return 0;
+
+    case _SC_IPV6:
+#ifdef _POSIX_IPV6
+      return _POSIX_IPV6;
+#else
+      return -1;
+#endif
+
+    case _SC_RAW_SOCKETS:
+#ifdef _POSIX_RAW_SOCKETS
+      return _POSIX_RAW_SOCKETS;
+#else
+      return -1;
+#endif
     }
 }