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