This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.27.9000-213-g6dbe9dc


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  6dbe9dcae593cb5c1562fee34703938583618fd4 (commit)
      from  c2fb08c78ac4716266c4dd7c9b4aa3c33b033d13 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6dbe9dcae593cb5c1562fee34703938583618fd4

commit 6dbe9dcae593cb5c1562fee34703938583618fd4
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Mar 18 00:06:19 2018 +0100

    hurd: Fix coding style

diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
index eb9b0ca..f84c4ef 100644
--- a/hurd/hurd/signal.h
+++ b/hurd/hurd/signal.h
@@ -180,7 +180,7 @@ _hurd_critical_section_lock (void)
   struct hurd_sigstate *ss;
 
 #ifdef __LIBC_NO_TLS
-  if (__LIBC_NO_TLS())
+  if (__LIBC_NO_TLS ())
     /* TLS is currently initializing, no need to enter critical section.  */
     return NULL;
 #endif
diff --git a/hurd/hurd/threadvar.h b/hurd/hurd/threadvar.h
index 89918e3..414e452 100644
--- a/hurd/hurd/threadvar.h
+++ b/hurd/hurd/threadvar.h
@@ -49,6 +49,6 @@ extern mach_port_t __hurd_reply_port0;
 
 /* This returns either the TLS reply port variable, or a single-thread variable
    when TLS is not initialized yet.  */
-#define __hurd_local_reply_port (*(__LIBC_NO_TLS() ? &__hurd_reply_port0 : &THREAD_SELF->reply_port))
+#define __hurd_local_reply_port (*(__LIBC_NO_TLS () ? &__hurd_reply_port0 : &THREAD_SELF->reply_port))
 
 #endif	/* hurd/threadvar.h */
diff --git a/mach/setup-thread.c b/mach/setup-thread.c
index 6716813..79ec432 100644
--- a/mach/setup-thread.c
+++ b/mach/setup-thread.c
@@ -52,7 +52,7 @@ __mach_setup_thread (task_t task, thread_t thread, void *pc,
   if (error)
     return error;
 
-  tcb = _dl_allocate_tls(NULL);
+  tcb = _dl_allocate_tls (NULL);
   if (tcb == NULL)
     return KERN_RESOURCE_SHORTAGE;
 
@@ -87,7 +87,7 @@ __mach_setup_thread (task_t task, thread_t thread, void *pc,
     return error;
   assert (tssize == MACHINE_THREAD_STATE_COUNT);
 
-  _hurd_tls_new(thread, &ts, tcb);
+  _hurd_tls_new (thread, &ts, tcb);
 
   error = __thread_set_state (thread, MACHINE_THREAD_STATE_FLAVOR,
 			      (natural_t *) &ts, tssize);
diff --git a/sysdeps/mach/hurd/i386/tls.h b/sysdeps/mach/hurd/i386/tls.h
index 6cd1730..c443552 100644
--- a/sysdeps/mach/hurd/i386/tls.h
+++ b/sysdeps/mach/hurd/i386/tls.h
@@ -63,7 +63,7 @@ typedef struct
 #define __LIBC_NO_TLS()							      \
   ({ unsigned short ds, gs;						      \
      asm ("movw %%ds,%w0; movw %%gs,%w1" : "=q" (ds), "=q" (gs));	      \
-     __builtin_expect(ds == gs, 0); })
+     __builtin_expect (ds == gs, 0); })
 
 /* The TCB can have any size and the memory following the address the
    thread pointer points to is unspecified.  Allocate the TCB there.  */
@@ -105,7 +105,7 @@ typedef struct
       | (((unsigned int) (tcb)) & 0xff000000) /* base 24..31 */		      \
     }
 
-# define HURD_SEL_LDT(sel) (__builtin_expect((sel) & 4, 0))
+# define HURD_SEL_LDT(sel) (__builtin_expect ((sel) & 4, 0))
 
 static inline const char * __attribute__ ((unused))
 _hurd_tls_init (tcbhead_t *tcb)
@@ -163,13 +163,13 @@ _hurd_tls_init (tcbhead_t *tcb)
      struct descriptor __desc, *___desc = &__desc;			      \
      unsigned int __count = 1;						      \
      kern_return_t __err;						      \
-     if (HURD_SEL_LDT(__sel))						      \
+     if (HURD_SEL_LDT (__sel))						      \
        __err = __i386_get_ldt ((thread), __sel, 1, &___desc, &__count);	      \
      else								      \
        __err = __i386_get_gdt ((thread), __sel, &__desc);		      \
      assert_perror (__err);						      \
      assert (__count == 1);						      \
-     HURD_DESC_TLS(___desc);})
+     HURD_DESC_TLS (___desc);})
 
 /* Install new dtv for current thread.  */
 # define INSTALL_NEW_DTV(dtvp)						      \
@@ -198,7 +198,7 @@ _hurd_tls_fork (thread_t child, thread_t orig, struct i386_thread_state *state)
   error_t err;
   unsigned int count = 1;
 
-  if (HURD_SEL_LDT(sel))
+  if (HURD_SEL_LDT (sel))
     err = __i386_get_ldt (orig, sel, 1, &_desc, &count);
   else
     err = __i386_get_gdt (orig, sel, &desc);
@@ -207,7 +207,7 @@ _hurd_tls_fork (thread_t child, thread_t orig, struct i386_thread_state *state)
   if (err)
     return err;
 
-  if (HURD_SEL_LDT(sel))
+  if (HURD_SEL_LDT (sel))
     err = __i386_set_ldt (child, sel, &desc, 1);
   else
     err = __i386_set_gdt (child, &sel, desc);
@@ -231,7 +231,7 @@ _hurd_tls_new (thread_t child, struct i386_thread_state *state, tcbhead_t *tcb)
   tcb->tcb = tcb;
   tcb->self = child;
 
-  if (HURD_SEL_LDT(sel))
+  if (HURD_SEL_LDT (sel))
     err = __i386_set_ldt (child, sel, &desc, 1);
   else
     err = __i386_set_gdt (child, &sel, desc);
diff --git a/sysdeps/mach/hurd/libc-lock.h b/sysdeps/mach/hurd/libc-lock.h
index ed45f07..f5a1f66 100644
--- a/sysdeps/mach/hurd/libc-lock.h
+++ b/sysdeps/mach/hurd/libc-lock.h
@@ -35,7 +35,7 @@ typedef struct
 typedef __libc_lock_recursive_t __rtld_lock_recursive_t;
 
 extern char __libc_lock_self0[0];
-#define __libc_lock_owner_self() (__LIBC_NO_TLS() ? &__libc_lock_self0 : THREAD_SELF)
+#define __libc_lock_owner_self() (__LIBC_NO_TLS () ? &__libc_lock_self0 : THREAD_SELF)
 
 #else
 typedef struct __libc_lock_opaque__ __libc_lock_t;

-----------------------------------------------------------------------

Summary of changes:
 hurd/hurd/signal.h            |    2 +-
 hurd/hurd/threadvar.h         |    2 +-
 mach/setup-thread.c           |    4 ++--
 sysdeps/mach/hurd/i386/tls.h  |   14 +++++++-------
 sysdeps/mach/hurd/libc-lock.h |    2 +-
 5 files changed, 12 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]