Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/util.h
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-07-06 17:22:59 +0200
committerDan McGee <dan@archlinux.org>2011-07-18 10:42:48 -0500
commit29a96bcfe179a82adbd575057e2ef9d48a6a72fb (patch)
treedd7d6a909713fea046395c8cd8d399d6f62d43b6 /lib/libalpm/util.h
parent48e2a1a119ce84681f25855221b6e2fc2689a760 (diff)
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 <bluewind@xinu.at> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.h')
-rw-r--r--lib/libalpm/util.h1
1 files changed, 1 insertions, 0 deletions
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 *);