summaryrefslogtreecommitdiffstats
path: root/include/dlfcn.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-09-11 05:04:06 +0000
committermike <mike@FreeBSD.org>2002-09-11 05:04:06 +0000
commitc19bfb71ea5c209e11bde572375f88248e34fb2a (patch)
treef369b7b4fb784165d645313e6d109861d782e66c /include/dlfcn.h
parentaafb6a875411da024549db4aef2e38138e7d7a65 (diff)
downloadFreeBSD-src-c19bfb71ea5c209e11bde572375f88248e34fb2a.zip
FreeBSD-src-c19bfb71ea5c209e11bde572375f88248e34fb2a.tar.gz
Conditionalize some objects to match the functions that they are used
with. Enable `restrict' type-qualifier.
Diffstat (limited to 'include/dlfcn.h')
-rw-r--r--include/dlfcn.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h
index 95bd370..27aee90 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -54,6 +54,7 @@
#define RTLD_NEXT ((void *) -1) /* Search subsequent objects. */
#define RTLD_DEFAULT ((void *) -2) /* Use default search algorithm. */
+#if __BSD_VISIBLE
/*
* Structure filled in by dladdr().
*/
@@ -79,17 +80,19 @@ struct __dlfunc_arg {
typedef void (*dlfunc_t)(struct __dlfunc_arg);
+#endif /* __BSD_VISIBLE */
+
__BEGIN_DECLS
/* XSI functions first. */
int dlclose(void *);
const char *
dlerror(void);
void *dlopen(const char *, int);
-void *dlsym(void * /* __restrict */, const char * /* __restrict */);
+void *dlsym(void * __restrict, const char * __restrict);
#if __BSD_VISIBLE
int dladdr(const void *, Dl_info *);
-dlfunc_t dlfunc(void * /* __restrict */, const char * /* __restrict */);
+dlfunc_t dlfunc(void * __restrict, const char * __restrict);
void dllockinit(void *_context,
void *(*_lock_create)(void *_context),
void (*_rlock_acquire)(void *_lock),
OpenPOWER on IntegriCloud