This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Remove fallback definitions of __NR_set_robust_list
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 15 May 2012 22:26:09 +0000 (UTC)
- Subject: Remove fallback definitions of __NR_set_robust_list
In checking for architecture conditionals in common code I found that
nptl/pthreadP.h had fallback definitions of __NR_set_robust_list for
x86 and x86_64. Since these are defined for both those architectures
in asm/unistd.h in the earliest supported kernel headers version
(2.6.19.1) there is now no need for local definitions in this file and I
propose this patch to remove them. Tested x86 and x86_64.
2012-05-15 Joseph Myers <joseph@codesourcery.com>
* pthreadP.h [!__NR_set_robust_list] (__NR_set_robust_list): Do
not define.
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h
index 24a2471..6427e3d 100644
--- a/nptl/pthreadP.h
+++ b/nptl/pthreadP.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002-2007, 2009, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -582,15 +582,4 @@ extern void __wait_lookup_done (void) attribute_hidden;
# define PTHREAD_STATIC_FN_REQUIRE(name) __asm (".globl " #name);
#endif
-
-#ifndef __NR_set_robust_list
-/* XXX For the time being... Once we can rely on the kernel headers
- having the definition remove these lines. */
-# if defined __i386__
-# define __NR_set_robust_list 311
-# elif defined __x86_64__
-# define __NR_set_robust_list 273
-# endif
-#endif
-
#endif /* pthreadP.h */
--
Joseph S. Myers
joseph@codesourcery.com