Changeset 0ffbed9 in mainline for uspace/lib/posix/signal.h
- Timestamp:
- 2011-06-19T17:49:29Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5974661
- Parents:
- f48b637 (diff), 32fb6944 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/signal.h
rf48b637 r0ffbed9 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.