Hook up inotify_init1 open mode flags printer

* file.c [LINUX] (sys_inotify_init1): New function.
* linux/syscall.h: Declare new sys_inotify_init1 handler.
* linux/bfin/syscallent.h: Hook up new handler.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
This commit is contained in:
Mark Wielaard 2010-03-21 14:41:26 +01:00 committed by Dmitry V. Levin
parent 360986bacd
commit bab8940674
6 changed files with 13 additions and 4 deletions

8
file.c
View File

@ -2884,6 +2884,14 @@ sys_inotify_rm_watch(struct tcb *tcp)
return 0;
}
int
sys_inotify_init1(struct tcb *tcp)
{
if (entering(tcp))
printflags(open_mode_flags, tcp->u_arg[0], "O_???");
return 0;
}
int
sys_fallocate(struct tcb *tcp)
{

View File

@ -393,7 +393,7 @@
{ 1, 0, printargs, "epoll_create1" }, /* 362 */
{ 3, TD, printargs, "dup3" }, /* 363 */
{ 2, TD, printargs, "pipe2" }, /* 364 */
{ 1, TD, printargs, "inotify_init1" }, /* 365 */
{ 1, TD, sys_inotify_init1, "inotify_init1" }, /* 365 */
{ 5, TD, printargs, "preadv" }, /* 366 */
{ 5, TD, printargs, "pwritev" }, /* 367 */
{ 4, TP|TS, printargs, "rt_tgsigqueueinfo" }, /* 368 */

View File

@ -319,7 +319,7 @@
{ 1, 0, printargs, "epoll_create1" }, /* 311 */
{ 3, TD, printargs, "dup3" }, /* 312 */
{ 2, TD, printargs, "pipe2" }, /* 313 */
{ 1, TD, printargs, "inotify_init1" }, /* 314 */
{ 1, TD, sys_inotify_init1, "inotify_init1" }, /* 314 */
{ 5, TD, printargs, "preadv" }, /* 315 */
{ 5, TD, printargs, "pwritev" }, /* 316 */
{ 4, TP|TS, printargs, "rt_tgsigqueueinfo" }, /* 317 */

View File

@ -362,7 +362,7 @@
{ 1, 0, sys_epoll_create1, "epoll_create1" }, /* 329 */
{ 3, TD, sys_dup3, "dup3" }, /* 330 */
{ 2, TD, sys_pipe2, "pipe2" }, /* 331 */
{ 1, TD, printargs, "inotify_init1" }, /* 332 */
{ 1, TD, sys_inotify_init1, "inotify_init1" }, /* 332 */
{ 5, 0, printargs, "SYS_333" }, /* 333 */
{ 5, 0, printargs, "SYS_334" }, /* 334 */
{ 5, 0, printargs, "SYS_335" }, /* 335 */

View File

@ -135,6 +135,7 @@ int sys_poll();
int sys_mincore();
int sys_inotify_add_watch();
int sys_inotify_rm_watch();
int sys_inotify_init1();
int sys_pselect6();
int sys_ppoll();
int sys_unshare();

View File

@ -292,4 +292,4 @@
{ 1, 0, sys_epoll_create1, "epoll_create1" }, /* 291 */
{ 3, TD, sys_dup3, "dup3" }, /* 292 */
{ 2, TD, sys_pipe2, "pipe2" }, /* 293 */
{ 1, TD, printargs, "inotify_init1" }, /* 294 */
{ 1, TD, sys_inotify_init1, "inotify_init1" }, /* 294 */