ronnie
2022-10-23 cb8ede114f8c3e5ead5b294f66344b8a42004745
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Referred from linux kernel -github/torvalds/linux/include/uapi/linux/fs.h
 * Copyright (c) Zilogic Systems Pvt. Ltd., 2018
 * Email: code@zilogic.com
 */
#ifdef HAVE_LINUX_FS_H
# include <linux/fs.h>
#endif
 
#ifndef LAPI_FS_H
#define LAPI_FS_H
 
#ifndef FS_IOC_GETFLAGS
#define    FS_IOC_GETFLAGS    _IOR('f', 1, long)
#endif
 
#ifndef FS_IOC_SETFLAGS
#define    FS_IOC_SETFLAGS    _IOW('f', 2, long)
#endif
 
#ifndef FS_COMPR_FL
#define    FS_COMPR_FL        0x00000004 /* Compress file */
#endif
 
#ifndef FS_IMMUTABLE_FL
#define FS_IMMUTABLE_FL       0x00000010 /* Immutable file */
#endif
 
#ifndef FS_APPEND_FL
#define FS_APPEND_FL       0x00000020 /* writes to file may only append */
#endif
 
#ifndef FS_NODUMP_FL
#define FS_NODUMP_FL       0x00000040 /* do not dump file */
#endif
 
#endif