[Glibc-bsd-commits] r4642 - trunk/glibc-ports/kfreebsd/fbtl

Petr Salinger ps-guest at alioth.debian.org
Mon Jul 8 12:48:11 UTC 2013


Author: ps-guest
Date: 2013-06-28 15:12:52 +0000 (Fri, 28 Jun 2013)
New Revision: 4642

Modified:
   trunk/glibc-ports/kfreebsd/fbtl/gai_misc.h
Log:
lll_futex_timed_wait returns errors as positive numbers (1st part)


Modified: trunk/glibc-ports/kfreebsd/fbtl/gai_misc.h
===================================================================
--- trunk/glibc-ports/kfreebsd/fbtl/gai_misc.h	2013-06-28 15:11:58 UTC (rev 4641)
+++ trunk/glibc-ports/kfreebsd/fbtl/gai_misc.h	2013-06-28 15:12:52 UTC (rev 4642)
@@ -53,7 +53,7 @@
 	  {								      \
 	    status = lll_futex_timed_wait (futexaddr, oldval, timeout,	      \
 					   LLL_PRIVATE);		      \
-	    if (status != -EWOULDBLOCK)					      \
+	    if (status != EWOULDBLOCK)					      \
 	      break;							      \
 									      \
 	    oldval = *futexaddr;					      \
@@ -63,12 +63,12 @@
 	if (cancel)							      \
 	  LIBC_CANCEL_RESET (oldtype);					      \
 									      \
-	if (status == -EINTR)						      \
+	if (status == EINTR)						      \
 	  result = EINTR;						      \
-	else if (status == -ETIMEDOUT)					      \
+	else if (status == ETIMEDOUT)					      \
 	  result = EAGAIN;						      \
 	else								      \
-	  assert (status == 0 || status == -EWOULDBLOCK);		      \
+	  assert (status == 0 || status == EWOULDBLOCK);		      \
 									      \
 	pthread_mutex_lock (&__gai_requests_mutex);			      \
       }									      \




More information about the Glibc-bsd-commits mailing list