mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
2004-04-15 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h. (timer_helper_thread): Use inline rt_sigtimedwait syscall instead of calling sigwaitinfo.
This commit is contained in:
69
CONFORMANCE
69
CONFORMANCE
@ -13,41 +13,64 @@ The hdrchk test suite is available from the Open Group at
|
|||||||
|
|
||||||
ftp://ftp.rdg.opengroup.org/pub/unsupported/stdtools/hdrchk/
|
ftp://ftp.rdg.opengroup.org/pub/unsupported/stdtools/hdrchk/
|
||||||
|
|
||||||
I've last run the suite on 2000-08-13 on a Linux/ix86 system with the
|
I've last run the suite on 2004-04-17 on a Linux/x86 system running
|
||||||
following results [*]:
|
a Fedora Core 2 test 2 + updates with the following results [*]:
|
||||||
|
|
||||||
FIPS No reported problems
|
FIPS No reported problems
|
||||||
|
|
||||||
POSIX90 No reported problems
|
POSIX90 No reported problems
|
||||||
|
|
||||||
XPG3 No reported problems
|
XPG3 Prototypes are now in the correct header file
|
||||||
|
|
||||||
XPG4 No reported problems
|
|
||||||
|
|
||||||
POSIX96 Same as for UNIX98 (see below).
|
|
||||||
UNIX98 The message queue implementation is missing:
|
|
||||||
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
/****** <mqueue.h> - Missing include file ******/
|
*** Starting unistd.h
|
||||||
/****** Start of Definitions for file mqueue.h ******/
|
Missing: extern char * cuserid();
|
||||||
extern int mq_close();
|
Missing: extern int rename();
|
||||||
extern int mq_getattr();
|
*** Completed unistd.h
|
||||||
extern int mq_notify();
|
|
||||||
extern mqd_t mq_open();
|
|
||||||
extern ssize_t mq_receive();
|
|
||||||
extern int mq_send();
|
|
||||||
extern int mq_setattr();
|
|
||||||
extern int mq_unlink();
|
|
||||||
typedef <type> mqd_t;
|
|
||||||
struct mq_attr { <members> };
|
|
||||||
struct sigevent { <members> };
|
|
||||||
/****** End of Definitions for file mqueue.h ******/
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
XPG4 Prototype is now in the correct header file
|
||||||
|
and the _POSIX2_C_VERSION symbol has been removed
|
||||||
|
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
*** Starting unistd.h
|
||||||
|
Missing: extern char * cuserid();
|
||||||
|
Missing: #define _POSIX2_C_VERSION (-1L)
|
||||||
|
*** Completed unistd.h
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
POSIX96 Prototype moved
|
||||||
|
(using "base realtime threads" subsets)
|
||||||
|
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
*** Starting unistd.h
|
||||||
|
Missing: extern int pthread_atfork();
|
||||||
|
*** Completed unistd.h
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
UNIX98 Prototypes moved and _POSIX2_C_VERSION removed
|
||||||
|
(using "base realtime threads mse lfs" subset)
|
||||||
|
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
*** Starting unistd.h
|
||||||
|
Missing: extern char * cuserid();
|
||||||
|
Missing: #define _POSIX2_C_VERSION (-1L)
|
||||||
|
Missing: extern int pthread_atfork();
|
||||||
|
*** Completed unistd.h
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
That means all the reported issues are due to the headers having been
|
||||||
|
cleaned up for recent POSIX/Unix specification versions. Duplicated
|
||||||
|
prototypes have been removed and obsolete symbols have been removed.
|
||||||
|
Which means that as far as the tests performed by the script go, the
|
||||||
|
headers files comply to the current POSIX/Unix specification.
|
||||||
|
|
||||||
|
|
||||||
[*] Since the scripts are not clever enough for the way gcc handles
|
[*] Since the scripts are not clever enough for the way gcc handles
|
||||||
include files (namely, putting some of them in gcc-local directory) I
|
include files (namely, putting some of them in gcc-local directory) I
|
||||||
copied over the iso646.h, float.h, and stddef.h headers and ignored the
|
copied over the iso646.h, float.h, and stddef.h headers and ignored the
|
||||||
problems resulting from the splitted limits.h file).
|
problems resulting from the split limits.h file).
|
||||||
|
|
||||||
|
|
||||||
Technical C standards conformance issues in glibc
|
Technical C standards conformance issues in glibc
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2004-04-15 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
|
||||||
|
(timer_helper_thread): Use inline rt_sigtimedwait syscall instead
|
||||||
|
of calling sigwaitinfo.
|
||||||
|
|
||||||
2004-04-16 Ulrich Drepper <drepper@redhat.com>
|
2004-04-16 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* allocatestack.c (allocate_stack): Set reported_guardsize
|
* allocatestack.c (allocate_stack): Set reported_guardsize
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2003 Free Software Foundation, Inc.
|
/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
|
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
|
||||||
|
|
||||||
@ -17,6 +17,7 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
@ -61,7 +62,19 @@ timer_helper_thread (void *arg)
|
|||||||
{
|
{
|
||||||
siginfo_t si;
|
siginfo_t si;
|
||||||
|
|
||||||
if (sigwaitinfo (&ss, &si) > 0)
|
/* sigwaitinfo cannot be used here, since it deletes
|
||||||
|
SIGCANCEL == SIGTIMER from the set. */
|
||||||
|
|
||||||
|
int oldtype = LIBC_CANCEL_ASYNC ();
|
||||||
|
|
||||||
|
/* XXX The size argument hopefully will have to be changed to the
|
||||||
|
real size of the user-level sigset_t. */
|
||||||
|
int result = INLINE_SYSCALL (rt_sigtimedwait, 4, &ss, &si, NULL,
|
||||||
|
_NSIG / 8);
|
||||||
|
|
||||||
|
LIBC_CANCEL_RESET (oldtype);
|
||||||
|
|
||||||
|
if (result > 0)
|
||||||
{
|
{
|
||||||
if (si.si_code == SI_TIMER)
|
if (si.si_code == SI_TIMER)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user