25 lines
412 B
C
25 lines
412 B
C
|
/* bits/sigevent.h: The sigevent structure. */
|
||
|
|
||
|
#ifndef _BITS_SIGEVENT_H
|
||
|
#define _BITS_SIGEVENT_H
|
||
|
|
||
|
#define SIGEV_NONE 0
|
||
|
#define SIGEV_SIGNAL 1
|
||
|
#define SIGEV_THREAD 2
|
||
|
|
||
|
union sigval {
|
||
|
int sival_int;
|
||
|
void* sival_ptr;
|
||
|
};
|
||
|
|
||
|
struct sigevent
|
||
|
{
|
||
|
int sigev_notify;
|
||
|
int sigev_signo;
|
||
|
union sigval sigev_value;
|
||
|
void (*sigev_notify_function)(union sigval);
|
||
|
void* sigev_notify_attributes;
|
||
|
};
|
||
|
|
||
|
#endif
|