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.

print_timex.c 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
  5. * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
  6. * Copyright (c) 2015-2019 The strace developers.
  7. * All rights reserved.
  8. *
  9. * SPDX-License-Identifier: LGPL-2.1-or-later
  10. */
  11. #include "defs.h"
  12. #include "kernel_timex.h"
  13. #include <sys/timex.h>
  14. #include "xlat/adjtimex_modes.h"
  15. #include "xlat/adjtimex_status.h"
  16. #define PRINT_TIMEX print_timex64
  17. #define TIMEX_T kernel_timex64_t
  18. #include "print_timex.h"
  19. #undef TIMEX_T
  20. #undef PRINT_TIMEX
  21. #if HAVE_ARCH_TIME32_SYSCALLS
  22. # define PRINT_TIMEX print_timex32
  23. # define TIMEX_T kernel_timex32_t
  24. # include "print_timex.h"
  25. # undef TIMEX_T
  26. # undef PRINT_TIMEX
  27. #endif /* HAVE_ARCH_TIME32_SYSCALLS */
  28. #ifdef SPARC64
  29. # define PRINT_TIMEX print_sparc64_timex
  30. # define TIMEX_T kernel_sparc64_timex_t
  31. # include "print_timex.h"
  32. # undef TIMEX_T
  33. # undef PRINT_TIMEX
  34. #endif /* SPARC64 */