Wanderer/Info: fix compilation
[AROS.git] / arch / .unmaintained / m68k-emul / osints.c
blob477d8d193f015767f3a3d7cf3f240db40619e2c2
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: OS specific functions for signal blocking
6 Lang: english
7 */
9 #include <signal.h>
10 #include <stdio.h>
12 /* The real functions are written in assembler as stubs which call these */
13 void _os_enable (void)
15 sigset_t set;
17 /* if (supervisor)
19 fprintf (stderr, "Enable() called in supervisor mode\n");
20 } */
22 sigfillset (&set);
24 sigprocmask (SIG_UNBLOCK, &set, NULL);
25 } /* _os_enable */
27 void _os_disable (void)
29 sigset_t set;
31 sigfillset (&set);
33 sigprocmask (SIG_BLOCK, &set, NULL);
34 } /* _os_disable */