This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Principles for syscall wrappers, again
- From: Rich Felker <dalias at libc dot org>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 26 May 2015 11:52:58 -0400
- Subject: Re: Principles for syscall wrappers, again
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1505182114090 dot 16300 at digraph dot polyomino dot org dot uk> <20150519000918 dot GB17573 at brightrain dot aerifal dot cx> <1432630525 dot 3077 dot 36 dot camel at triegel dot csb> <20150526151000 dot GA17573 at brightrain dot aerifal dot cx> <mvmbnh78hly dot fsf at hawking dot suse dot de>
On Tue, May 26, 2015 at 05:48:41PM +0200, Andreas Schwab wrote:
> Rich Felker <dalias@libc.org> writes:
>
> > I think this is gratuitous NIH'ing and a disservice to applications.
> > Code which wants to use the futex API is already doing so via
> > syscall() with the existing API, and is most easily updated to use
> > futex().
>
> futex is much like socketcall: a multiplexer between more or less
> loosely related functions. See nptl/DESIGN*.txt for how the API really
> should look like.
That may be how it's used internally in glibc, but not elsewhere. And
that API lacks important things like the private/shared distinction
and features beyond basic wait/wake..
Rich