xref: /original-bsd/games/sail/machdep.h (revision 3f73ce2f)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)machdep.h	5.5 (Berkeley) 06/01/90
8  */
9 
10 #define TIMEOUT 300				/* Sync() timeout in seconds */
11 
12 /* for 4.2bsd machines */
13 #define blockalarm()	((void) sigblock(1 << SIGALRM-1))
14 #define unblockalarm()	((void) sigsetmask(sigblock(0) & ~(1 << SIGALRM-1)))
15 
16 /* for 2.9bsd machines (onyx)
17 typedef int void;
18 #define blockalarm()	((void) sighold(SIGALRM))
19 #define unblockalarm()	((void) sigrelse(SIGALRM))
20 */
21