Dmitry V. Levin
b93d52fe3d
strace is now provided under the terms of the GNU Lesser General Public License version 2.1 or later, see COPYING for more details. strace test suite is now provided under the terms of the GNU General Public License version 2 or later, see tests/COPYING for more details.
45 lines
846 B
C
45 lines
846 B
C
/*
|
|
* Copyright (c) 2006 Bernhard Kaindl <bk@suse.de>
|
|
* Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
|
|
* All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
*/
|
|
|
|
#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 | RVAL_FD;
|
|
}
|