Luna/libc/include/bits/sigevent.h

25 lines
412 B
C
Raw Normal View History

2024-01-05 21:12:58 +00:00
/* 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