mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2014-09-15 Siddhesh Poyarekar <siddhesh@redhat.com>
|
2014-09-15 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/posix/sysconf.c (__sysconf): Return -1 for
|
||||||
|
_SC_REGEX_VERSION.
|
||||||
|
|
||||||
* posix/getconf.c (vars): Add _POSIX_IPV6 and
|
* posix/getconf.c (vars): Add _POSIX_IPV6 and
|
||||||
_POSIX_RAW_SOCKETS.
|
_POSIX_RAW_SOCKETS.
|
||||||
|
|
||||||
|
@ -983,12 +983,10 @@ __sysconf (name)
|
|||||||
#else
|
#else
|
||||||
return -1;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
|
/* _REGEX_VERSION has been removed with IEEE Std 1003.1-2001/Cor 2-2004,
|
||||||
|
item XSH/TC2/D6/137. */
|
||||||
case _SC_REGEX_VERSION:
|
case _SC_REGEX_VERSION:
|
||||||
#if _POSIX_REGEX_VERSION > 0
|
|
||||||
return _POSIX_REGEX_VERSION;
|
|
||||||
#else
|
|
||||||
return -1;
|
return -1;
|
||||||
#endif
|
|
||||||
|
|
||||||
case _SC_SHELL:
|
case _SC_SHELL:
|
||||||
#if _POSIX_SHELL > 0
|
#if _POSIX_SHELL > 0
|
||||||
|
Reference in New Issue
Block a user