Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()

This commit is contained in:
jsteube
2017-01-27 11:46:45 +01:00
parent b7b2f1a79c
commit 17548d3ee8
12 changed files with 152 additions and 174 deletions
+7
View File
@@ -40,4 +40,11 @@ int hc_fstat (int fd, hc_stat_t *buf);
void hc_qsort_r (void *base, size_t nmemb, size_t size, int (*compar) (const void *, const void *, void *), void *arg);
void *hc_bsearch_r (const void *key, const void *base, size_t nmemb, size_t size, int (*compar) (const void *, const void *, void *), void *arg);
bool hc_path_is_file (const char *path);
bool hc_path_is_directory (const char *path);
bool hc_path_is_empty (const char *path);
bool hc_path_exist (const char *path);
bool hc_path_read (const char *path);
bool hc_path_write (const char *path);
#endif // _SHARED_H