From: Joseph Myers <joseph@codesourcery.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: <libc-alpha@sourceware.org>
Subject: Re: Fix Arm __ASSUME_COPY_FILE_RANGE (bug 23915) [committed]
Date: Mon, 26 Nov 2018 16:46:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.21.1811261640170.24694@digraph.polyomino.org.uk> (raw)
In-Reply-To: <87bm6cou8a.fsf@oldenburg.str.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1582 bytes --]
On Mon, 26 Nov 2018, Florian Weimer wrote:
> * Joseph Myers:
>
> > 2018-11-23 Joseph Myers <joseph@codesourcery.com>
> >
> > [BZ #23915]
> > * sysdeps/unix/sysv/linux/arm/kernel-features.h
> > [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
> > Undefine.
>
> So I feel kind of bad about thisâI looked for such issues after the
> first problems cropped up and just didn't seem them in the kernel source
> tree.
>
> Assuming that I'm going to implement a few system call wrappers in the
> future, how can I do a better job here?
My approach is to examine the diffs for the kernel version that introduced
the syscall, and check whether it's present (asm/unistd.h, and syscall
table, and any relevant compat syscall table) for each (architecture, ABI)
pair supported by glibc not using the asm-generic syscall ABI.
What we really need is for the kernel to do a better job at introducing
syscalls at the same time on all architectures, rather than just adding
them for one or two architectures, leaving it to architecture maintainers
to fill in the rest and so resulting in long delays before glibc can
actually assume a syscall to be available everywhere.
(I think kernel 4.4, when many socket syscalls can be assumed to be
available everywhere, will be the next point where there are significant
simplifications to be gained in glibc sources by increasing the global
minimum kernel version supported - many of those functions will be able to
move to just having a single entry in syscalls.list.)
--
Joseph S. Myers
joseph@codesourcery.com
next prev parent reply other threads:[~2018-11-26 16:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-23 17:54 Joseph Myers
2018-11-26 13:15 ` Florian Weimer
2018-11-26 16:46 ` Joseph Myers [this message]
2018-11-26 18:14 ` Adhemerval Zanella
2018-11-27 14:33 ` Arnd Bergmann
2019-01-09 12:59 ` Florian Weimer
2019-01-09 17:58 ` Joseph Myers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.21.1811261640170.24694@digraph.polyomino.org.uk \
--to=joseph@codesourcery.com \
--cc=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).