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 struct NotifyRequest
*nr
= AllocVec(sizeof(struct NotifyRequest
),
28 printf("Could not allocate memory.\n");
33 nr
->nr_Flags
= NRF_SEND_SIGNAL
;
34 nr
->nr_stuff
.nr_Signal
.nr_Task
= FindTask(NULL
);
35 nr
->nr_stuff
.nr_Signal
.nr_SignalNum
= SIGB_SINGLE
;
37 lock
= Lock("Ram Disk:", SHARED_LOCK
);
41 printf("Could not lock Ram Disk:\n");
49 printf("Waiting for notification\n");
53 printf("Got notification!\n");