public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 2/2] Add correct variable names for _POSIX_IPV6 and _POSIX_RAW_SOCKETS
@ 2014-09-12 11:13 Siddhesh Poyarekar
  2014-09-12 18:06 ` Roland McGrath
  0 siblings, 1 reply; 5+ messages in thread
From: Siddhesh Poyarekar @ 2014-09-12 11:13 UTC (permalink / raw)
  To: libc-alpha

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

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
---
 posix/getconf.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/getconf.c b/posix/getconf.c
index db6acc4..c2c0d3f 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 }
   };
 
-- 
1.9.3


[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-16 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12 11:13 [PATCH 2/2] Add correct variable names for _POSIX_IPV6 and _POSIX_RAW_SOCKETS Siddhesh Poyarekar
2014-09-12 18:06 ` Roland McGrath
2014-09-15  4:45   ` [PATCH] Assume that all _[PS]C_* and _CS_* macros are always defined Siddhesh Poyarekar
2014-09-15  4:49     ` Siddhesh Poyarekar
2014-09-16 15:48       ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).