(root)/
strace-6.5/
src/
kernel_timespec.h
       1  /*
       2   * Copyright (c) 2019-2023 Dmitry V. Levin <ldv@strace.io>
       3   * All rights reserved.
       4   *
       5   * SPDX-License-Identifier: LGPL-2.1-or-later
       6   */
       7  
       8  #ifndef STRACE_KERNEL_TIMESPEC_H
       9  # define STRACE_KERNEL_TIMESPEC_H
      10  
      11  # include "arch_defs.h"
      12  
      13  typedef struct kernel_timespec64_t {
      14  	long long tv_sec;
      15  	long long tv_nsec;
      16  } kernel_timespec64_t;
      17  
      18  # if HAVE_ARCH_TIME32_SYSCALLS || HAVE_ARCH_TIMESPEC32
      19  
      20  typedef struct kernel_timespec32_t {
      21  	int tv_sec;
      22  	int tv_nsec;
      23  } kernel_timespec32_t;
      24  
      25  # endif /* HAVE_ARCH_TIME32_SYSCALLS || HAVE_ARCH_TIMESPEC32 */
      26  
      27  #endif /* !STRACE_KERNEL_TIMESPEC_H */