This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH RFC] Add support for linux memfd_create syscall
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: mtk dot manpages at gmail dot com
- Cc: David Herrmann <dh dot herrmann at gmail dot com>, libc-alpha <libc-alpha at sourceware dot org>
- Date: Wed, 14 Jan 2015 10:17:30 -0500
- Subject: Re: [PATCH RFC] Add support for linux memfd_create syscall
- Authentication-results: sourceware.org; auth=none
- References: <1413537694-30556-1-git-send-email-dh dot herrmann at gmail dot com> <546F808C dot 1070801 at redhat dot com> <CALxWeYrDpRb7iczk-yM5E09y3VbR_aXfZBxBSmf7O3Unokxabg at mail dot gmail dot com> <54AFE85E dot 3050903 at redhat dot com> <CAKgNAkgfXo_eazgJEpObc9aYZVdCreVmX+a9Stra-c=BmYTJ8w at mail dot gmail dot com> <54AFFF20 dot 4010400 at redhat dot com> <CAKgNAkgpT9CCS3et8W82pNrNsvUKpPSdef6UPSPF6e=GbtRYhg at mail dot gmail dot com>
On 01/14/2015 02:36 AM, Michael Kerrisk (man-pages) wrote:
>> You can disclaim your changes.
>>
>> See:
>> https://sourceware.org/glibc/wiki/Contribution%20checklist#FSF_copyright_Assignment
>>
>> The disclaimer request is here:
>> http://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-disclaim.changes
>
> Okay. I'd be okay with doing that. If you want that for the
> memfd_create() material, let me know.
>
> But, to take the larger point a little further. For system calls such
> as memfd_create(), presumably the most that that glibc is going to do
> is supply a wrapper and a header file with some declarations and
> constants. Does the glibc project then really want to get into the
> business of maintaining documentation for another project's APIs?
Yes, and no.
If glibc has wrappers for the functions it should document them.
There should be no hidden APIs that we export publicly that aren't
listed in the manual as being APIs we support.
Exactly what gets documented can be discussed at the time of the
inclusion of the API. For example the documentation might be only
the declaration of the API, safety information, a brief discussion,
and a reference to the permanent URL for the linux man-pages project
reference (we have one of those right? ;-)).
Does that clarify my position?
The POSIX docs, C standard docs, glibc manual, and linux man pages
all serve slightly different purposes.
I agree that duplicating documentation seems like a terrible waste
of resources, but if the audience and style changes we need to
adjust our documentation.
This kind of discussion is new territory, and we need to flesh out
exactly how we're going to collaborate on this kind of thing.
> Somehow, that seems a little... odd. (Yes, I know glibc is exposing
> the APIs, but in the end, it has fairly limited control over them.)
It does have limited control over the implementation, but it has
API and ABI guarantees to uphold, and those are serious issues for
applications and part of the reason we document things i.e. to give
our users a guarantee.
Cheers,
Carlos.