1 #ifndef __sigevent_t_defined
2 #define __sigevent_t_defined 1
4 #include <bits/wordsize.h>
5 #include <bits/types.h>
6 #include <bits/types/__sigval_t.h>
8 #define __SIGEV_MAX_SIZE 64
10 # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4)
12 # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
15 /* Forward declaration. */
16 #ifndef __have_pthread_attr_t
17 typedef union pthread_attr_t pthread_attr_t;
18 # define __have_pthread_attr_t 1
21 /* Structure to transport application-defined values with signals. */
22 typedef struct sigevent
24 __sigval_t sigev_value;
30 int _pad[__SIGEV_PAD_SIZE];
32 /* When SIGEV_SIGNAL and SIGEV_THREAD_ID set, LWP ID of the
33 thread to receive the signal. */
38 void (*_function) (__sigval_t); /* Function to start. */
39 pthread_attr_t *_attribute; /* Thread attributes. */
44 /* POSIX names to access some of the members. */
45 #define sigev_notify_function _sigev_un._sigev_thread._function
46 #define sigev_notify_attributes _sigev_un._sigev_thread._attribute