Define sigev_notify_attr with real type.

This commit is contained in:
Ulrich Drepper 2001-01-27 06:29:16 +00:00
parent cb25fffef1
commit 1ae7e5b695
2 changed files with 13 additions and 7 deletions

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 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;