1.1 --- a/libfsclient/include/fsclient/file.h Thu Feb 24 22:35:00 2022 +0100
1.2 +++ b/libfsclient/include/fsclient/file.h Fri Feb 25 18:45:11 2022 +0100
1.3 @@ -21,6 +21,8 @@
1.4
1.5 #pragma once
1.6
1.7 +#include <sys/stat.h>
1.8 +
1.9 #include <l4/sys/types.h>
1.10
1.11 #include <systypes/base.h>
1.12 @@ -86,6 +88,7 @@
1.13 long file_open(file_t *file, const char *filename, flags_t flags, l4_cap_idx_t server);
1.14 long file_remove(const char *filename, l4_cap_idx_t server);
1.15 long file_rename(const char *source, const char *target, l4_cap_idx_t server);
1.16 +long file_stat(const char *filename, struct stat *st, l4_cap_idx_t server);
1.17
1.18 /* File lifecycle operations. */
1.19
1.20 @@ -93,6 +96,7 @@
1.21 long file_context_open(file_t *file, flags_t flags, file_t *context);
1.22 long file_context_remove(file_t *context);
1.23 long file_context_rename(file_t *context);
1.24 +long file_context_stat(struct stat *st, file_t *context);
1.25 void file_init(file_t *file);
1.26
1.27 /* File and region operations. */