* conform/conformtest.pl: Define $mustprepend{"signal.h"}.
	* conform/data/signal.h-data: Fix sigev_notify_function entry.
	Fix typo (SIGVALRM -> SIGVTALRM).
	* sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr
	with real type.
	* sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
	* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
	* sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
This commit is contained in:
Ulrich Drepper 2001-01-27 06:30:48 +00:00
parent da23829807
commit 5a9339d5bb
11 changed files with 53 additions and 24 deletions

View File

@ -1,8 +1,18 @@
2001-01-26 Ulrich Drepper <drepper@redhat.com> 2001-01-26 Ulrich Drepper <drepper@redhat.com>
* conform/conformtest.pl: Define $mustprepend{"signal.h"}.
* conform/data/signal.h-data: Fix sigev_notify_function entry.
Fix typo (SIGVALRM -> SIGVTALRM).
* sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr
with real type.
* sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
* conform/conformtest.pl: Implement optional-element. Define * conform/conformtest.pl: Implement optional-element. Define
$mustprepend{"sched.h"}. $mustprepend{"sched.h"}.
* conform/data/sched.h-data: Make sporadic scheduler definitions * conform/data/sched.h-data: Make sporadic scheduler definitions
optional. optional.

View File

@ -55,6 +55,7 @@ $CFLAGS{"XOPEN2K"} = "-I. '-D__attribute__(x)=' -D_XOPEN_SOURCE=600";
# Some headers need a bit more attention. # Some headers need a bit more attention.
$mustprepend{'regex.h'} = "#include <sys/types.h>\n"; $mustprepend{'regex.h'} = "#include <sys/types.h>\n";
$mustprepend{'sched.h'} = "#include <sys/types.h>\n"; $mustprepend{'sched.h'} = "#include <sys/types.h>\n";
$mustprepend{'signal.h'} = "#include <pthread.h>\n";
$mustprepend{'wordexp.h'} = "#include <stddef.h>\n"; $mustprepend{'wordexp.h'} = "#include <stddef.h>\n";
# Make a hash table from this information. # Make a hash table from this information.

View File

@ -16,7 +16,7 @@ type {struct sigevent}
element {struct sigevent} int sigev_notify element {struct sigevent} int sigev_notify
element {struct sigevent} int sigev_signo element {struct sigevent} int sigev_signo
element {struct sigevent} {union sigval} sigev_value element {struct sigevent} {union sigval} sigev_value
element {struct sigevent} {void(*)(union sigval)} sigev_notify_function element {struct sigevent} {void(*} sigev_notify_function )(union sigval)
element {struct sigevent} {pthread_attr_t*} sigev_notify_attributes element {struct sigevent} {pthread_attr_t*} sigev_notify_attributes
constant SIGEV_NONE constant SIGEV_NONE
@ -54,7 +54,7 @@ constant SIGPROF
constant SIGSYS constant SIGSYS
constant SIGTRAP constant SIGTRAP
constant SIGURG constant SIGURG
constant SIGVALRM constant SIGVTALRM
constant SIGXCPU constant SIGXCPU
constant SIGXFSZ constant SIGXFSZ

View File

@ -33,8 +33,8 @@ typedef struct
{ {
struct struct
{ {
long int status; long int __status;
int spinlock; int __spinlock;
} __sem_lock; } __sem_lock;
int __sem_value; int __sem_value;
_pthread_descr __sem_waiting; _pthread_descr __sem_waiting;

View File

@ -38,7 +38,7 @@ typedef struct _pthread_descr_struct *_pthread_descr;
/* Attributes for threads. */ /* Attributes for threads. */
typedef struct typedef struct __pthread_attr_s
{ {
int __detachstate; int __detachstate;
int __schedpolicy; int __schedpolicy;

View File

@ -1,5 +1,5 @@
/* siginfo_t, sigevent and constants. Linux/SPARC version. /* siginfo_t, sigevent and constants. Linux/Alpha version.
Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -257,6 +257,9 @@ enum
# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
# endif # endif
/* Forward declaration of the `pthread_attr_t' type. */
struct __pthread_attr_s;
typedef struct sigevent typedef struct sigevent
{ {
sigval_t sigev_value; sigval_t sigev_value;
@ -270,7 +273,7 @@ typedef struct sigevent
struct struct
{ {
void (*_function) (sigval_t); /* Function to start. */ void (*_function) (sigval_t); /* Function to start. */
void *_attribute; /* Really pthread_attr_t. */ struct __pthread_attr_s *_attribute; /* Really pthread_attr_t. */
} _sigev_thread; } _sigev_thread;
} _sigev_un; } _sigev_un;
} sigevent_t; } sigevent_t;

View File

@ -1,5 +1,5 @@
/* siginfo_t, sigevent and constants. Linux/SPARC version. /* siginfo_t, sigevent and constants. Linux/SPARC version.
Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -257,6 +257,9 @@ enum
# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
# endif # endif
/* Forward declaration of the `pthread_attr_t' type. */
struct __pthread_attr_s;
typedef struct sigevent typedef struct sigevent
{ {
sigval_t sigev_value; sigval_t sigev_value;
@ -270,7 +273,7 @@ typedef struct sigevent
struct struct
{ {
void (*_function) (sigval_t); /* Function to start. */ void (*_function) (sigval_t); /* Function to start. */
void *_attribute; /* Really pthread_attr_t. */ struct __pthread_attr_s *_attribute; /* Really pthread_attr_t. */
} _sigev_thread; } _sigev_thread;
} _sigev_un; } _sigev_un;
} sigevent_t; } sigevent_t;

