Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread pthread: Nix trailing whitespace.



details:   https://anonhg.NetBSD.org/src/rev/e8cae57ffb5d
branches:  trunk
changeset: 365181:e8cae57ffb5d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Apr 10 10:38:33 2022 +0000

description:
pthread: Nix trailing whitespace.

diffstat:

 lib/libpthread/pthread_attr.c       |   8 ++++----
 lib/libpthread/pthread_cancelstub.c |  20 ++++++++++----------
 lib/libpthread/pthread_lock.c       |   6 +++---
 lib/libpthread/pthread_misc.c       |   6 +++---
 lib/libpthread/pthread_mutex.c      |  24 ++++++++++++------------
 lib/libpthread/pthread_queue.h      |   4 ++--
 lib/libpthread/pthread_specific.c   |   8 ++++----
 lib/libpthread/pthread_spin.c       |   8 ++++----
 lib/libpthread/pthread_tsd.c        |  14 +++++++-------
 lib/libpthread/pthread_types.h      |   6 +++---
 10 files changed, 52 insertions(+), 52 deletions(-)

diffs (truncated from 443 to 300 lines):

diff -r 01dcd44ae675 -r e8cae57ffb5d lib/libpthread/pthread_attr.c
--- a/lib/libpthread/pthread_attr.c     Sun Apr 10 10:01:15 2022 +0000
+++ b/lib/libpthread/pthread_attr.c     Sun Apr 10 10:38:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_attr.c,v 1.20 2022/02/12 14:59:32 riastradh Exp $      */
+/*     $NetBSD: pthread_attr.c,v 1.21 2022/04/10 10:38:33 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2001, 2002, 2003, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_attr.c,v 1.20 2022/02/12 14:59:32 riastradh Exp $");
+__RCSID("$NetBSD: pthread_attr.c,v 1.21 2022/04/10 10:38:33 riastradh Exp $");
 
 /* Need to use libc-private names for atomic operations. */
 #include "../../common/lib/libc/atomic/atomic_op_namespace.h"
@@ -113,7 +113,7 @@
        if (p == NULL)
                return ENOMEM;
 
-       attr->pta_flags = thread->pt_flags & 
+       attr->pta_flags = thread->pt_flags &
            (PT_FLAG_DETACHED | PT_FLAG_SCOPE_SYSTEM | PT_FLAG_EXPLICIT_SCHED);
 
        p->ptap_namearg = thread->pt_name;
@@ -309,7 +309,7 @@
        p = attr->pta_private;
        if (p == NULL)
                memset(param, 0, sizeof(*param));
-       else 
+       else
                *param = p->ptap_sp;
        return 0;
 }
diff -r 01dcd44ae675 -r e8cae57ffb5d lib/libpthread/pthread_cancelstub.c
--- a/lib/libpthread/pthread_cancelstub.c       Sun Apr 10 10:01:15 2022 +0000
+++ b/lib/libpthread/pthread_cancelstub.c       Sun Apr 10 10:38:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_cancelstub.c,v 1.41 2022/02/12 14:59:32 riastradh Exp $        */
+/*     $NetBSD: pthread_cancelstub.c,v 1.42 2022/04/10 10:38:33 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #undef _FORTIFY_SOURCE
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_cancelstub.c,v 1.41 2022/02/12 14:59:32 riastradh Exp $");
+__RCSID("$NetBSD: pthread_cancelstub.c,v 1.42 2022/04/10 10:38:33 riastradh Exp $");
 
 /* Need to use libc-private names for atomic operations. */
 #include "../../common/lib/libc/atomic/atomic_op_namespace.h"
@@ -160,7 +160,7 @@
        TESTCANCEL(self);
        retval = _sys_accept(s, addr, addrlen);
        TESTCANCEL(self);
-       
+
        return retval;
 }
 
@@ -205,7 +205,7 @@
        TESTCANCEL(self);
        retval = _sys_clock_nanosleep(clock_id, flags, rqtp, rmtp);
        TESTCANCEL(self);
