hjl / source-git / glibc

Forked from source-git/glibc 4 years ago
Clone

Blame io/bits/statx-generic.h

Packit c4f463
/* Generic statx-related definitions and declarations.
Packit c4f463
   Copyright (C) 2018-2019 Free Software Foundation, Inc.
Packit c4f463
   This file is part of the GNU C Library.
Packit c4f463
Packit c4f463
   The GNU C Library is free software; you can redistribute it and/or
Packit c4f463
   modify it under the terms of the GNU Lesser General Public
Packit c4f463
   License as published by the Free Software Foundation; either
Packit c4f463
   version 2.1 of the License, or (at your option) any later version.
Packit c4f463
Packit c4f463
   The GNU C Library is distributed in the hope that it will be useful,
Packit c4f463
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit c4f463
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit c4f463
   Lesser General Public License for more details.
Packit c4f463
Packit c4f463
   You should have received a copy of the GNU Lesser General Public
Packit c4f463
   License along with the GNU C Library; if not, see
Packit c4f463
   <http://www.gnu.org/licenses/>.  */
Packit c4f463
Packit c4f463
/* This interface is based on <linux/stat.h> in Linux.  */
Packit c4f463
Packit c4f463
#ifndef _SYS_STAT_H
Packit c4f463
# error Never include <bits/statx-generic.h> directly, include <sys/stat.h> instead.
Packit c4f463
#endif
Packit c4f463
Packit c4f463
#include <bits/types/struct_statx_timestamp.h>
Packit c4f463
#include <bits/types/struct_statx.h>
Packit c4f463
Packit c4f463
#ifndef STATX_TYPE
Packit c4f463
# define STATX_TYPE 0x0001U
Packit c4f463
# define STATX_MODE 0x0002U
Packit c4f463
# define STATX_NLINK 0x0004U
Packit c4f463
# define STATX_UID 0x0008U
Packit c4f463
# define STATX_GID 0x0010U
Packit c4f463
# define STATX_ATIME 0x0020U
Packit c4f463
# define STATX_MTIME 0x0040U
Packit c4f463
# define STATX_CTIME 0x0080U
Packit c4f463
# define STATX_INO 0x0100U
Packit c4f463
# define STATX_SIZE 0x0200U
Packit c4f463
# define STATX_BLOCKS 0x0400U
Packit c4f463
# define STATX_BASIC_STATS 0x07ffU
Packit c4f463
# define STATX_ALL 0x0fffU
Packit c4f463
# define STATX_BTIME 0x0800U
Packit c4f463
# define STATX__RESERVED 0x80000000U
Packit c4f463
Packit c4f463
# define STATX_ATTR_COMPRESSED 0x0004
Packit c4f463
# define STATX_ATTR_IMMUTABLE 0x0010
Packit c4f463
# define STATX_ATTR_APPEND 0x0020
Packit c4f463
# define STATX_ATTR_NODUMP 0x0040
Packit c4f463
# define STATX_ATTR_ENCRYPTED 0x0800
Packit c4f463
# define STATX_ATTR_AUTOMOUNT 0x1000
Packit c4f463
#endif /* !STATX_TYPE */
Packit c4f463
Packit c4f463
__BEGIN_DECLS
Packit c4f463
Packit c4f463
/* Fill *BUF with information about PATH in DIRFD.  */
Packit c4f463
int statx (int __dirfd, const char *__restrict __path, int __flags,
Packit c4f463
           unsigned int __mask, struct statx *__restrict __buf)
Packit c4f463
  __THROW __nonnull ((2, 5));
Packit c4f463
Packit c4f463
__END_DECLS