Blame io/bits/types/struct_statx.h

Packit Service c1f087
/* Definition of the generic version of struct statx.
Packit Service c1f087
   Copyright (C) 2018-2019 Free Software Foundation, Inc.
Packit Service c1f087
   This file is part of the GNU C Library.
Packit Service c1f087
Packit Service c1f087
   The GNU C Library is free software; you can redistribute it and/or
Packit Service c1f087
   modify it under the terms of the GNU Lesser General Public
Packit Service c1f087
   License as published by the Free Software Foundation; either
Packit Service c1f087
   version 2.1 of the License, or (at your option) any later version.
Packit Service c1f087
Packit Service c1f087
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service c1f087
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service c1f087
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service c1f087
   Lesser General Public License for more details.
Packit Service c1f087
Packit Service c1f087
   You should have received a copy of the GNU Lesser General Public
Packit Service c1f087
   License along with the GNU C Library; if not, see
Packit Service c1f087
   <http://www.gnu.org/licenses/>.  */
Packit Service c1f087
Packit Service c1f087
#ifndef _SYS_STAT_H
Packit Service c1f087
# error Never include <bits/types/struct_statx.h> directly, include <sys/stat.h> instead.
Packit Service c1f087
#endif
Packit Service c1f087
Packit Service c1f087
#ifndef __statx_defined
Packit Service c1f087
#define __statx_defined 1
Packit Service c1f087
Packit Service c1f087
/* Warning: The kernel may add additional fields to this struct in the
Packit Service c1f087
   future.  Only use this struct for calling the statx function, not
Packit Service c1f087
   for storing data.  (Expansion will be controlled by the mask
Packit Service c1f087
   argument of the statx function.)  */
Packit Service c1f087
struct statx
Packit Service c1f087
{
Packit Service c1f087
  __uint32_t stx_mask;
Packit Service c1f087
  __uint32_t stx_blksize;
Packit Service c1f087
  __uint64_t stx_attributes;
Packit Service c1f087
  __uint32_t stx_nlink;
Packit Service c1f087
  __uint32_t stx_uid;
Packit Service c1f087
  __uint32_t stx_gid;
Packit Service c1f087
  __uint16_t stx_mode;
Packit Service c1f087
  __uint16_t __statx_pad1[1];
Packit Service c1f087
  __uint64_t stx_ino;
Packit Service c1f087
  __uint64_t stx_size;
Packit Service c1f087
  __uint64_t stx_blocks;
Packit Service c1f087
  __uint64_t stx_attributes_mask;
Packit Service c1f087
  struct statx_timestamp stx_atime;
Packit Service c1f087
  struct statx_timestamp stx_btime;
Packit Service c1f087
  struct statx_timestamp stx_ctime;
Packit Service c1f087
  struct statx_timestamp stx_mtime;
Packit Service c1f087
  __uint32_t stx_rdev_major;
Packit Service c1f087
  __uint32_t stx_rdev_minor;
Packit Service c1f087
  __uint32_t stx_dev_major;
Packit Service c1f087
  __uint32_t stx_dev_minor;
Packit Service c1f087
  __uint64_t __statx_pad2[14];
Packit Service c1f087
};
Packit Service c1f087
Packit Service c1f087
#endif /* __statx_defined */