summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 02:02:08 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 02:02:08 +0200
commit35d73c71b7f6bf367427a9ee8172e11f45c16d98 (patch)
tree93a2e7aa6c7014de782b8a38a338871c02caaa5a
parentf63fff0be94f0c10bb7262dfc26074b847d0a98c (diff)
Fix coding style
-rw-r--r--sysdeps/pthread/bits/types/struct___pthread_barrier.h10
-rw-r--r--sysdeps/pthread/bits/types/struct___pthread_cond.h14
-rw-r--r--sysdeps/pthread/bits/types/struct___pthread_condattr.h8
-rw-r--r--sysdeps/pthread/bits/types/struct___pthread_mutex.h30
-rw-r--r--sysdeps/pthread/bits/types/struct___pthread_rwlock.h18
5 files changed, 40 insertions, 40 deletions
diff --git a/sysdeps/pthread/bits/types/struct___pthread_barrier.h b/sysdeps/pthread/bits/types/struct___pthread_barrier.h
index a4c0f61..27a6b84 100644
--- a/sysdeps/pthread/bits/types/struct___pthread_barrier.h
+++ b/sysdeps/pthread/bits/types/struct___pthread_barrier.h
@@ -25,11 +25,11 @@
struct __pthread_barrier
{
__pthread_spinlock_t __lock;
- struct __pthread *__queue; /* List of waiters. */
- unsigned __pending; /* Number of that still need to wait on
- barrier. */
- unsigned __count; /* Number of threads that must wait before
- barrier is passed. */
+ struct __pthread *__queue; /* List of waiters. */
+ unsigned __pending; /* Number of that still need to wait on
+ barrier. */
+ unsigned __count; /* Number of threads that must wait before
+ barrier is passed. */
struct __pthread_barrierattr *__attr;
void *__data;
};
diff --git a/sysdeps/pthread/bits/types/struct___pthread_cond.h b/sysdeps/pthread/bits/types/struct___pthread_cond.h
index 11c685e..d84cde0 100644
--- a/sysdeps/pthread/bits/types/struct___pthread_cond.h
+++ b/sysdeps/pthread/bits/types/struct___pthread_cond.h
@@ -23,13 +23,13 @@
/* User visible part of a condition variable. */
struct __pthread_cond
- {
- __pthread_spinlock_t __lock;
- struct __pthread *__queue;
- struct __pthread_condattr *__attr;
- struct __pthread_condimpl *__impl;
- void *__data;
- };
+{
+ __pthread_spinlock_t __lock;
+ struct __pthread *__queue;
+ struct __pthread_condattr *__attr;
+ struct __pthread_condimpl *__impl;
+ void *__data;
+};
/* Initializer for a condition variable. */
#define __PTHREAD_COND_INITIALIZER \
diff --git a/sysdeps/pthread/bits/types/struct___pthread_condattr.h b/sysdeps/pthread/bits/types/struct___pthread_condattr.h
index d12c0a2..4d54501 100644
--- a/sysdeps/pthread/bits/types/struct___pthread_condattr.h
+++ b/sysdeps/pthread/bits/types/struct___pthread_condattr.h
@@ -25,9 +25,9 @@ enum __pthread_process_shared;
/* User visible part of a condition attribute variable. */
struct __pthread_condattr
- {
- enum __pthread_process_shared __pshared;
- __clockid_t __clock;
- };
+{
+ enum __pthread_process_shared __pshared;
+ __clockid_t __clock;
+};
#endif /* bits/types/struct___pthread_condattr.h */
diff --git a/sysdeps/pthread/bits/types/struct___pthread_mutex.h b/sysdeps/pthread/bits/types/struct___pthread_mutex.h
index 64b1c8c..0a89ded 100644
--- a/sysdeps/pthread/bits/types/struct___pthread_mutex.h
+++ b/sysdeps/pthread/bits/types/struct___pthread_mutex.h
@@ -26,21 +26,21 @@
/* User visible part of a mutex. */
struct __pthread_mutex
- {
- __pthread_spinlock_t __held;
- __pthread_spinlock_t __lock;
- /* In cthreads, mutex_init does not initialized thre third
- pointer, as such, we cannot rely on its value for anything. */
- char *__cthreadscompat1;
- struct __pthread *__queue;
- struct __pthread_mutexattr *__attr;
- void *__data;
- /* Up to this point, we are completely compatible with cthreads
- and what libc expects. */
- void *__owner;
- unsigned __locks;
- /* If NULL then the default attributes apply. */
- };
+{
+ __pthread_spinlock_t __held;
+ __pthread_spinlock_t __lock;
+ /* In cthreads, mutex_init does not initialized thre third
+ pointer, as such, we cannot rely on its value for anything. */
+ char *__cthreadscompat1;
+ struct __pthread *__queue;
+ struct __pthread_mutexattr *__attr;
+ void *__data;
+ /* Up to this point, we are completely compatible with cthreads
+ and what libc expects. */
+ void *__owner;
+ unsigned __locks;
+ /* If NULL then the default attributes apply. */
+};
/* Initializer for a mutex. N.B. this also happens to be compatible
with the cthread mutex initializer. */
diff --git a/sysdeps/pthread/bits/types/struct___pthread_rwlock.h b/sysdeps/pthread/bits/types/struct___pthread_rwlock.h
index 3459e48..cf47671 100644
--- a/sysdeps/pthread/bits/types/struct___pthread_rwlock.h
+++ b/sysdeps/pthread/bits/types/struct___pthread_rwlock.h
@@ -27,15 +27,15 @@
readers is greater than 0, then the lock is held by READERS
readers. */
struct __pthread_rwlock
- {
- __pthread_spinlock_t __held;
- __pthread_spinlock_t __lock;
- int __readers;
- struct __pthread *__readerqueue;
- struct __pthread *__writerqueue;
- struct __pthread_rwlockattr *__attr;
- void *__data;
- };
+{
+ __pthread_spinlock_t __held;
+ __pthread_spinlock_t __lock;
+ int __readers;
+ struct __pthread *__readerqueue;
+ struct __pthread *__writerqueue;
+ struct __pthread_rwlockattr *__attr;
+ void *__data;
+};
/* Initializer for a rwlock. */
#define __PTHREAD_RWLOCK_INITIALIZER \