Fix some style bugs:

o Space used instead of a tab after `#define' and `typedef'.
o Sentences not ended with a period.
o Unaligned function names and other spacing issues.
This commit is contained in:
Mike Barcroft 2002-09-10 18:41:45 +00:00
parent 279c15995c
commit a30ec216db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103196

View File

@ -1,4 +1,4 @@
/* /*-
* Copyright (c) 1994 * Copyright (c) 1994
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
@ -35,35 +35,36 @@
#ifndef _DLFCN_H_ #ifndef _DLFCN_H_
#define _DLFCN_H_ #define _DLFCN_H_
#include <sys/cdefs.h> #include <sys/cdefs.h>
/* /*
* Modes and flags for dlopen(). * Modes and flags for dlopen().
*/ */
#define RTLD_LAZY 1 /* Bind function calls lazily */ #define RTLD_LAZY 1 /* Bind function calls lazily. */
#define RTLD_NOW 2 /* Bind function calls immediately */ #define RTLD_NOW 2 /* Bind function calls immediately. */
#define RTLD_MODEMASK 0x3 #define RTLD_MODEMASK 0x3
#define RTLD_GLOBAL 0x100 /* Make symbols globally available */ #define RTLD_GLOBAL 0x100 /* Make symbols globally available. */
#define RTLD_LOCAL 0 /* Opposite of RTLD_GLOBAL, and the default */ #define RTLD_LOCAL 0 /* Opposite of RTLD_GLOBAL, and the default. */
#define RTLD_TRACE 0x200 /* Trace loaded objects and exit */ #define RTLD_TRACE 0x200 /* Trace loaded objects and exit. */
/* /*
* Special handle arguments for dlsym(). * Special handle arguments for dlsym().
*/ */
#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. */
/* /*
* Structure filled in by dladdr(). * Structure filled in by dladdr().
*/ */
typedef struct dl_info { typedef struct dl_info {
const char *dli_fname; /* Pathname of shared object */ const char *dli_fname; /* Pathname of shared object. */
void *dli_fbase; /* Base address of shared object */ void *dli_fbase; /* Base address of shared object. */
const char *dli_sname; /* Name of nearest symbol */ const char *dli_sname; /* Name of nearest symbol. */
void *dli_saddr; /* Address of nearest symbol */ void *dli_saddr; /* Address of nearest symbol. */
} Dl_info; } Dl_info;
/* /*-
* The actual type declared by this typedef is immaterial, provided that * The actual type declared by this typedef is immaterial, provided that
* it is a function pointer. Its purpose is to provide a return type for * it is a function pointer. Its purpose is to provide a return type for
* dlfunc() which can be cast to a function pointer type without depending * dlfunc() which can be cast to a function pointer type without depending
@ -73,28 +74,29 @@ typedef struct dl_info {
* appropriately. * appropriately.
*/ */
struct __dlfunc_arg { struct __dlfunc_arg {
int __dlfunc_dummy; int __dlfunc_dummy;
}; };
typedef void (*dlfunc_t)(struct __dlfunc_arg); typedef void (*dlfunc_t)(struct __dlfunc_arg);
__BEGIN_DECLS __BEGIN_DECLS
/* XSI functions first */ /* XSI functions first. */
int dlclose(void *); int dlclose(void *);
const char *dlerror(void); const char *
void *dlopen(const char *, int); dlerror(void);
void *dlsym(void * /* __restrict */, const char * /* __restrict */); void *dlopen(const char *, int);
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),
void (*_wlock_acquire)(void *_lock), void (*_wlock_acquire)(void *_lock),
void (*_lock_release)(void *_lock), void (*_lock_release)(void *_lock),
void (*_lock_destroy)(void *_lock), void (*_lock_destroy)(void *_lock),
void (*_context_destroy)(void *_context)); void (*_context_destroy)(void *_context));
#endif /* __BSD_VISIBLE */ #endif /* __BSD_VISIBLE */
__END_DECLS __END_DECLS