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.

utimes.c 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
  3. * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
  4. * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
  5. * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
  6. * Copyright (c) 2006-2007 Ulrich Drepper <drepper@redhat.com>
  7. * Copyright (c) 2006 Bernhard Kaindl <bk@suse.de>
  8. * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
  9. * Copyright (c) 2014-2018 The strace developers.
  10. * All rights reserved.
  11. *
  12. * SPDX-License-Identifier: LGPL-2.1-or-later
  13. */
  14. #include "defs.h"
  15. SYS_FUNC(utimes)
  16. {
  17. printpath(tcp, tcp->u_arg[0]);
  18. tprints(", ");
  19. print_timeval_utimes(tcp, tcp->u_arg[1]);
  20. return RVAL_DECODED;
  21. }
  22. SYS_FUNC(futimesat)
  23. {
  24. print_dirfd(tcp, tcp->u_arg[0]);
  25. printpath(tcp, tcp->u_arg[1]);
  26. tprints(", ");
  27. print_timeval_utimes(tcp, tcp->u_arg[2]);
  28. return RVAL_DECODED;
  29. }
  30. SYS_FUNC(utimensat)
  31. {
  32. print_dirfd(tcp, tcp->u_arg[0]);
  33. printpath(tcp, tcp->u_arg[1]);
  34. tprints(", ");
  35. print_timespec_utime_pair(tcp, tcp->u_arg[2]);
  36. tprints(", ");
  37. printflags(at_flags, tcp->u_arg[3], "AT_???");
  38. return RVAL_DECODED;
  39. }
  40. #ifdef ALPHA
  41. SYS_FUNC(osf_utimes)
  42. {
  43. printpath(tcp, tcp->u_arg[0]);
  44. tprints(", ");
  45. print_timeval32_utimes(tcp, tcp->u_arg[1]);
  46. return RVAL_DECODED;
  47. }
  48. #endif /* ALPHA */