xref: /csrg-svn/games/sail/machdep.h (revision 60846)
111603Sleres /*
2*60846Sbostic  * Copyright (c) 1983, 1993
3*60846Sbostic  *	The Regents of the University of California.  All rights reserved.
421252Sdist  *
542604Sbostic  * %sccs.include.redist.c%
633693Sbostic  *
7*60846Sbostic  *	@(#)machdep.h	8.1 (Berkeley) 05/31/93
811603Sleres  */
911603Sleres 
1018251Sedward #define TIMEOUT 300				/* Sync() timeout in seconds */
1115900Sedward 
1215900Sedward /* for 4.2bsd machines */
1315900Sedward #define blockalarm()	((void) sigblock(1 << SIGALRM-1))
1415900Sedward #define unblockalarm()	((void) sigsetmask(sigblock(0) & ~(1 << SIGALRM-1)))
1515900Sedward 
1615900Sedward /* for 2.9bsd machines (onyx)
1715900Sedward typedef int void;
1815900Sedward #define blockalarm()	((void) sighold(SIGALRM))
1915900Sedward #define unblockalarm()	((void) sigrelse(SIGALRM))
2015900Sedward */
21