1.1 --- a/libfsclient/include/fsclient/file.h Sat May 14 23:52:24 2022 +0200
1.2 +++ b/libfsclient/include/fsclient/file.h Thu May 19 14:08:28 2022 +0200
1.3 @@ -23,6 +23,7 @@
1.4
1.5 #include <sys/stat.h>
1.6
1.7 +#include <l4/re/c/rm.h>
1.8 #include <l4/sys/types.h>
1.9
1.10 #include <systypes/base.h>
1.11 @@ -74,6 +75,10 @@
1.12
1.13 notify_flags_t notifications;
1.14
1.15 + /* Flags indicated when opening the file. */
1.16 +
1.17 + flags_t flags;
1.18 +
1.19 } file_t;
1.20
1.21
1.22 @@ -104,7 +109,8 @@
1.23 /* File and region operations. */
1.24
1.25 long file_flush(file_t *file);
1.26 -long file_mmap(file_t *file, offset_t position, offset_t length);
1.27 +long file_mmap(file_t *file, offset_t position, offset_t length, l4re_rm_flags_t region_flags);
1.28 +l4re_rm_flags_t file_region_flags(flags_t flags);
1.29 long file_resize(file_t *file, offset_t size);
1.30
1.31 /* File and region properties. */