diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-11-27 20:57:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-11-27 20:57:44 +0000 |
commit | 60e4523a0826bfedc5bc1f8f0f3f7e8d8d67adc5 (patch) | |
tree | f6097495eff5d96cdb5441f6fbdc59d87135408e /sysdeps/posix | |
parent | 097487fef878799882bd444218cef836794abc5f (diff) | |
download | glibc-60e4523a0826bfedc5bc1f8f0f3f7e8d8d67adc5.zip glibc-60e4523a0826bfedc5bc1f8f0f3f7e8d8d67adc5.tar.gz glibc-60e4523a0826bfedc5bc1f8f0f3f7e8d8d67adc5.tar.bz2 |
Update.
2004-11-27 Ulrich Drepper <drepper@redhat.com>
* posix/getconf.c (vars): Add support for _SC_IPV6 and
_SC_RAW_SOCKETS.
* sysdeps/posix/sysconf.c (__sysconf): Add support for _SC_IPV6
and _SC_RAW_SOCKETS.
* sysdeps/generic/bits/confname.h: Define _SC_IPV6 and
_SC_RAW_SOCKETS.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/sysconf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c index de81c21..a4bc2e7 100644 --- a/sysdeps/posix/sysconf.c +++ b/sysdeps/posix/sysconf.c @@ -1189,6 +1189,20 @@ __sysconf (name) return zero which indicates that no information is available. */ return 0; + + case _SC_IPV6: +#ifdef _POSIX_IPV6 + return _POSIX_IPV6; +#else + return -1; +#endif + + case _SC_RAW_SOCKETS: +#ifdef _POSIX_RAW_SOCKETS + return _POSIX_RAW_SOCKETS; +#else + return -1; +#endif } } |