Changes in uspace/lib/posix/signal.h [491e1ee:098eeba3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/signal.h
r491e1ee r098eeba3 27 27 */ 28 28 29 /** @addtogroup libposix30 * @{31 */32 /** @file33 */34 35 29 #ifndef POSIX_SIGNAL_H_ 36 30 #define POSIX_SIGNAL_H_ 37 31 38 #include "libc/errno.h"32 #include <errno.h> 39 33 40 34 /* HelenOS doesn't have signals, so calls to functions of this header … … 47 41 */ 48 42 49 #undef SIG_DFL50 43 #define SIG_DFL ((void (*)(int)) 0) 51 #undef SIG_ERR52 44 #define SIG_ERR ((void (*)(int)) 0) 53 #undef SIG_IGN54 45 #define SIG_IGN ((void (*)(int)) 0) 55 46 56 47 #define signal(sig,func) (errno = ENOTSUP, SIG_ERR) 57 #define raise(sig) ((int) 48 #define raise(sig) ((int)-1) 58 49 59 typedef int posix_sig_atomic_t;50 typedef int sig_atomic_t; 60 51 61 52 /* full POSIX set */ … … 91 82 }; 92 83 93 #ifndef LIBPOSIX_INTERNAL94 #define sig_atomic_t posix_sig_atomic_t95 #endif96 97 84 #endif /* POSIX_SIGNAL_H_ */ 98 85 99 /** @}100 */
Note:
See TracChangeset
for help on using the changeset viewer.