[PATCH v7 05/14] kernel_timespec.h: Add a kernel_old_timespec_t struct

Dmitry V. Levin ldv at altlinux.org
Sun Apr 19 22:06:01 UTC 2020


On Fri, Apr 17, 2020 at 09:47:15AM -0700, Alistair Francis wrote:
> Add a kernel_old_timespec_t struct based on the definition in the Linux
> kernel locatied at include/uapi/linux/time.h.
> 
> Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
> ---
>  kernel_timespec.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/kernel_timespec.h b/kernel_timespec.h
> index 99fb2c6c..49ba86d8 100644
> --- a/kernel_timespec.h
> +++ b/kernel_timespec.h
> @@ -22,4 +22,9 @@ typedef struct {
>  
>  # endif /* HAVE_ARCH_TIME32_SYSCALLS */
>  
> +typedef struct {
> +	kernel_long_t tv_sec;
> +	long tv_nsec;
> +} kernel_old_timespec_t;
> +
>  #endif /* !STRACE_KERNEL_TIMESPEC_H */

Apparently, we don't need this, because strace itself doesn't use
kernel_old_timespec_t and tests already have tests/kernel_old_timespec.h
file.


-- 
ldv


More information about the Strace-devel mailing list