Dmitry V. Levin
fe3cdfc68d
* inotify.c (sys_inotify_add_watch, sys_inotify_rm_watch, sys_inotify_init1): Update for RVAL_DECODED.
37 lines
642 B
C
37 lines
642 B
C
#include "defs.h"
|
|
#include <fcntl.h>
|
|
|
|
#include "xlat/inotify_flags.h"
|
|
#include "xlat/inotify_init_flags.h"
|
|
|
|
SYS_FUNC(inotify_add_watch)
|
|
{
|
|
/* 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 RVAL_DECODED;
|
|
}
|
|
|
|
SYS_FUNC(inotify_rm_watch)
|
|
{
|
|
/* file descriptor */
|
|
printfd(tcp, tcp->u_arg[0]);
|
|
/* watch descriptor */
|
|
tprintf(", %d", (int) tcp->u_arg[1]);
|
|
|
|
return RVAL_DECODED;
|
|
}
|
|
|
|
SYS_FUNC(inotify_init1)
|
|
{
|
|
printflags(inotify_init_flags, tcp->u_arg[0], "IN_???");
|
|
|
|
return RVAL_DECODED;
|
|
}
|