
On Thu, 25 Mar 2010 22:16:34 +0100, Felipe Tanus <fotanus@gmail.com> wrote:
[...]
Second it's true that Windows doesn't support signals at all (apart from those two you mentioned and I think SIGFPE). You are then in POSIX land anyway?
Windows support signals. I got this from signal.h (from a windows system):
[quote] #define SIGINT 2 /* interrupt */ #define SIGILL 4 /* illegal instruction - invalid function image */ #define SIGFPE 8 /* floating point exception */ #define SIGSEGV 11 /* segment violation */ #define SIGTERM 15 /* Software termination signal from kill */ #define SIGBREAK 21 /* Ctrl-Break sequence */ #define SIGABRT 22 /* abnormal termination triggered by [/quote]
According to MSDN SIGILL, SIGSEGV and SIGTERM are not generated. Thus we have support for incredible four signals - not sure if it's worth to create a platform independent library because of this. :) Boris