lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 3daba9de was 3daba9de, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 14 years ago |
Added signal.h (just symbols, no functionality) and various other bits.
|
-
Property mode
set to
100644
|
File size:
970 bytes
|
Rev | Line | |
---|
[3daba9de] | 1 |
|
---|
| 2 | #include "sys/types.h"
|
---|
| 3 | #include "time.h"
|
---|
| 4 | #include "errno.h"
|
---|
| 5 |
|
---|
| 6 | /* HelenOS doesn't have signals, so calls to functions of this header
|
---|
| 7 | * are just replaced with their respective failure return value.
|
---|
| 8 | *
|
---|
| 9 | * Other macros and constants are here just to satisfy the symbol resolver
|
---|
| 10 | * and have no practical value whatsoever, until HelenOS implements some
|
---|
| 11 | * equivalent of signals. Maybe something neat based on IPC could be devised
|
---|
| 12 | * in the future?
|
---|
| 13 | */
|
---|
| 14 |
|
---|
| 15 | #define SIG_DFL ((void (*)(int)) 0)
|
---|
| 16 | #define SIG_ERR ((void (*)(int)) 0)
|
---|
| 17 | #define SIG_IGN ((void (*)(int)) 0)
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | #define signal(sig,func) (errno = ENOTSUP, SIG_ERR)
|
---|
| 21 | #define raise(sig) ((int)-1)
|
---|
| 22 |
|
---|
| 23 | typedef int sig_atomic_t;
|
---|
| 24 |
|
---|
| 25 | // full POSIX set
|
---|
| 26 | enum {
|
---|
| 27 | SIGABRT,
|
---|
| 28 | SIGALRM,
|
---|
| 29 | SIGBUS,
|
---|
| 30 | SIGCHLD,
|
---|
| 31 | SIGCONT,
|
---|
| 32 | SIGFPE,
|
---|
| 33 | SIGHUP,
|
---|
| 34 | SIGILL,
|
---|
| 35 | SIGINT,
|
---|
| 36 | SIGKILL,
|
---|
| 37 | SIGPIPE,
|
---|
| 38 | SIGQUIT,
|
---|
| 39 | SIGSEGV,
|
---|
| 40 | SIGSTOP,
|
---|
| 41 | SIGTERM,
|
---|
| 42 | SIGTSTP,
|
---|
| 43 | SIGTTIN,
|
---|
| 44 | SIGTTOU,
|
---|
| 45 | SIGUSR1,
|
---|
| 46 | SIGUSR2,
|
---|
| 47 | SIGPOLL,
|
---|
| 48 | SIGPROF,
|
---|
| 49 | SIGSYS,
|
---|
| 50 | SIGTRAP,
|
---|
| 51 | SIGURG,
|
---|
| 52 | SIGVTALRM,
|
---|
| 53 | SIGXCPU,
|
---|
| 54 | SIGXFSZ
|
---|
| 55 | };
|
---|
| 56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.