Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Nov 27, 2004
1 parent 097487f commit 60e4523
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
7 changes: 6 additions & 1 deletion bits/confname.h
Original file line number Diff line number Diff line change
Expand Up @@ -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'. */
Expand Down
10 changes: 10 additions & 0 deletions linuxthreads/ChangeLog
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
10 changes: 10 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 6 additions & 0 deletions posix/getconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
};
Expand Down
7 changes: 6 additions & 1 deletion sysdeps/generic/bits/confname.h
Original file line number Diff line number Diff line change
Expand Up @@ -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'. */
Expand Down
14 changes: 14 additions & 0 deletions sysdeps/posix/sysconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 60e4523

Please sign in to comment.