|
Packit Service |
34c27c |
/* Generic statx-related definitions and declarations.
|
|
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-generic.h> directly, include <sys/stat.h> instead.
|
|
Packit Service |
34c27c |
#endif
|
|
Packit Service |
34c27c |
|
|
Packit Service |
34c27c |
#include <bits/types/struct_statx_timestamp.h>
|
|
Packit Service |
34c27c |
#include <bits/types/struct_statx.h>
|
|
Packit Service |
34c27c |
|
|
Packit Service |
34c27c |
#ifndef STATX_TYPE
|
|
Packit Service |
34c27c |
# define STATX_TYPE 0x0001U
|
|
Packit Service |
34c27c |
# define STATX_MODE 0x0002U
|
|
Packit Service |
34c27c |
# define STATX_NLINK 0x0004U
|
|
Packit Service |
34c27c |
# define STATX_UID 0x0008U
|
|
Packit Service |
34c27c |
# define STATX_GID 0x0010U
|
|
Packit Service |
34c27c |
# define STATX_ATIME 0x0020U
|
|
Packit Service |
34c27c |
# define STATX_MTIME 0x0040U
|
|
Packit Service |
34c27c |
# define STATX_CTIME 0x0080U
|
|
Packit Service |
34c27c |
# define STATX_INO 0x0100U
|
|
Packit Service |
34c27c |
# define STATX_SIZE 0x0200U
|
|
Packit Service |
34c27c |
# define STATX_BLOCKS 0x0400U
|
|
Packit Service |
34c27c |
# define STATX_BASIC_STATS 0x07ffU
|
|
Packit Service |
34c27c |
# define STATX_ALL 0x0fffU
|
|
Packit Service |
34c27c |
# define STATX_BTIME 0x0800U
|
|
Packit Service |
34c27c |
# define STATX__RESERVED 0x80000000U
|
|
Packit Service |
34c27c |
|
|
Packit Service |
34c27c |
# define STATX_ATTR_COMPRESSED 0x0004
|
|
Packit Service |
34c27c |
# define STATX_ATTR_IMMUTABLE 0x0010
|
|
Packit Service |
34c27c |
# define STATX_ATTR_APPEND 0x0020
|
|
Packit Service |
34c27c |
# define STATX_ATTR_NODUMP 0x0040
|
|
Packit Service |
34c27c |
# define STATX_ATTR_ENCRYPTED 0x0800
|
|
Packit Service |
34c27c |
# define STATX_ATTR_AUTOMOUNT 0x1000
|
|
Packit Service |
34c27c |
#endif /* !STATX_TYPE */
|
|
Packit Service |
34c27c |
|
|
Packit Service |
34c27c |
__BEGIN_DECLS
|
|
Packit Service |
34c27c |
|
|
Packit Service |
34c27c |
/* Fill *BUF with information about PATH in DIRFD. */
|
|
Packit Service |
34c27c |
int statx (int __dirfd, const char *__restrict __path, int __flags,
|
|
Packit Service |
34c27c |
unsigned int __mask, struct statx *__restrict __buf)
|
|
Packit Service |
34c27c |
__THROW __nonnull ((2, 5));
|
|
Packit Service |
34c27c |
|
|
Packit Service |
34c27c |
__END_DECLS
|