Commit | Line | Data |
---|---|---|
cca8f52e | 1 | /* |
1e008c14 | 2 | * Copyright (c) 1983 Regents of the University of California. |
c0ca48ec | 3 | * All rights reserved. |
1e008c14 | 4 | * |
c0ca48ec | 5 | * Redistribution and use in source and binary forms are permitted |
65c7d3b6 KB |
6 | * provided that the above copyright notice and this paragraph are |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
c0ca48ec | 16 | * |
65c7d3b6 | 17 | * @(#)machdep.h 5.3 (Berkeley) %G% |
cca8f52e | 18 | */ |
cca8f52e | 19 | |
ba28d9ed | 20 | #define LOGFILE "/usr/games/lib/saillog" /* has to match the makefile */ |
44c566e8 | 21 | |
ba28d9ed | 22 | #define TIMEOUT 300 /* Sync() timeout in seconds */ |
0022de6e EW |
23 | |
24 | /* for 4.2bsd machines */ | |
25 | #define blockalarm() ((void) sigblock(1 << SIGALRM-1)) | |
26 | #define unblockalarm() ((void) sigsetmask(sigblock(0) & ~(1 << SIGALRM-1))) | |
27 | ||
28 | /* for 2.9bsd machines (onyx) | |
29 | typedef int void; | |
30 | #define blockalarm() ((void) sighold(SIGALRM)) | |
31 | #define unblockalarm() ((void) sigrelse(SIGALRM)) | |
32 | */ |