Use ANSI C definitions, update comment.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
bb20b4e008
commit
cc66b8faf9
@ -38,8 +38,8 @@
|
|||||||
* In this algorithm the lock is a single word. Its low-order bit is
|
* In this algorithm the lock is a single word. Its low-order bit is
|
||||||
* set when a writer holds the lock. The remaining high-order bits
|
* set when a writer holds the lock. The remaining high-order bits
|
||||||
* contain a count of readers desiring the lock. The algorithm requires
|
* contain a count of readers desiring the lock. The algorithm requires
|
||||||
* atomic "compare_and_store" and "add" operations, which we implement
|
* atomic "compare_and_store" and "add" operations, which we take
|
||||||
* using assembly language sequences in "rtld_start.S".
|
* from machine/atomic.h.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -67,7 +67,7 @@ static sigset_t fullsigmask, oldsigmask;
|
|||||||
static int thread_flag;
|
static int thread_flag;
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
def_lock_create()
|
def_lock_create(void)
|
||||||
{
|
{
|
||||||
void *base;
|
void *base;
|
||||||
char *p;
|
char *p;
|
||||||
@ -269,7 +269,7 @@ lock_restart_for_upgrade(RtldLockState *lockstate)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
lockdflt_init()
|
lockdflt_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user