From: Szabolcs Nagy <Szabolcs.Nagy@arm.com>
To: Elichai Turkel <elichai.turkel@gmail.com>,
Florian Weimer <fweimer@redhat.com>
Cc: nd <nd@arm.com>, Christian Brauner <christian.brauner@ubuntu.com>,
"linux-api@vger.kernel.org" <linux-api@vger.kernel.org>,
libc-alpha <libc-alpha@sourceware.org>
Subject: Re: Continuing the UAPI split
Date: Thu, 7 Nov 2019 16:21:05 +0000 [thread overview]
Message-ID: <facb4d0d-4e20-41f0-4c01-b210c677c24c@arm.com> (raw)
In-Reply-To: <CALN7hCJ_umFqC1L0T19CuiGiGoVwac5807NDw4LiDqSD-VJL=Q@mail.gmail.com>
On 07/11/2019 13:03, Elichai Turkel wrote:
> A rename to the structs/types so they won't collide with libc?
> Prioritizing POSIX conformance in the kernel(I think that ship has long sailed)?
hosted c code can only use linux api headers reliably
if those respect the iso c and posix rules.
linux should maintain a clean set of c headers (or
interface descriptions from which such headers can be
generated).
providing clean headers that work in both hosted and
freestanding environments is not trivial: e.g. the
former requires type definitions to use libc types,
the latter requires type definitions that don't depend
on the libc.
e.g. a possible approach is to use iso c implementation
reserved namespace for all linux api identifiers, so
it's entirely independent of libc and non-conflicting,
then libc headers can replicate declarations that it
wants to expose (with different names and libc types).
(there are other ways, but the current headers are hard
to use which affects a lot of users)
> Or just giving up and telling users they can't just directly include
> both libc headers and kernel headers?
including both libc and linux headers is fragile and
will break differently across the different linux
libc implementations.
next prev parent reply other threads:[~2019-11-07 16:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CALN7hCK0EXLXjPRPr+tuuF2-uQvkLMCFDNzGhv9HS-jrAz6Hmg@mail.gmail.com>
2019-11-07 12:05 ` Continuing the UAPI split Christian Brauner
2019-11-07 12:10 ` Florian Weimer
2019-11-07 13:03 ` Elichai Turkel
2019-11-07 13:23 ` Florian Weimer
2019-11-07 13:36 ` Christian Brauner
2019-11-07 13:47 ` Florian Weimer
2019-11-07 14:05 ` Christian Brauner
2019-11-07 18:02 ` Carlos O'Donell
2019-11-07 16:21 ` Szabolcs Nagy [this message]
2019-11-07 18:05 ` Carlos O'Donell
2019-11-07 20:32 ` Florian Weimer
2019-11-07 22:32 ` Carlos O'Donell
2019-11-08 7:28 ` Florian Weimer
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=facb4d0d-4e20-41f0-4c01-b210c677c24c@arm.com \
--to=szabolcs.nagy@arm.com \
--cc=christian.brauner@ubuntu.com \
--cc=elichai.turkel@gmail.com \
--cc=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=linux-api@vger.kernel.org \
--cc=nd@arm.com \
/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 NNTP newsgroup(s).