Re: libpthread: simplify syscall wrapping/invocation

2016-04-02 Thread Mark Kettenis
> Authentication-Results: xs4all.nl; spf=pass smtp.mailfrom=openbsd.org; > dkim=pass header.d=gmail.com; dmarc=pass header.from=gmail.com > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=gmail.com; s=20120113; > h=date:from:to:subject:message-id:user-agent:mime-vers

libpthread: simplify syscall wrapping/invocation

2016-04-01 Thread Philip Guenther
This diff eliminates the need to _invoke_ syscalls via their aliases with the '_thread_sys_' prefix, and uses that for a few syscalls that didn't but should have. This is done via the REDIRECT_SYSCALL() macro which builds on the same gcc extensions that the libc cleanup this fall did. Applyin