blob: 34902b8af95944e7aa3dbc7d9327f6b13c653a6d [file] [log] [blame]
#include "defs.h"
#include <fcntl.h>
#include "xlat/inotify_flags.h"
#include "xlat/inotify_init_flags.h"
SYS_FUNC(inotify_add_watch)
{
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;
}
SYS_FUNC(inotify_rm_watch)
{
if (entering(tcp)) {
/* file descriptor */
printfd(tcp, tcp->u_arg[0]);
/* watch descriptor */
tprintf(", %d", (int) tcp->u_arg[1]);
}
return 0;
}
SYS_FUNC(inotify_init1)
{
if (entering(tcp))
printflags(inotify_init_flags, tcp->u_arg[0], "IN_???");
return 0;
}