Newer
Older
mailpiler / src / sig.h
@SJ SJ on 23 Oct 2016 322 bytes first demo of the new architecture
/*
 * sig.h, SJ
 */

#ifndef _SIG_H
 #define _SIG_H

typedef void signal_func (int);

void sig_block(int sig);
void sig_unblock(int sig);
void sig_catch(int sig, void (*f)());
void sig_uncatch(int sig);
void sig_pause();
int wait_nohang(int *wstat);
signal_func *set_signal_handler(int signo, signal_func * func);

#endif