From 5dad6ffbb2b76215cfcd38c3001778536ada8e8a Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 12 Jun 2019 12:04:09 +0200 Subject: : Use Linux UAPI header for statx if available and useful This will automatically import new STATX_* constants. It also avoids a conflict between and . --- sysdeps/unix/sysv/linux/bits/statx.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/bits/statx.h (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/bits/statx.h b/sysdeps/unix/sysv/linux/bits/statx.h new file mode 100644 index 0000000000..d36f44efc6 --- /dev/null +++ b/sysdeps/unix/sysv/linux/bits/statx.h @@ -0,0 +1,34 @@ +/* statx-related definitions and declarations. Linux version. + Copyright (C) 2018-2019 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* This interface is based on in Linux. */ + +#ifndef _SYS_STAT_H +# error Never include directly, include instead. +#endif + +/* Use the Linux kernel header if available. */ +#if __glibc_has_include () +# include +# ifdef STATX_TYPE +# define __statx_timestamp_defined 1 +# define __statx_defined 1 +# endif +#endif + +#include -- cgit v1.2.3-70-g09d2