From 29a96bcfe179a82adbd575057e2ef9d48a6a72fb Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 6 Jul 2011 17:22:59 +0200 Subject: add _alpm_access() wrapper This is a wrapper function for access() which logs some debug information and eases handling in case of split directory and filename. Signed-off-by: Florian Pritz Signed-off-by: Dan McGee --- lib/libalpm/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/util.h') diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index d66ddee9..a75c5aae 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -116,6 +116,7 @@ unsigned long _alpm_hash_sdbm(const char *str); long _alpm_parsedate(const char *line); int _alpm_raw_cmp(const char *first, const char *second); int _alpm_raw_ncmp(const char *first, const char *second, size_t max); +int _alpm_access(alpm_handle_t *handle, const char *dir, const char *file, int amode); #ifndef HAVE_STRSEP char *strsep(char **, const char *); -- cgit v1.2.3-24-g4f1b