diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-06-18 15:22:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-06-18 15:22:35 +0000 |
commit | 9a6994b490379074f546c395cb6d232cb1501348 (patch) | |
tree | 1e9a0c27d18cdbd202e0284d48a026807c6368c7 /c/src/exec/score/cpu/unix/cpu.c | |
parent | Corrected so it returns the correct date. Previously was getting the number (diff) | |
download | rtems-9a6994b490379074f546c395cb6d232cb1501348.tar.bz2 |
Added freebsd support from Dario Alcocer <alcocer@connectnet.com>.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/cpu/unix/cpu.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c index 5b927b7a40..796d46d267 100644 --- a/c/src/exec/score/cpu/unix/cpu.c +++ b/c/src/exec/score/cpu/unix/cpu.c @@ -152,8 +152,12 @@ void _CPU_Signal_initialize( void ) sigaction(SIGUSR1, &act, 0); sigaction(SIGUSR2, &act, 0); sigaction(SIGCHLD, &act, 0); +#ifdef SIGCLD sigaction(SIGCLD, &act, 0); +#endif +#ifdef SIGPWR sigaction(SIGPWR, &act, 0); +#endif sigaction(SIGVTALRM, &act, 0); sigaction(SIGPROF, &act, 0); sigaction(SIGIO, &act, 0); @@ -741,9 +745,10 @@ void _CPU_Stray_signal(int sig_num) switch (sig_num) { +#ifdef SIGCLD case SIGCLD: break; - +#endif default: { /* @@ -987,7 +992,7 @@ void _CPU_SHM_Init( help.val = 1; status = semctl( _CPU_SHM_Semid, i, SETVAL, help ); -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) union semun help; help.val = 1; |