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