Dmitry V. Levin
3a232997d8
* linux/inotify.h: Remove. * Makefile.am (EXTRA_DIST): Remove it. * inotify.c: Do not include <linux/inotify.h>. * xlat/inotify_flags.in: Add default values.
42 lines
734 B
C
42 lines
734 B
C
#include "defs.h"
|
|
#include <fcntl.h>
|
|
|
|
#include "xlat/inotify_flags.h"
|
|
#include "xlat/inotify_init_flags.h"
|
|
|
|
int
|
|
sys_inotify_add_watch(struct tcb *tcp)
|
|
{
|
|
if (entering(tcp)) {
|
|
/* file descriptor */
|
|
printfd(tcp, tcp->u_arg[0]);
|
|
tprints(", ");
|
|
/* pathname */
|
|
printpath(tcp, tcp->u_arg[1]);
|
|
tprints(", ");
|
|
/* mask */
|
|
printflags(inotify_flags, tcp->u_arg[2], "IN_???");
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
sys_inotify_rm_watch(struct tcb *tcp)
|
|
{
|
|
if (entering(tcp)) {
|
|
/* file descriptor */
|
|
printfd(tcp, tcp->u_arg[0]);
|
|
/* watch descriptor */
|
|
tprintf(", %d", (int) tcp->u_arg[1]);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
sys_inotify_init1(struct tcb *tcp)
|
|
{
|
|
if (entering(tcp))
|
|
printflags(inotify_init_flags, tcp->u_arg[0], "IN_???");
|
|
return 0;
|
|
}
|