View File

@ -1,7 +1,7 @@
/* siginfo_t, sigevent and constants. Linux/ia64 version. /* siginfo_t, sigevent and constants. Linux/ia64 version.
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com. Contributed by David Mosberger-Tang <davidm@hpl.hp.com>.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as modify it under the terms of the GNU Library General Public License as
@ -283,6 +283,9 @@ enum
# define __SIGEV_MAX_SIZE 64 # define __SIGEV_MAX_SIZE 64
# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4) # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4)
/* Forward declaration of the `pthread_attr_t' type. */
struct __pthread_attr_s;
typedef struct sigevent typedef struct sigevent
{ {
sigval_t sigev_value; sigval_t sigev_value;
@ -295,8 +298,8 @@ typedef struct sigevent
struct struct
{ {
void (*_function) __PMT ((sigval_t)); /* Function to start. */ void (*_function) (sigval_t); /* Function to start. */
void *_attribute; /* Really pthread_attr_t. */ struct __pthread_attr_s *_attribute; /* Really pthread_attr_t. */
} _sigev_thread; } _sigev_thread;
} _sigev_un; } _sigev_un;
} sigevent_t; } sigevent_t;

View File

@ -1,5 +1,5 @@
/* siginfo_t, sigevent and constants. Linux version. /* siginfo_t, sigevent and constants. Linux/MIPS version.
Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -245,6 +245,9 @@ enum
# define __SIGEV_MAX_SIZE 64 # define __SIGEV_MAX_SIZE 64
# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
/* Forward declaration of the `pthread_attr_t' type. */
struct __pthread_attr_s;
/* XXX This one might need to change!!! */ /* XXX This one might need to change!!! */
typedef struct sigevent typedef struct sigevent
{ {
@ -258,8 +261,8 @@ typedef struct sigevent
struct struct
{ {
void (*_function) (sigval_t); /* Function to start. */ void (*_function) (sigval_t); /* Function to start. */
void *_attribute; /* Really pthread_attr_t. */ struct __pthread_attr_s *_attribute; /* Really pthread_attr_t. */
} _sigev_thread; } _sigev_thread;
} _sigev_un; } _sigev_un;
} sigevent_t; } sigevent_t;

View File

@ -1,5 +1,5 @@
/* siginfo_t, sigevent and constants. Linux/SPARC version. /* siginfo_t, sigevent and constants. Linux/SPARC version.
Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -266,6 +266,9 @@ enum
# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
# endif # endif
/* Forward declaration of the `pthread_attr_t' type. */
struct __pthread_attr_s;
typedef struct sigevent typedef struct sigevent
{ {
sigval_t sigev_value; sigval_t sigev_value;
@ -279,7 +282,7 @@ typedef struct sigevent
struct struct
{ {
void (*_function) (sigval_t); /* Function to start. */ void (*_function) (sigval_t); /* Function to start. */
void *_attribute; /* Really pthread_attr_t. */ struct __pthread_attr_s *_attribute; /* Really pthread_attr_t. */
} _sigev_thread; } _sigev_thread;
} _sigev_un; } _sigev_un;
} sigevent_t; } sigevent_t;

View File

@ -1,5 +1,5 @@
/* siginfo_t, sigevent and constants. Linux/SPARC version. /* siginfo_t, sigevent and constants. Linux/SPARC64 version.
Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -257,6 +257,9 @@ enum
# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
# endif # endif
/* Forward declaration of the `pthread_attr_t' type. */
struct __pthread_attr_s;
typedef struct sigevent typedef struct sigevent
{ {
sigval_t sigev_value; sigval_t sigev_value;
@ -270,7 +273,7 @@ typedef struct sigevent
struct struct
{ {
void (*_function) (sigval_t); /* Function to start. */ void (*_function) (sigval_t); /* Function to start. */
void *_attribute; /* Really pthread_attr_t. */ struct __pthread_attr_s *_attribute; /* Really pthread_attr_t. */
} _sigev_thread; } _sigev_thread;
} _sigev_un; } _sigev_un;
} sigevent_t; } sigevent_t;