summaryrefslogtreecommitdiff
path: root/src/basic/stat-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/stat-util.h')
-rw-r--r--src/basic/stat-util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/basic/stat-util.h b/src/basic/stat-util.h
index d8d3c20496..4b941f6104 100644
--- a/src/basic/stat-util.h
+++ b/src/basic/stat-util.h
@@ -61,8 +61,13 @@ int fd_is_fs_type(int fd, statfs_f_type_t magic_value);
int path_is_fs_type(const char *path, statfs_f_type_t magic_value);
bool is_temporary_fs(const struct statfs *s) _pure_;
+bool is_network_fs(const struct statfs *s) _pure_;
+
int fd_is_temporary_fs(int fd);
+int fd_is_network_fs(int fd);
+
int fd_is_network_ns(int fd);
+
int path_is_temporary_fs(const char *path);
/* Because statfs.t_type can be int on some architectures, we have to cast
@@ -70,3 +75,6 @@ int path_is_temporary_fs(const char *path);
* signed/unsigned comparison, because the magic can be 32 bit unsigned.
*/
#define F_TYPE_EQUAL(a, b) (a == (typeof(a)) b)
+
+int stat_verify_regular(const struct stat *st);
+int fd_verify_regular(int fd);