chiark / gitweb /
path-util: unify code for detecting OS trees
[elogind.git] / src / shared / path-util.h
index ff523943dce2ae463721856cebd18ef407c9f2f7..ea0f1730826dbc6082ef522b87d695cc53d76dcb 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foopathutilhfoo
-#define foopathutilhfoo
+#pragma once
 
 /***
   This file is part of systemd.
 
 /***
   This file is part of systemd.
@@ -41,5 +40,4 @@ char **path_strv_canonicalize_uniq(char **l);
 
 int path_is_mount_point(const char *path, bool allow_symlink);
 int path_is_read_only_fs(const char *path);
 
 int path_is_mount_point(const char *path, bool allow_symlink);
 int path_is_read_only_fs(const char *path);
-
-#endif
+int path_is_os_tree(const char *path);