This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] NPTL: Use unsigned type for setxid_futex.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Wed, 24 Jun 2015 18:11:43 -0700 (PDT)
- Subject: [COMMITTED PATCH] NPTL: Use unsigned type for setxid_futex.
- Authentication-results: sourceware.org; auth=none
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. */