This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Use __NR_futex to define SYS_futex
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 19 Mar 2012 14:41:58 -0700
- Subject: PATCH: Use __NR_futex to define SYS_futex
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This patch defines SYS_futex with __NR_futex. OK to install?
Thanks.
H.J.
---
2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (SYS_futex): Use
__NR_futex directly.
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
index ab7ca6a..1f5b848 100644
--- a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
+++ b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
@@ -43,7 +43,7 @@
# endif
#endif
-#define SYS_futex 202
+#define SYS_futex __NR_futex
#define FUTEX_WAIT 0
#define FUTEX_WAKE 1
#define FUTEX_CMP_REQUEUE 4