Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

inotify_ioctl.c 499B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2018 The strace developers.
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. */
  7. #include "defs.h"
  8. #include <linux/ioctl.h>
  9. #ifndef INOTIFY_IOC_SETNEXTWD
  10. # define INOTIFY_IOC_SETNEXTWD _IOW('I', 0, int32_t)
  11. #endif
  12. int
  13. inotify_ioctl(struct tcb *const tcp, const unsigned int code,
  14. const kernel_ulong_t arg)
  15. {
  16. switch (code) {
  17. case INOTIFY_IOC_SETNEXTWD:
  18. tprintf(", %d", (int) arg);
  19. return RVAL_IOCTL_DECODED;
  20. }
  21. return RVAL_DECODED;
  22. }