Blame sysdeps/unix/sysv/linux/bits/statx.h

Packit Service 34c27c
/* statx-related definitions and declarations.  Linux version.
Packit Service 34c27c
   Copyright (C) 2018-2019 Free Software Foundation, Inc.
Packit Service 34c27c
   This file is part of the GNU C Library.
Packit Service 34c27c
Packit Service 34c27c
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 34c27c
   modify it under the terms of the GNU Lesser General Public
Packit Service 34c27c
   License as published by the Free Software Foundation; either
Packit Service 34c27c
   version 2.1 of the License, or (at your option) any later version.
Packit Service 34c27c
Packit Service 34c27c
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 34c27c
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 34c27c
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 34c27c
   Lesser General Public License for more details.
Packit Service 34c27c
Packit Service 34c27c
   You should have received a copy of the GNU Lesser General Public
Packit Service 34c27c
   License along with the GNU C Library; if not, see
Packit Service 34c27c
   <http://www.gnu.org/licenses/>.  */
Packit Service 34c27c
Packit Service 34c27c
/* This interface is based on <linux/stat.h> in Linux.  */
Packit Service 34c27c
Packit Service 34c27c
#ifndef _SYS_STAT_H
Packit Service 34c27c
# error Never include <bits/statx.h> directly, include <sys/stat.h> instead.
Packit Service 34c27c
#endif
Packit Service 34c27c
Packit Service 34c27c
/* Use the Linux kernel header if available.  */
Packit Service 33615c
Packit Service 33615c
/* Use "" to work around incorrect macro expansion of the
Packit Service 33615c
   __has_include argument (GCC PR 80005).  */
Packit Service ee1acd
#ifdef __has_include
Packit Service ee1acd
# if __has_include ("linux/stat.h")
Packit Service ee1acd
#  include "linux/stat.h"
Packit Service ee1acd
#  ifdef STATX_TYPE
Packit Service ee1acd
#   define __statx_timestamp_defined 1
Packit Service ee1acd
#   define __statx_defined 1
Packit Service ee1acd
#  endif
Packit Service 34c27c
# endif
Packit Service 34c27c
#endif
Packit Service 34c27c
Packit Service 34c27c
#include <bits/statx-generic.h>