File:  [MW Coherent from dump] / coherent / a / usr / bob / uusrc / include / alarm.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 *  alarm.h
 *
 *  Header file for a modest support for SIGALRM catching.
 */

#include <signal.h>

extern	int timedout;		/* flag for receipt of SIGALRM signal	*/
extern	int alarmclk();		/* SIGALRM signal Service Function	*/

#define	INITALRM()	signal(SIGALRM, alarmclk)
#define	RESETALRM()	signal(SIGALRM, alarmclk)
#define	SETALRM(x)	{timedout = 0; alarm(x);}
#define	CLRALRM()	{timedout = 0; alarm(0);}
#define	STOPALRM()	signal(SIGALRM, SIG_IGN)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.