Commit 36ee5ac3 authored by Julius Plenz's avatar Julius Plenz

Add an alias __openat_2() for openat()

Don't ask me for the reason why a straight-forward openat() call in GNU tar ends up calling __openat_2() via the glibc. I don't know. Anyway, that's the first time I had to ask something on StackOverflow, and I was promptly pointed in the right direction! <http://stackoverflow.com/questions/9161116/intercepting-the-openat-system-call-for-gnu-tar>
parent b43ab2bc
......@@ -18,6 +18,8 @@ void init(void) __attribute__((constructor));
int open(const char *pathname, int flags, mode_t mode);
int creat(const char *pathname, int flags, mode_t mode);
int openat(int dirfd, const char *pathname, int flags, mode_t mode);
int __openat_2(int dirfd, const char *pathname, int flags, mode_t mode)
__attribute__ ((alias ("openat")));
int close(int fd);
static void store_pageinfo(int fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment