]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add correct variable names for _POSIX_IPV6 and _POSIX_RAW_SOCKETS
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 15 Sep 2014 04:38:38 +0000 (10:08 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 15 Sep 2014 04:38:38 +0000 (10:08 +0530)
getconf only recognizes IPV6 and RAW_SOCKETS, when the standard
requires it to recognize the actual configuration variable name[1].  I
have not removed the earlier names for compatibility.

* posix/getconf.c (vars): Add _POSIX_IPV6 and
_POSIX_RAW_SOCKETS.

[1] http://pubs.opengroup.org/onlinepubs/007904875/functions/sysconf.html

ChangeLog
posix/getconf.c

index 9f5d84e77b27ac46ce50af2235a56d34c8ddacaf..d010cc9dd0776d0617d9f544600a1bb1b3a6e645 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * posix/getconf.c (vars): Add _POSIX_IPV6 and
+       _POSIX_RAW_SOCKETS.
+
 2014-09-13  Allan McRae  <allan@archlinux.org>
 
        * po/ru.po: Update Russian translation from translation project.
index db6acc4c451d9ba16c0f8c5936020002eeb4dcb5..c2c0d3f67d8ad21deb750a283cdcc7ef261ca301 100644 (file)
@@ -1004,6 +1004,13 @@ static const struct conf vars[] =
     { "RAW_SOCKETS", _SC_RAW_SOCKETS, SYSCONF },
 #endif
 
+#ifdef _SC_IPV6
+    { "_POSIX_IPV6", _SC_IPV6, SYSCONF },
+#endif
+#ifdef _SC_RAW_SOCKETS
+    { "_POSIX_RAW_SOCKETS", _SC_RAW_SOCKETS, SYSCONF },
+#endif
+
     { NULL, 0, SYSCONF }
   };