Git 1.7.12.2
[git.git] / git-compat-util.h
index 35b095e8ae989ae02228f814528b43d5bd026aab..000042d79352b4a7bb789d60e5324af92f29871a 100644 (file)
@@ -604,6 +604,12 @@ int rmdir_or_warn(const char *path);
  */
 int remove_or_warn(unsigned int mode, const char *path);
 
+/* Call access(2), but warn for any error besides ENOENT. */
+int access_or_warn(const char *path, int mode);
+
+/* Warn on an inaccessible file that ought to be accessible */
+void warn_on_inaccessible(const char *path);
+
 /* Get the passwd entry for the UID of the current process. */
 struct passwd *xgetpwuid_self(void);