summaryrefslogtreecommitdiff
path: root/posix/getconf.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-09-15 10:08:38 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-09-15 10:08:38 +0530
commit3f41521d4b9697634d3f574ee5fd3a22f217b25d (patch)
tree15f31b23973a5e5f09f4d89450708ed7c0a39b76 /posix/getconf.c
parentd8f879ee3e4131542c2ac3d1d9db4cf12cb86729 (diff)
Add correct variable names for _POSIX_IPV6 and _POSIX_RAW_SOCKETS
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
Diffstat (limited to 'posix/getconf.c')
-rw-r--r--posix/getconf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/posix/getconf.c b/posix/getconf.c
index db6acc4c45..c2c0d3f67d 100644
--- a/posix/getconf.c
+++ b/posix/getconf.c
@@ -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 }
};