This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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: Unused sys/ucontext.h files


On Tue, 21 Jan 2014, Mike Frysinger wrote:

> On Tuesday 21 January 2014 22:26:54 Joseph S. Myers wrote:
> > I notice that there are files
> > 
> > ports/sysdeps/arm/sys/ucontext.h
> > ports/sysdeps/m68k/sys/ucontext.h
> > ports/sysdeps/mips/sys/ucontext.h
> > 
> > that are overridden by files in ports/sysdeps/unix/sysv/linux/<arch>, and
> > so unused.  Roland, is the ARM file of use for the NaCl port, or should
> > all three of those files be removed?
> 
> are we saying that if it's not used by Linux we're just deleting it now ?

No, that if it's not used by any current configuration (which currently 
means Hurd or Linux) it's deleted unless it's of use in bringing up a new 
port ("generic" files, whether pure stubs or actual generic 
implementations).  And I strongly suspect these files are just files for 
whatever Unix was first supported on a given architecture - I don't really 
see advantages of such files over sysdeps/generic/sys/ucontext.h in the 
context of bringing up ports (which I expect would inevitably need 
OS-specific versions of this file in the end).

(The sysdeps/i386/sys/ucontext.h file is, I suppose, used by Hurd, but 
other <arch>/sys/ucontext.h files appear either unused, or in the am33 
case maybe really a Linux file in the wrong place.)

-- 
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]