svn commit: r311879 - head/libexec/rtld-elf
Konstantin Belousov
kib at FreeBSD.org
Tue Jan 10 17:05:36 UTC 2017
Author: kib
Date: Tue Jan 10 17:05:34 2017
New Revision: 311879
URL: https://svnweb.freebsd.org/changeset/base/311879
Log:
Use ANSI C definitions, update comment.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/libexec/rtld-elf/rtld_lock.c
Modified: head/libexec/rtld-elf/rtld_lock.c
==============================================================================
--- head/libexec/rtld-elf/rtld_lock.c Tue Jan 10 16:30:56 2017 (r311878)
+++ head/libexec/rtld-elf/rtld_lock.c Tue Jan 10 17:05:34 2017 (r311879)
@@ -38,8 +38,8 @@
* 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
* contain a count of readers desiring the lock. The algorithm requires
- * atomic "compare_and_store" and "add" operations, which we implement
- * using assembly language sequences in "rtld_start.S".
+ * atomic "compare_and_store" and "add" operations, which we take
+ * from machine/atomic.h.
*/
#include <sys/param.h>
@@ -67,7 +67,7 @@ static sigset_t fullsigmask, oldsigmask;
static int thread_flag;
static void *
-def_lock_create()
+def_lock_create(void)
{
void *base;
char *p;
@@ -269,7 +269,7 @@ lock_restart_for_upgrade(RtldLockState *
}
void
-lockdflt_init()
+lockdflt_init(void)
{
int i;
More information about the svn-src-head
mailing list