[PATCH 6/9] Alpha - Simply alpha lowlevellock.h

Joseph S. Myers joseph@codesourcery.com
Mon Jun 9 20:39:00 GMT 2014


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



More information about the Libc-alpha mailing list