diff options
| author | BernardXiong <[email protected]> | 2017-12-31 14:48:54 +0800 |
|---|---|---|
| committer | BernardXiong <[email protected]> | 2017-12-31 14:48:54 +0800 |
| commit | 4bc082e7cb4a6b0ce1d5df7183ee07c87d2f140e (patch) | |
| tree | 4ebf5dcc7ca54b76af5b327c0103e0e6e9cfeef7 /include/libc | |
| parent | 5a95d356264ab1ef20729aa45887ad641114a9ae (diff) | |
[libc] move `struct sigevent` to libc_signal.h file.
Diffstat (limited to 'include/libc')
| -rw-r--r-- | include/libc/libc_signal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libc/libc_signal.h b/include/libc/libc_signal.h index 759647cdd1..cc4552f990 100644 --- a/include/libc/libc_signal.h +++ b/include/libc/libc_signal.h @@ -30,12 +30,26 @@ extern "C" { #endif +/* Signal Generation and Delivery, P1003.1b-1993, p. 63 + NOTE: P1003.1c/D10, p. 34 adds sigev_notify_function and + sigev_notify_attributes to the sigevent structure. */ + union sigval { int sival_int; /* Integer signal value */ void *sival_ptr; /* Pointer signal value */ }; +struct sigevent +{ + int sigev_notify; /* Notification type */ + int sigev_signo; /* Signal number */ + union sigval sigev_value; /* Signal value */ + void (*sigev_notify_function)( union sigval ); + /* Notification function */ + void *sigev_notify_attributes; /* Notification Attributes, really pthread_attr_t */ +}; + struct siginfo { rt_uint8_t si_signo; |
