mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 19:53:32 +08:00
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.
This commit is contained in:
parent
097487fef8
commit
60e4523a08
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2004-11-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add GETCONF_DIR.
|
||||
|
@ -492,9 +492,14 @@ enum
|
||||
#define _SC_LEVEL4_CACHE_SIZE _SC_LEVEL4_CACHE_SIZE
|
||||
_SC_LEVEL4_CACHE_ASSOC,
|
||||
#define _SC_LEVEL4_CACHE_ASSOC _SC_LEVEL4_CACHE_ASSOC
|
||||
_SC_LEVEL4_CACHE_LINESIZE
|
||||
_SC_LEVEL4_CACHE_LINESIZE,
|
||||
#define _SC_LEVEL4_CACHE_LINESIZE _SC_LEVEL4_CACHE_LINESIZE
|
||||
/* Leave room here, maybe we need a few more cache levels some day. */
|
||||
|
||||
_SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
|
||||
#define _SC_IPV6 _SC_IPV6
|
||||
_SC_RAW_SOCKETS
|
||||
#define _SC_RAW_SOCKETS _SC_RAW_SOCKETS
|
||||
};
|
||||
|
||||
/* Values for the NAME argument to `confstr'. */
|
||||
|
@ -1,3 +1,13 @@
|
||||
2004-11-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
|
||||
_POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
|
||||
_POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
|
||||
_POSIX_TYPED_MEMORY_OBJECTS): Define.
|
||||
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
|
||||
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
|
||||
* sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
|
||||
|
||||
2004-11-05 Maciej W. Rozycki <macro@mips.com>
|
||||
|
||||
* sysdeps/mips/pspinlock.c: Include <sgidefs.h>. Use _ABIO32,
|
||||
|
@ -1,3 +1,13 @@
|
||||
2004-11-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
|
||||
_POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
|
||||
_POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
|
||||
_POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
|
||||
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
|
||||
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
|
||||
* sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
|
||||
|
||||
2004-11-24 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
|
||||
|
@ -912,6 +912,12 @@ static const struct conf vars[] =
|
||||
{ "LEVEL4_CACHE_ASSOC", _SC_LEVEL4_CACHE_ASSOC, SYSCONF },
|
||||
#endif
|
||||
|
||||
#ifdef _SC_IPV6
|
||||
{ "IPV6", _SC_IPV6, SYSCONF },
|
||||
#endif
|
||||
#ifdef _SC_RAW_SOCKETS
|
||||
{ "RAW_SOCKETS", _SC_RAW_SOCKETS, SYSCONF },
|
||||
#endif
|
||||
|
||||
{ NULL, 0, SYSCONF }
|
||||
};
|
||||
|
@ -492,9 +492,14 @@ enum
|
||||
#define _SC_LEVEL4_CACHE_SIZE _SC_LEVEL4_CACHE_SIZE
|
||||
_SC_LEVEL4_CACHE_ASSOC,
|
||||
#define _SC_LEVEL4_CACHE_ASSOC _SC_LEVEL4_CACHE_ASSOC
|
||||
_SC_LEVEL4_CACHE_LINESIZE
|
||||
_SC_LEVEL4_CACHE_LINESIZE,
|
||||
#define _SC_LEVEL4_CACHE_LINESIZE _SC_LEVEL4_CACHE_LINESIZE
|
||||
/* Leave room here, maybe we need a few more cache levels some day. */
|
||||
|
||||
_SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
|
||||
#define _SC_IPV6 _SC_IPV6
|
||||
_SC_RAW_SOCKETS
|
||||
#define _SC_RAW_SOCKETS _SC_RAW_SOCKETS
|
||||
};
|
||||
|
||||
/* Values for the NAME argument to `confstr'. */
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user