This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 6/9] Alpha - Simply alpha lowlevellock.h
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Bernard Ogden <bernie dot ogden at linaro dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 9 Jun 2014 20:39:10 +0000
- Subject: Re: [PATCH 6/9] Alpha - Simply alpha lowlevellock.h
- Authentication-results: sourceware.org; auth=none
- References: <41DCC830-45D9-462C-91DE-13AE4D648139 at linaro dot org>
On Mon, 9 Jun 2014, Bernard Ogden wrote:
> Simplify alpha lowlevellock.h
>
> alpha's lowlevellock.h defines NR_futex, so we keep it but reduce
> it to that define and an include-next to get the linux
> lowlevellock.h.
But you don't need that definition. glibc assumes at least 2.6.32 kernel
(headers and at runtime), and 2.6.32 headers define __NR_futex for alpha.
Such definitions of syscall numbers in glibc are mostly redundant
nowadays. (nptl/sysdeps/i386/tls.h and
sysdeps/unix/sysv/linux/i386/clone.S are two more examples where such a
syscall number is defined, probably for convenience in building glibc when
the syscall was very new, but no longer need to be defined as long as the
files include the right headers.)
--
Joseph S. Myers
joseph@codesourcery.com