2018-02-21 18:45:26 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_POSIX_SIGNAL_H_
|
|
|
|
#define ZEPHYR_INCLUDE_POSIX_SIGNAL_H_
|
2018-02-21 18:45:26 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-02-20 02:49:04 +08:00
|
|
|
#include "posix_types.h"
|
2018-02-21 18:45:26 +08:00
|
|
|
|
|
|
|
#ifndef SIGEV_NONE
|
|
|
|
#define SIGEV_NONE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SIGEV_SIGNAL
|
|
|
|
#define SIGEV_SIGNAL 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SIGEV_THREAD
|
|
|
|
#define SIGEV_THREAD 3
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef union sigval {
|
|
|
|
int sival_int;
|
|
|
|
void *sival_ptr;
|
|
|
|
} sigval;
|
|
|
|
|
|
|
|
typedef struct sigevent {
|
|
|
|
int sigev_notify;
|
|
|
|
int sigev_signo;
|
|
|
|
sigval sigev_value;
|
|
|
|
void (*sigev_notify_function)(sigval val);
|
2018-09-28 13:56:14 +08:00
|
|
|
#ifdef CONFIG_PTHREAD_IPC
|
2018-02-21 18:45:26 +08:00
|
|
|
pthread_attr_t *sigev_notify_attributes;
|
2018-09-28 13:56:14 +08:00
|
|
|
#endif
|
2018-02-21 18:45:26 +08:00
|
|
|
} sigevent;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* POSIX__SIGNAL_H */
|