]>
Commit | Line | Data |
---|---|---|
2aa62f2b | 1 | /**\r |
2 | Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r | |
3 | This program and the accompanying materials are licensed and made available under\r | |
4 | the terms and conditions of the BSD License that accompanies this distribution.\r | |
5 | The full text of the license may be found at\r | |
6 | http://opensource.org/licenses/bsd-license.php.\r | |
7 | \r | |
8 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
9 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
10 | \r | |
11 | **/\r | |
12 | #ifndef _SYS_SIGNAL_H\r | |
13 | #define _SYS_SIGNAL_H\r | |
14 | #include <sys/EfiCdefs.h>\r | |
15 | #include <machine/signal.h>\r | |
16 | \r | |
17 | /** The type of a signal handler function. **/\r | |
18 | typedef void __sighandler_t(int);\r | |
19 | \r | |
20 | /** The signal function associates a "signal handler" with a signal number.\r | |
21 | \r | |
22 | For historical reasons; programs expect signal to be declared\r | |
23 | in <sys/signal.h>.\r | |
24 | \r | |
25 | @param[in] sig Signal number that function is to be associated with.\r | |
26 | @param[in] function The "handler" function to be associated with signal sig.\r | |
27 | \r | |
28 | @return If the request can be honored, the signal function returns the\r | |
29 | value of func for the most recent successful call to signal for\r | |
30 | the specified signal sig. Otherwise, a value of SIG_ERR is\r | |
31 | returned and a positive value is stored in errno.\r | |
32 | */\r | |
33 | __BEGIN_DECLS\r | |
34 | __sighandler_t *signal(int sig, __sighandler_t *func);\r | |
35 | __END_DECLS\r | |
36 | \r | |
37 | #endif /* _SYS_SIGNAL_H */\r |