summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/dlfcn/dlfcn_stubs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/dlfcn/dlfcn_stubs.c b/lib/libc/dlfcn/dlfcn_stubs.c
index d3898df0edb..ad5479acc81 100644
--- a/lib/libc/dlfcn/dlfcn_stubs.c
+++ b/lib/libc/dlfcn/dlfcn_stubs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dlfcn_stubs.c,v 1.9 2004/10/17 20:24:06 kettenis Exp $ */
+/* $OpenBSD: dlfcn_stubs.c,v 1.10 2005/11/28 16:54:18 deraadt Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -48,6 +48,7 @@ int dl_iterate_phdr(int (*callback)(struct dl_phdr_info *, size_t, void *),
#include <stdio.h>
+/*ARGSUSED*/
void *
dlopen(const char *libname, int how)
{
@@ -55,6 +56,7 @@ dlopen(const char *libname, int how)
return NULL;
}
+/*ARGSUSED*/
int
dlclose(void *handle)
{
@@ -62,6 +64,7 @@ dlclose(void *handle)
return 0;
}
+/*ARGSUSED*/
void *
dlsym(void *handle, const char *name)
{
@@ -69,18 +72,21 @@ dlsym(void *handle, const char *name)
return NULL;
}
+/*ARGSUSED*/
int
dlctl(void *handle, int command, void *data)
{
return -1;
}
+/*ARGSUSED*/
const char *
dlerror(void)
{
return "Wrong dl symbols!\n";
}
+/*ARGSUSED*/
int
dl_iterate_phdr(int (*callback)(struct dl_phdr_info *, size_t, void *),
void *data)
@@ -88,6 +94,7 @@ dl_iterate_phdr(int (*callback)(struct dl_phdr_info *, size_t, void *),
return -1;
}
+/*ARGSUSED*/
int
dladdr(const void *addr, void *info)
{