qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] inotify syscalls


From: Lauro Ramos Venancio
Subject: [Qemu-devel] [patch] inotify syscalls
Date: Fri, 21 Sep 2007 16:23:58 -0300

The attached patch implements the inotify syscalls.

inotify.c is a test program.

Example:
$ arm-linux-gcc inotify.c -o test -static
$ qemu-arm test file &
[4] 13882
wd = 1
$ echo aaa > file
Event on 1 mask 2(IN_MODIFY)
Event on 1 mask 20(IN_OPEN)
Event on 1 mask 8(IN_CLOSE_WRITE)
Event on 1 mask 20(IN_OPEN)
Event on 1 mask 1(IN_ACCESS)
Event on 1 mask 10(IN_CLOSE_NOWRITE)
$ chmod a+rwx file
Event on 1 mask 4(IN_ATTRIB)


Lauro Ramos Venancio
OpenBossa Labs
Instituto Nokia de Tecnologia
Recife - Brazil

Attachment: inotify.c
Description: Text Data

Attachment: inotify.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]