2 Copyright © 2001, The AROS Development Team. All rights reserved.
5 Test program for ram.handler notification.
8 #include <proto/exec.h>
9 #include <exec/memory.h>
12 #include <dos/dosextens.h>
13 #include <dos/notify.h>
14 #include <proto/exec.h>
15 #include <proto/dos.h>
20 int main(int argc
, char* argv
[])
22 printf("Program waits till a file with the name 'Olle' is"
25 struct NotifyRequest
*nr
= AllocVec(sizeof(struct NotifyRequest
),
31 printf("Could not allocate memory.\n");
36 nr
->nr_Flags
= NRF_SEND_SIGNAL
;
37 nr
->nr_stuff
.nr_Signal
.nr_Task
= FindTask(NULL
);
38 nr
->nr_stuff
.nr_Signal
.nr_SignalNum
= SIGB_SINGLE
;
40 lock
= Lock("Ram Disk:", SHARED_LOCK
);
44 printf("Could not lock Ram Disk:\n");
52 printf("Waiting for notification\n");
56 printf("Got notification!\n");