This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]