1 #include "defs.h"
2 #include <fcntl.h>
3
4 #include "xlat/inotify_flags.h"
5 #include "xlat/inotify_init_flags.h"
6
SYS_FUNC(inotify_add_watch)7 SYS_FUNC(inotify_add_watch)
8 {
9 if (entering(tcp)) {
10 /* file descriptor */
11 printfd(tcp, tcp->u_arg[0]);
12 tprints(", ");
13 /* pathname */
14 printpath(tcp, tcp->u_arg[1]);
15 tprints(", ");
16 /* mask */
17 printflags(inotify_flags, tcp->u_arg[2], "IN_???");
18 }
19 return 0;
20 }
21
SYS_FUNC(inotify_rm_watch)22 SYS_FUNC(inotify_rm_watch)
23 {
24 if (entering(tcp)) {
25 /* file descriptor */
26 printfd(tcp, tcp->u_arg[0]);
27 /* watch descriptor */
28 tprintf(", %d", (int) tcp->u_arg[1]);
29 }
30 return 0;
31 }
32
SYS_FUNC(inotify_init1)33 SYS_FUNC(inotify_init1)
34 {
35 if (entering(tcp))
36 printflags(inotify_init_flags, tcp->u_arg[0], "IN_???");
37 return 0;
38 }
39