blob: b0937311b3133897c011a29910cdd358b3816a7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
* Copyright (c) 2006 Bernhard Kaindl <bk@suse.de>
* Copyright (c) 2006-2021 Dmitry V. Levin <ldv@strace.io>
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "defs.h"
#include "kernel_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]);
tprint_arg_next();
/* pathname */
printpath(tcp, tcp->u_arg[1]);
tprint_arg_next();
/* 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]);
tprint_arg_next();
/* watch descriptor */
PRINT_VAL_D((int) tcp->u_arg[1]);
return RVAL_DECODED;
}
SYS_FUNC(inotify_init)
{
return RVAL_DECODED | RVAL_FD;
}
SYS_FUNC(inotify_init1)
{
printflags(inotify_init_flags, tcp->u_arg[0], "IN_???");
return RVAL_DECODED | RVAL_FD;
}
|