5 * (c) 1999 Straylight/Edgeware
8 /*----- Licensing notice --------------------------------------------------*
10 * This file is part of the mLib utilities library.
12 * mLib is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Library General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
17 * mLib is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with mLib; if not, write to the Free
24 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
35 /*----- Header files ------------------------------------------------------*/
41 /*----- Data structures ---------------------------------------------------*/
47 void (*proc)(int /*n*/, void */*p*/);
51 /*----- Functions provided ------------------------------------------------*/
53 /* --- @sig_add@ --- *
55 * Arguments: @sig *s@ = pointer to signal handler block
56 * @int n@ = number of the signal
57 * @void (*proc)(int n, void *p)@ = signal handler function
58 * @void *p@ = argument to pass to handler
62 * Use: Adds a signal handler.
65 extern void sig_add(sig */*s*/, int /*n*/,
66 void (*/*proc*/)(int /*n*/, void */*p*/), void */*p*/);
68 /* --- @sig_remove@ --- *
70 * Arguments: @sig *s@ = pointer to signal handler block
74 * Use: Removes the signal handler from the list.
77 extern void sig_remove(sig */*s*/);
79 /* --- @sig_init@ --- *
81 * Arguments: @sel_state *s@ = pointer to select state
85 * Use: Initializes the signal handling system ready for use.
88 extern void sig_init(sel_state */*s*/);
90 /*----- That's all, folks -------------------------------------------------*/