]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 12 Mar 2004 07:23:27 +0000 (07:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 12 Mar 2004 07:23:27 +0000 (07:23 +0000)
2004-03-11  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/posix/sysconf.c (__sysconf): Add missing support for
some _SC_* values.

ChangeLog
sysdeps/posix/sysconf.c

index a96e71d334d02c9201bab182453bcacd8605a487..2508ca43ae975eae97f5935c722f0b6beedf5e43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-11  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/posix/sysconf.c (__sysconf): Add missing support for
+       some _SC_* values.
+
 2004-03-10  Chris Heath  <chris@heathens.co.nz>
 
        * iconvdata/gconv.map: Add gconv_end (fixes memory leak).
index bf154f3e1ac485e8ab8e2678ec437a026842f7bf..584a44fb418a3e9b21f5ca712ac4c30ddabb3eaf 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1991,93,1995-1997,1999-2003 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1993,1995-1997,1999-2003,2004
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -37,6 +38,8 @@ __sysconf (name)
 {
   switch (name)
     {
+      /* Also add obsolete or unnecessarily added constants here.  */
+    case _SC_EQUIV_CLASS_MAX:
     default:
       __set_errno (EINVAL);
       return -1;
@@ -385,6 +388,7 @@ __sysconf (name)
       return -1;
 #endif
 
+      /* The same as _SC_IOV_MAX.  */
     case _SC_UIO_MAXIOV:
 #ifdef UIO_MAXIOV
       return UIO_MAXIOV;
@@ -465,6 +469,13 @@ __sysconf (name)
       return -1;
 #endif
 
+    case _SC_2_FORT_RUN:
+#ifdef _POSIX2_FORT_RUN
+      return _POSIX2_FORT_RUN;
+#else
+      return -1;
+#endif
+
     case _SC_2_LOCALEDEF:
 #ifdef _POSIX2_LOCALEDEF
       return _POSIX2_LOCALEDEF;
@@ -1094,6 +1105,12 @@ __sysconf (name)
       return _POSIX2_PBS_LOCATE;
 #else
       return -1;
+#endif
+    case _SC_2_PBS_MESSAGE:
+#ifdef _POSIX2_PBS_MESSAGE
+      return _POSIX2_PBS_MESSAGE;
+#else
+      return -1;
 #endif
     case _SC_2_PBS_TRACK:
 #ifdef _POSIX2_PBS_TRACK
@@ -1115,6 +1132,38 @@ __sysconf (name)
 #else
       return -1;
 #endif
+
+    case _SC_HOST_NAME_MAX:
+#ifdef HOST_NAME_MAX
+      return HOST_NAME_MAX;
+#else
+      return -1;
+#endif
+
+    case _SC_TRACE:
+#ifdef _POSIX_TRACE
+      return _POSIX_TRACE;
+#else
+      return -1;
+#endif
+    case _SC_TRACE_EVENT_FILTER:
+#ifdef _POSIX_TRACE_EVENT_FILTER
+      return _POSIX_TRACE_EVENT_FILTER;
+#else
+      return -1;
+#endif
+    case _SC_TRACE_INHERIT:
+#ifdef _POSIX_TRACE_INHERIT
+      return _POSIX_TRACE_INHERIT;
+#else
+      return -1;
+#endif
+    case _SC_TRACE_LOG:
+#ifdef _POSIX_TRACE_LOG
+      return _POSIX_TRACE_LOG;
+#else
+      return -1;
+#endif
     }
 }
 
This page took 0.061567 seconds and 5 git commands to generate.