1 /* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)machdep.h 8.1 (Berkeley) 05/31/93 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