r6308@lvps87-230-33-50: verhaegs | 2007-12-03 22:24:30 +0100
[AROS.git] / test / signaltest.c
blob44c945b6d6e63c2bdd8b40ca260b7adab558c010
1 /*
2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
7 #include <clib/exec_protos.h>
8 #include <stdio.h>
10 int main(int argc, char* argv[])
12 int sig[32];
13 int i;
15 for(i=0;i<32;i++)
17 sig[i]=AllocSignal(-1);
18 printf("%d\n",sig[i]);
21 for(i=0;i<32;i++)
22 FreeSignal(sig[i]);
24 for(i=0;i<32;i++)
26 sig[i]=AllocSignal(i);
27 printf("%d\n",sig[i]);
30 for(i=0;i<32;i++)
31 FreeSignal(sig[i]);
33 return 0;