summaryrefslogtreecommitdiff
path: root/libgcompat/dlvsym.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-14 21:33:52 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-14 21:33:52 -0600
commitd0fc6cbef513341ff6b3d12c9b9a1e4093c0a112 (patch)
tree14a30ee64beb59d1a31aecdffc5ee24e5fbeb99b /libgcompat/dlvsym.c
parent51fcab754dabef67a26210a6e1cd752290a10749 (diff)
downloadgcompat-d0fc6cbef513341ff6b3d12c9b9a1e4093c0a112.tar.gz
gcompat-d0fc6cbef513341ff6b3d12c9b9a1e4093c0a112.tar.bz2
gcompat-d0fc6cbef513341ff6b3d12c9b9a1e4093c0a112.tar.xz
gcompat-d0fc6cbef513341ff6b3d12c9b9a1e4093c0a112.zip
dlfcn: Combine functions for the same header into one file
Changes to existing code: * Make explicit comparison against NULL. * Adjust debug message for readability. Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'libgcompat/dlvsym.c')
-rw-r--r--libgcompat/dlvsym.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libgcompat/dlvsym.c b/libgcompat/dlvsym.c
deleted file mode 100644
index 0aba245..0000000
--- a/libgcompat/dlvsym.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <dlfcn.h> /* dlsym */
-#include <stdio.h> /* fprintf */
-#include <stdlib.h> /* getenv */
-
-void *dlvsym(void *handle, char *symbol, char *version)
-{
- if (getenv("GLIBC_FAKE_DEBUG")) {
- fprintf(stderr, "symbol %s with version %s is being redirected",
- symbol, version);
- }
-
- return dlsym(handle, symbol);
-}