Files
kernel/include/linux/stat.h
T

53 lines
1.2 KiB
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
2005-04-16 15:20:36 -07:00
#ifndef _LINUX_STAT_H
#define _LINUX_STAT_H
#include <asm/stat.h>
2012-10-13 10:46:48 +01:00
#include <uapi/linux/stat.h>
2005-04-16 15:20:36 -07:00
#define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO)
#define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
#define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH)
#define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH)
#define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH)
2007-05-08 00:33:25 -07:00
#define UTIME_NOW ((1l << 30) - 1l)
#define UTIME_OMIT ((1l << 30) - 2l)
2005-04-16 15:20:36 -07:00
#include <linux/types.h>
#include <linux/time.h>
#include <linux/uidgid.h>
2005-04-16 15:20:36 -07:00
#define KSTAT_QUERY_FLAGS (AT_STATX_SYNC_TYPE)
2005-04-16 15:20:36 -07:00
struct kstat {
u32 result_mask; /* What fields the user got */
2005-04-16 15:20:36 -07:00
umode_t mode;
unsigned int nlink;
uint32_t blksize; /* Preferred I/O size */
u64 attributes;
u64 attributes_mask;
#define KSTAT_ATTR_FS_IOC_FLAGS \
(STATX_ATTR_COMPRESSED | \
STATX_ATTR_IMMUTABLE | \
STATX_ATTR_APPEND | \
STATX_ATTR_NODUMP | \
2019-10-29 13:41:38 -07:00
STATX_ATTR_ENCRYPTED | \
STATX_ATTR_VERITY \
)/* Attrs corresponding to FS_*_FL flags */
u64 ino;
dev_t dev;
dev_t rdev;
kuid_t uid;
kgid_t gid;
2005-04-16 15:20:36 -07:00
loff_t size;
struct timespec64 atime;
struct timespec64 mtime;
struct timespec64 ctime;
struct timespec64 btime; /* File creation time */
u64 blocks;
2005-04-16 15:20:36 -07:00
};
#endif