Principles for syscall wrappers, again
Rich Felker
dalias@libc.org
Tue May 26 17:07:00 GMT 2015
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
More information about the Libc-alpha
mailing list