Commit 7a0b64d5 authored by Julius Plenz's avatar Julius Plenz

For visual consistency, don’t wrap dlsym calls

parent 4781a41b
...@@ -80,18 +80,12 @@ static void init(void) ...@@ -80,18 +80,12 @@ static void init(void)
assert(fds != NULL); assert(fds != NULL);
_original_open = (int (*)(const char *, int, mode_t)) _original_open = (int (*)(const char *, int, mode_t)) dlsym(RTLD_NEXT, "open");
dlsym(RTLD_NEXT, "open"); _original_open64 = (int (*)(const char *, int, mode_t)) dlsym(RTLD_NEXT, "open64");
_original_open64 = (int (*)(const char *, int, mode_t)) _original_creat = (int (*)(const char *, int, mode_t)) dlsym(RTLD_NEXT, "creat");
dlsym(RTLD_NEXT, "open64"); _original_creat64 = (int (*)(const char *, int, mode_t)) dlsym(RTLD_NEXT, "creat64");
_original_creat = (int (*)(const char *, int, mode_t)) _original_openat = (int (*)(int, const char *, int, mode_t)) dlsym(RTLD_NEXT, "openat");
dlsym(RTLD_NEXT, "creat"); _original_openat64 = (int (*)(int, const char *, int, mode_t)) dlsym(RTLD_NEXT, "openat64");
_original_creat64 = (int (*)(const char *, int, mode_t))
dlsym(RTLD_NEXT, "creat64");
_original_openat = (int (*)(int, const char *, int, mode_t))
dlsym(RTLD_NEXT, "openat");
_original_openat64 = (int (*)(int, const char *, int, mode_t))
dlsym(RTLD_NEXT, "openat64");
_original_dup = (int (*)(int)) dlsym(RTLD_NEXT, "dup"); _original_dup = (int (*)(int)) dlsym(RTLD_NEXT, "dup");
_original_dup2 = (int (*)(int, int)) dlsym(RTLD_NEXT, "dup2"); _original_dup2 = (int (*)(int, int)) dlsym(RTLD_NEXT, "dup2");
_original_close = (int (*)(int)) dlsym(RTLD_NEXT, "close"); _original_close = (int (*)(int)) dlsym(RTLD_NEXT, "close");
......
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