Amazon FreeRTOS: POSIX
Return to main page ↑
signal.h
Go to the documentation of this file.
1 /*
2  * Amazon FreeRTOS POSIX V1.1.0
3  * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  * http://aws.amazon.com/freertos
23  * http://www.FreeRTOS.org
24  */
25 
37 #ifndef _FREERTOS_POSIX_SIGNAL_H_
38 #define _FREERTOS_POSIX_SIGNAL_H_
39 
44 #define SIGEV_NONE 0
45 #define SIGEV_SIGNAL 1
46 #define SIGEV_THREAD 2
52 union sigval
53 {
54  int sival_int;
55  void * sival_ptr;
56 };
57 
62 struct sigevent
63 {
67  void ( * sigev_notify_function )( union sigval );
69 };
70 
71 #endif /* ifndef _FREERTOS_POSIX_SIGNAL_H_ */
sigevent::sigev_value
union sigval sigev_value
Definition: signal.h:66
sigevent::sigev_signo
int sigev_signo
Definition: signal.h:65
sigval::sival_ptr
void * sival_ptr
Definition: signal.h:55
sigevent::sigev_notify_function
void(* sigev_notify_function)(union sigval)
Definition: signal.h:67
sigevent::sigev_notify_attributes
pthread_attr_t * sigev_notify_attributes
Definition: signal.h:68
sigevent
Signal event structure.
Definition: signal.h:62
pthread_attr_t
PthreadAttrType_t pthread_attr_t
Used to identify a thread attribute object.
Definition: types.h:89
sigval::sival_int
int sival_int
Definition: signal.h:54
sigval
Signal value.
Definition: signal.h:52
sigevent::sigev_notify
int sigev_notify
Definition: signal.h:64