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.

fallocate.c 544B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2014-2018 The strace developers.
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. */
  7. #include "defs.h"
  8. #ifdef HAVE_LINUX_FALLOC_H
  9. # include <linux/falloc.h>
  10. #endif
  11. #include "xlat/falloc_flags.h"
  12. SYS_FUNC(fallocate)
  13. {
  14. int argn;
  15. /* fd */
  16. printfd(tcp, tcp->u_arg[0]);
  17. tprints(", ");
  18. /* mode */
  19. printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
  20. tprints(", ");
  21. /* offset */
  22. argn = printllval(tcp, "%lld, ", 2);
  23. /* len */
  24. printllval(tcp, "%lld", argn);
  25. return RVAL_DECODED;
  26. }