about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-09-15 10:16:14 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-09-15 10:16:14 +0530
commit61fe374a44a92621e0b75ec1f011ff1fba6c2148 (patch)
tree81627d3b57d49c5f12888fdf46f32034a7af3ab0 /sysdeps/posix
parent3f41521d4b9697634d3f574ee5fd3a22f217b25d (diff)
downloadglibc-61fe374a44a92621e0b75ec1f011ff1fba6c2148.tar.gz
glibc-61fe374a44a92621e0b75ec1f011ff1fba6c2148.tar.xz
glibc-61fe374a44a92621e0b75ec1f011ff1fba6c2148.zip
Remove _POSIX_REGEX_VERSION
There is no _POSIX_REGEX_VERSION, so don't check for it.
_REGEX_VERSION has been removed as well[1], so only keep the -1 return
for backward compatibility.  I found this when trying to make the
getconf environment variables typo-proof.

	* sysdeps/posix/sysconf.c (__sysconf): Return -1 for
	_SC_REGEX_VERSION.

[1] http://pubs.opengroup.org/onlinepubs/009695399/functions/sysconf.html
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/sysconf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index cd2fb5acda..e815cd5ff1 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -983,12 +983,10 @@ __sysconf (name)
 #else
       return -1;
 #endif
+    /* _REGEX_VERSION has been removed with IEEE Std 1003.1-2001/Cor 2-2004,
+       item XSH/TC2/D6/137.  */
     case _SC_REGEX_VERSION:
-#if _POSIX_REGEX_VERSION > 0
-      return _POSIX_REGEX_VERSION;
-#else
       return -1;
-#endif
 
     case _SC_SHELL:
 #if _POSIX_SHELL > 0