runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

sig.h (664B)


      1 /* Public domain. */
      2 
      3 #ifndef SIG_H
      4 #define SIG_H
      5 
      6 extern const int sig_alarm;
      7 extern const int sig_child;
      8 extern const int sig_cont;
      9 extern const int sig_hangup;
     10 extern const int sig_int;
     11 extern const int sig_kill;
     12 extern const int sig_pipe;
     13 extern const int sig_term;
     14 
     15 extern void (*sig_defaulthandler)(int);
     16 extern void (*sig_ignorehandler)(int);
     17 extern void sig_catch(int,void (*)(int));
     18 #define sig_ignore(s) (sig_catch((s),sig_ignorehandler))
     19 #define sig_uncatch(s) (sig_catch((s),sig_defaulthandler))
     20 
     21 extern void sig_block(int);
     22 extern void sig_unblock(int);
     23 extern void sig_blocknone(void);
     24 extern void sig_pause(void);
     25 
     26 extern void sig_dfl(int);
     27 
     28 #endif