hurd: Rename LLL_INITIALIZER to LLL_LOCK_INITIALIZER
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 13 Dec 2020 10:16:55 +0000 (10:16 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 16 Dec 2020 00:58:33 +0000 (01:58 +0100)
To get coherent with other ports.

hurd/setauth.c
mach/lock-intern.h
mach/lowlevellock.h
mach/mutex-init.c
sysdeps/mach/libc-lock.h

index 5493db5e5d5dfb6d296070a57bbd15bf241ee834..b1037172ba6ad81ec66992f25ef24655aa6293c5 100644 (file)
@@ -24,7 +24,7 @@
 /* Things in the library which want to be run when the auth port changes.  */
 DEFINE_HOOK (_hurd_reauth_hook, (auth_t new_auth));
 
-static unsigned int reauth_lock = LLL_INITIALIZER;
+static unsigned int reauth_lock = LLL_LOCK_INITIALIZER;
 
 /* Set the auth port to NEW, and reauthenticate
    everything used by the library.  */
index a68674cef44ca90bda818aa97631c16cd23a3b02..62faf98039404080df46f962f9c2d40249ef15fc 100644 (file)
@@ -31,7 +31,7 @@
 typedef unsigned int __spin_lock_t;
 
 /* Static initializer for spinlocks.  */
-#define __SPIN_LOCK_INITIALIZER   LLL_INITIALIZER
+#define __SPIN_LOCK_INITIALIZER   LLL_LOCK_INITIALIZER
 
 /* Initialize LOCK.  */
 
index 6d92adca1ca34f755816c441fdbffcba72cb6492..cf67ccd58985245f8a23878f7454fc8adbb99159 100644 (file)
@@ -32,7 +32,7 @@
 #endif
 
 /* Static initializer for low-level locks.  */
-#define LLL_INITIALIZER   0
+#define LLL_LOCK_INITIALIZER   0
 
 /* Wait on address PTR, without blocking if its contents
  * are different from VAL.  */
index acacec2fb05ef0635889d7f02e2951cfe8de974f..fc898f66d4330b07e38f8ce537e9ebb0ec027804 100644 (file)
@@ -22,6 +22,6 @@
 void
 __mutex_init (void *lock)
 {
-  *(int *)lock = LLL_INITIALIZER;
+  *(int *)lock = LLL_LOCK_INITIALIZER;
 }
 libc_hidden_def (__mutex_init)
index e04dcc445d88917f9ad00d795bedbbed804ad7a1..3993a57b26c1f88f665f1cb687dd0103c435dec3 100644 (file)
@@ -57,13 +57,13 @@ typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t;
   CLASS __libc_lock_t NAME;
 
 /* Define an initialized lock variable NAME with storage class CLASS.  */
-#define _LIBC_LOCK_INITIALIZER LLL_INITIALIZER
+#define _LIBC_LOCK_INITIALIZER LLL_LOCK_INITIALIZER
 #define __libc_lock_define_initialized(CLASS,NAME) \
-  CLASS __libc_lock_t NAME = LLL_INITIALIZER;
+  CLASS __libc_lock_t NAME = LLL_LOCK_INITIALIZER;
 
 /* Initialize the named lock variable, leaving it in a consistent, unlocked
    state.  */
-#define __libc_lock_init(NAME) (NAME) = LLL_INITIALIZER
+#define __libc_lock_init(NAME) (NAME) = LLL_LOCK_INITIALIZER
 
 /* Finalize the named lock variable, which must be locked.  It cannot be
    used again until __libc_lock_init is called again on it.  This must be
@@ -86,7 +86,7 @@ typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t;
 #define __libc_lock_define_recursive(CLASS,NAME) \
   CLASS __libc_lock_recursive_t NAME;
 
-#define _LIBC_LOCK_RECURSIVE_INITIALIZER { LLL_INITIALIZER, 0, 0 }
+#define _LIBC_LOCK_RECURSIVE_INITIALIZER { LLL_LOCK_INITIALIZER, 0, 0 }
 
 #define __libc_lock_define_initialized_recursive(CLASS,NAME) \
   CLASS __libc_lock_recursive_t NAME = _LIBC_LOCK_RECURSIVE_INITIALIZER;