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 linux-m68k dot org>
- Cc: Szabolcs Nagy <szabolcs dot nagy at arm dot com>, Torvald Riegel <triegel at redhat dot com>, Joseph Myers <joseph at codesourcery dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Mon, 1 Jun 2015 21:20:30 -0400
- Subject: Re: Principles for syscall wrappers, again
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1505291103540 dot 2439 at digraph dot polyomino dot org dot uk> <1432900697 dot 30849 dot 178 dot camel at triegel dot csb> <alpine dot DEB dot 2 dot 10 dot 1505291301400 dot 18021 at digraph dot polyomino dot org dot uk> <1432908585 dot 30849 dot 213 dot camel at triegel dot csb> <alpine dot DEB dot 2 dot 10 dot 1505291524290 dot 27491 at digraph dot polyomino dot org dot uk> <1432923248 dot 4832 dot 40 dot camel at triegel dot csb> <556C6160 dot 201 at arm dot com> <m2oakz9i17 dot fsf at linux-m68k dot org> <20150601225439 dot GF17573 at brightrain dot aerifal dot cx> <m2a8wj9ff6 dot fsf at linux-m68k dot org>
On Tue, Jun 02, 2015 at 01:28:45AM +0200, Andreas Schwab wrote:
> Congratulations, you just argued for a proper futex API.
I don't see anything wrong with that. This isn't a competition to see
who's right and wrong. In fact I think this is a good reason to have
the simple futex_wait and futex_wake functions that cover a large
portion of real-world usage cases, but not a reason to omit the
general function that follows the existing API and provides all
functionality.
Rich