Re: SIGBUS -> SIGSEGV
"Salvatore Benedetto" <[email protected]> Sun, 31 Aug 2008 01:22:56 +0200
| Newsgroups | gmane.os.openbeos.kernel.devel |
|---|---|
| Message-ID | <[email protected]> |
2008/8/31 Ingo Weinhold <[email protected]>: > > On 2008-08-30 at 15:58:43 [+0200], Salvatore Benedetto <[email protected]> > wrote: >> >> while trying to compile tcl within Haiku, the build process >> failed in a switch case on SIGBUS saying that it was already >> defined a few lines above, where actually the case SIGSEGV >> was. So I looked up in the Haiku code and found the following >> >> #define SIGBUS SIGSEGV /* for old style code */ >> >> What does exactly old style code means? Is this still needed? > > SIGBUS is defined by POSIX, so we'll have to keep it. I'm afraid you'll have > to "#ifndef __HAIKU__" the SIGBUS case. Fine by me. Just wanted to understand why it is defined like SIGSEGV, is that something to do with BeOS compatibility? Regards, -- Salvatore Benedetto (a.k.a. emitrax) Student of Computer Engineer University of Pisa www.haiku-os.it ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/