Mercurial > hg > Members > kono > nitros9-code
changeset 556:28a203bbd2cc
findstr and signal finished.
author | roug |
---|---|
date | Tue, 22 Oct 2002 19:09:04 +0000 |
parents | d14042385d24 |
children | 7d803625ead8 |
files | docs/ccguide/signal.refentry |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/ccguide/signal.refentry Tue Oct 22 19:09:04 2002 +0000 +++ b/docs/ccguide/signal.refentry Tue Oct 22 19:09:04 2002 +0000 @@ -21,6 +21,30 @@ <para> Placeholder </para> +<para> +The signals used by OS-9 are defined in the header file as +follows: +</para> +<programlisting> +/* OS-9 signals */ +#define SIGKILL 0 /* system abort (cannot be caught or ignored)*/ +#define SIGWAKE 1 /* wake up */ +#define SIGQUIT 2 /* keyboard abort */ +#define SIGINT 3 /* keyboard interrupt */ + +/* special addresses */ +#define SIG_DFL 0 /* reset to default */ +#define SIG_IGN 1 /* ignore */ +</programlisting> +<para> +Please note that there is another method of trapping signals, +namely "intercept()" (q.v.). However, since "signal()" and +"intercept()" are mutually incompatible, calls to both of them +must not appear in the same program. The link-loader will +preven the creation of an executable program in which both are +called by aborting with an "entry name clash" error for +"_sigint". +</para> </refsect1> <refsect1><title>See Also</title>