diff options
author | Mike Barcroft <mike@FreeBSD.org> | 2002-09-11 05:04:06 +0000 |
---|---|---|
committer | Mike Barcroft <mike@FreeBSD.org> | 2002-09-11 05:04:06 +0000 |
commit | 24c502cbc7a0a35cea436ac596529fe24ca27f35 (patch) | |
tree | f369b7b4fb784165d645313e6d109861d782e66c /include/dlfcn.h | |
parent | fb3d22590947ae8547c28840dfd5e9075bcc046c (diff) |
Conditionalize some objects to match the functions that they are used
with. Enable `restrict' type-qualifier.
Notes
Notes:
svn path=/head/; revision=103212
Diffstat (limited to 'include/dlfcn.h')
-rw-r--r-- | include/dlfcn.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h index 95bd370662dd..27aee907cd20 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), |