Conditionalize some objects to match the functions that they are used

with.  Enable `restrict' type-qualifier.
This commit is contained in:
Mike Barcroft 2002-09-11 05:04:06 +00:00
parent fb3d225909
commit 24c502cbc7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103212

View File

@ -54,6 +54,7 @@
#define RTLD_NEXT ((void *) -1) /* Search subsequent objects. */ #define RTLD_NEXT ((void *) -1) /* Search subsequent objects. */
#define RTLD_DEFAULT ((void *) -2) /* Use default search algorithm. */ #define RTLD_DEFAULT ((void *) -2) /* Use default search algorithm. */
#if __BSD_VISIBLE
/* /*
* Structure filled in by dladdr(). * Structure filled in by dladdr().
*/ */
@ -79,17 +80,19 @@ struct __dlfunc_arg {
typedef void (*dlfunc_t)(struct __dlfunc_arg); typedef void (*dlfunc_t)(struct __dlfunc_arg);
#endif /* __BSD_VISIBLE */
__BEGIN_DECLS __BEGIN_DECLS
/* XSI functions first. */ /* XSI functions first. */
int dlclose(void *); int dlclose(void *);
const char * const char *
dlerror(void); dlerror(void);
void *dlopen(const char *, int); void *dlopen(const char *, int);
void *dlsym(void * /* __restrict */, const char * /* __restrict */); void *dlsym(void * __restrict, const char * __restrict);
#if __BSD_VISIBLE #if __BSD_VISIBLE
int dladdr(const void *, Dl_info *); 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 dllockinit(void *_context,
void *(*_lock_create)(void *_context), void *(*_lock_create)(void *_context),
void (*_rlock_acquire)(void *_lock), void (*_rlock_acquire)(void *_lock),