-       
+
        return retval;
 }
 
@@ -219,7 +219,7 @@
        TESTCANCEL(self);
        retval = _sys_close(d);
        TESTCANCEL(self);
-       
+
        return retval;
 }
 
@@ -233,7 +233,7 @@
        TESTCANCEL(self);
        retval = _sys_connect(s, addr, namelen);
        TESTCANCEL(self);
-       
+
        return retval;
 }
 
@@ -264,7 +264,7 @@
        TESTCANCEL(self);
        retval = _sys_fdatasync(d);
        TESTCANCEL(self);
-       
+
        return retval;
 }
 
@@ -278,7 +278,7 @@
        TESTCANCEL(self);
        retval = _sys_fsync(d);
        TESTCANCEL(self);
-       
+
        return retval;
 }
 
@@ -492,7 +492,7 @@
 }
 
 int
-__pselect50(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, 
+__pselect50(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
     const struct timespec *timeout, const sigset_t *sigmask)
 {
        int retval;
@@ -594,7 +594,7 @@
 }
 
 int
-__select50(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, 
+__select50(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
     struct timeval *timeout)
 {
        int retval;
diff -r 01dcd44ae675 -r e8cae57ffb5d lib/libpthread/pthread_lock.c
--- a/lib/libpthread/pthread_lock.c     Sun Apr 10 10:01:15 2022 +0000
+++ b/lib/libpthread/pthread_lock.c     Sun Apr 10 10:38:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_lock.c,v 1.35 2022/02/12 14:59:32 riastradh Exp $      */
+/*     $NetBSD: pthread_lock.c,v 1.36 2022/04/10 10:38:33 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2001, 2006, 2007 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_lock.c,v 1.35 2022/02/12 14:59:32 riastradh Exp $");
+__RCSID("$NetBSD: pthread_lock.c,v 1.36 2022/04/10 10:38:33 riastradh Exp $");
 
 /* Need to use libc-private names for atomic operations. */
 #include "../../common/lib/libc/atomic/atomic_op_namespace.h"
@@ -143,7 +143,7 @@
  * Prevent this routine from being inlined.  The common case is no
  * contention and it's better to not burden the instruction decoder.
  */
-static void 
+static void
 pthread__spinlock_slow(pthread_spin_t *lock)
 {
        pthread_t self;
diff -r 01dcd44ae675 -r e8cae57ffb5d lib/libpthread/pthread_misc.c
--- a/lib/libpthread/pthread_misc.c     Sun Apr 10 10:01:15 2022 +0000
+++ b/lib/libpthread/pthread_misc.c     Sun Apr 10 10:38:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_misc.c,v 1.18 2022/02/12 14:59:32 riastradh Exp $      */
+/*     $NetBSD: pthread_misc.c,v 1.19 2022/04/10 10:38:33 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_misc.c,v 1.18 2022/02/12 14:59:32 riastradh Exp $");
+__RCSID("$NetBSD: pthread_misc.c,v 1.19 2022/04/10 10:38:33 riastradh Exp $");
 
 /* Need to use libc-private names for atomic operations. */
 #include "../../common/lib/libc/atomic/atomic_op_namespace.h"
@@ -77,7 +77,7 @@
 }
 
 int
-pthread_setschedparam(pthread_t thread, int policy, 
+pthread_setschedparam(pthread_t thread, int policy,
     const struct sched_param *param)
 {
        struct sched_param sp;
diff -r 01dcd44ae675 -r e8cae57ffb5d lib/libpthread/pthread_mutex.c
--- a/lib/libpthread/pthread_mutex.c    Sun Apr 10 10:01:15 2022 +0000
+++ b/lib/libpthread/pthread_mutex.c    Sun Apr 10 10:38:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_mutex.c,v 1.82 2022/02/12 14:59:32 riastradh Exp $     */
+/*     $NetBSD: pthread_mutex.c,v 1.83 2022/04/10 10:38:33 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2001, 2003, 2006, 2007, 2008, 2020 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
  * attempting to acquire that spinlock will needlessly busy wait.
  *
  * There is no good way to know that the holding thread is no longer
- * running, nor to request a wake-up once it has begun running again. 
+ * running, nor to request a wake-up once it has begun running again.
  * Of more concern, threads in the SCHED_FIFO class do not have a
  * limited time quantum and so could spin forever, preventing the
  * thread holding the spinlock from getting CPU time: it would never
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_mutex.c,v 1.82 2022/02/12 14:59:32 riastradh Exp $");
+__RCSID("$NetBSD: pthread_mutex.c,v 1.83 2022/04/10 10:38:33 riastradh Exp $");
 
 /* Need to use libc-private names for atomic operations. */
 #include "../../common/lib/libc/atomic/atomic_op_namespace.h"
@@ -262,7 +262,7 @@
                        break;
                if (thread->pt_lwpctl->lc_curcpu == LWPCTL_CPU_NONE)
                        break;
-               if (count < 128) 
+               if (count < 128)
                        count += count;
                for (i = count; i != 0; i--)
                        pthread__mutex_pause();
@@ -608,7 +608,7 @@
 int
 pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr, int*proto)
 {
-       
+
        pthread__error(EINVAL, "Invalid mutex attribute",
            attr->ptma_magic == _PT_MUTEXATTR_MAGIC);
 
@@ -616,7 +616,7 @@
        return 0;
 }
 
-int 
+int
 pthread_mutexattr_setprotocol(pthread_mutexattr_t* attr, int proto)
 {
 
@@ -635,10 +635,10 @@
        }
 }
 
-int 
+int
 pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, int *ceil)
 {
-       
+
        pthread__error(EINVAL, "Invalid mutex attribute",
                attr->ptma_magic == _PT_MUTEXATTR_MAGIC);
 
@@ -646,8 +646,8 @@
        return 0;
 }
 
-int 
-pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int ceil) 
+int
+pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int ceil)
 {
 
        pthread__error(EINVAL, "Invalid mutex attribute",
@@ -733,7 +733,7 @@
 }
 
 int
-pthread_mutex_getprioceiling(const pthread_mutex_t *ptm, int *ceil) 
+pthread_mutex_getprioceiling(const pthread_mutex_t *ptm, int *ceil)
 {
 
        pthread__error(EINVAL, "Invalid mutex",
@@ -744,7 +744,7 @@
 }
 
 int
-pthread_mutex_setprioceiling(pthread_mutex_t *ptm, int ceil, int *old_ceil) 
+pthread_mutex_setprioceiling(pthread_mutex_t *ptm, int ceil, int *old_ceil)
 {
        int error;
 
diff -r 01dcd44ae675 -r e8cae57ffb5d lib/libpthread/pthread_queue.h
--- a/lib/libpthread/pthread_queue.h    Sun Apr 10 10:01:15 2022 +0000
+++ b/lib/libpthread/pthread_queue.h    Sun Apr 10 10:38:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_queue.h,v 1.5 2009/10/05 23:33:48 rmind Exp $  */
+/*     $NetBSD: pthread_queue.h,v 1.6 2022/04/10 10:38:33 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  * Definition of a queue interface for the pthread library.
  * Style modeled on the sys/queue.h macros; implementation taken from
  * the tail queue, with the added property of static initializability
- * (and a corresponding extra cost in the _INSERT_TAIL() function.  
+ * (and a corresponding extra cost in the _INSERT_TAIL() function.
 */
 
 /*
diff -r 01dcd44ae675 -r e8cae57ffb5d lib/libpthread/pthread_specific.c
--- a/lib/libpthread/pthread_specific.c Sun Apr 10 10:01:15 2022 +0000
+++ b/lib/libpthread/pthread_specific.c Sun Apr 10 10:38:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_specific.c,v 1.27 2022/02/12 14:59:32 riastradh Exp $  */
+/*     $NetBSD: pthread_specific.c,v 1.28 2022/04/10 10:38:33 riastradh Exp $  */



Home | Main Index | Thread Index | Old Index