This is the mail archive of the libc-alpha@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]

[COMMITTED PATCH] NPTL: Use unsigned type for setxid_futex.


Verified on x86_64-linux-gnu that no generated code changes at all.
A good follow-up cleanup here would be to replace the four magic values
used throughout the code (0, 1, -1, -2) with an enum.


Thanks,
Roland


	* nptl/descr.h (struct pthread): Change type of field setxid_futex
	to 'unsigned int'.

diff --git a/nptl/descr.h b/nptl/descr.h
index 5bd1282..a502048 100644
--- a/nptl/descr.h
+++ b/nptl/descr.h
@@ -328,7 +328,7 @@ struct pthread
   int lock;
 
   /* Lock for synchronizing setxid calls.  */
-  int setxid_futex;
+  unsigned int setxid_futex;
 
 #if HP_TIMING_AVAIL
   /* Offset of the CPU clock at start thread start time.  */


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