Re: compiling a simple program
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Tue, 31 May 2005 12:30:58 GMT
Daud wrote:
>
.... snip ...
> #include <sys/signal.h>
No such thing in standard C - use <signal.h>
>
> extern void CleanUp();
>
> void idba1EnableSignal()
> {
> signal(SIGINT, CleanUp);
> signal(SIGHUP, CleanUp);
> signal(SIGQUIT, CleanUp);
> signal(SIGKILL, CleanUp);
>
> return;
> }
Only <signal.h> is defined. You seem to be using some system
dependant things, so try a newsgroup that deals with your system.
>>From N869.
[#3] The macros defined are
SIG_DFL
SIG_ERR
SIG_IGN
which expand to constant expressions with distinct values
that have type compatible with the second argument to, and
the return value of, the signal function, and whose values
compare unequal to the address of any declarable function;
and the following, which expand to positive integer constant
expressions with type int and distinct values that are the
signal numbers, each corresponding to the specified
condition:
SIGABRT abnormal termination, such as is initiated
by the abort function
SIGFPE an erroneous arithmetic operation, such as
zero divide or an operation resulting in
overflow
SIGILL detection of an invalid function image, such
as an invalid instruction
SIGINT receipt of an interactive attention signal
SIGSEGV an invalid access to storage
SIGTERM a termination request sent to the program
[#4] An implementation need not generate any of these
signals, except as a result of explicit calls to the raise
function. Additional signals and pointers to undeclarable
functions, with macro definitions beginning, respectively,
with the letters SIG and an uppercase letter or with SIG_
and an uppercase letter,197) may also be specified by the
implementation. The complete set of signals, their
semantics, and their default handling is implementation-
defined; all signal numbers shall be positive.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
.
- References:
- compiling a simple program
- From: Daud
- compiling a simple program
- Prev by Date: Re: compiling a simple program
- Next by Date: Some pointer quiestions again
- Previous by thread: Re: compiling a simple program
- Next by thread: Some pointer quiestions again
- Index(es):
Relevant Pages
|