Source-Changes-HG archive

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

[src/trunk]: src/lib/libpthread catch up with the __RENAME of nanosleep(2) a ...



details:   https://anonhg.NetBSD.org/src/rev/04707c31d9a6
branches:  trunk
changeset: 753356:04707c31d9a6
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Mar 23 20:35:44 2010 +0000

description:
catch up with the __RENAME of nanosleep(2) a while ago, otherwise we
get the compatibility function which assumes a different struct timespec

diffstat:

 lib/libpthread/pthread_cond.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r bc4505cb2b2a -r 04707c31d9a6 lib/libpthread/pthread_cond.c
--- a/lib/libpthread/pthread_cond.c     Tue Mar 23 20:32:13 2010 +0000
+++ b/lib/libpthread/pthread_cond.c     Tue Mar 23 20:35:44 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_cond.c,v 1.54 2009/01/18 12:14:17 lukem Exp $  */
+/*     $NetBSD: pthread_cond.c,v 1.55 2010/03/23 20:35:44 drochner Exp $       */
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_cond.c,v 1.54 2009/01/18 12:14:17 lukem Exp $");
+__RCSID("$NetBSD: pthread_cond.c,v 1.55 2010/03/23 20:35:44 drochner Exp $");
 
 #include <errno.h>
 #include <sys/time.h>
@@ -55,7 +55,7 @@
 #include "pthread.h"
 #include "pthread_int.h"
 
-int    _sys_nanosleep(const struct timespec *, struct timespec *);
+int    _sys___nanosleep50(const struct timespec *, struct timespec *);
 
 extern int pthread__started;
 
@@ -356,7 +356,7 @@
        do {
                pthread__testcancel(self);
                pthread_mutex_unlock(mutex);
-               retval = _sys_nanosleep(&diff, NULL);
+               retval = _sys___nanosleep50(&diff, NULL);
                pthread_mutex_lock(mutex);
        } while (abstime == NULL && retval == 0);
        pthread__testcancel(self);



Home | Main Index | Thread Index | Old Index