Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2017 10:34:31 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r312340 - stable/10/libexec/rtld-elf
Message-ID:  <201701171034.v0HAYVdD087214@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Jan 17 10:34:31 2017
New Revision: 312340
URL: https://svnweb.freebsd.org/changeset/base/312340

Log:
  MFC r311879:
  Use ANSI C definitions, update comment.

Modified:
  stable/10/libexec/rtld-elf/rtld_lock.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/libexec/rtld-elf/rtld_lock.c
==============================================================================
--- stable/10/libexec/rtld-elf/rtld_lock.c	Tue Jan 17 10:32:27 2017	(r312339)
+++ stable/10/libexec/rtld-elf/rtld_lock.c	Tue Jan 17 10:34:31 2017	(r312340)
@@ -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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701171034.v0HAYVdD087214>