This is the mail archive of the
mailing list for the libc-ports project.
Re: Unused sys/ucontext.h files
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: <libc-ports at sourceware dot org>, Roland McGrath <roland at hack dot frob dot com>
- Date: Wed, 22 Jan 2014 17:14:18 +0000
- Subject: Re: Unused sys/ucontext.h files
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1401220324460 dot 25161 at digraph dot polyomino dot org dot uk> <201401212341 dot 32520 dot vapier at gentoo dot org>
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