From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from duke.felloff.net ([216.126.196.34]) by ewsd; Tue May 12 18:16:19 EDT 2020 Message-ID: <01B3F1F6E13505D0DD50DF89F6775859@felloff.net> Date: Wed, 13 May 2020 00:16:09 +0200 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] etimer() assumes seconds together with APE In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: self-healing information backend excellent bug report. yes, this is a bug. we already have a special header to compile plan9 code (such as libdraw, libsec and libmp) under ape. the native plan9 system calls are still available, but under a different name. the trick is to use the native ones when theres a conflict. --- a/sys/src/ape/lib/9/libc.h Tue May 12 23:18:48 2020 +0200 +++ b/sys/src/ape/lib/9/libc.h Wed May 13 00:12:27 2020 +0200 @@ -150,6 +150,7 @@ #define mallocz _MALLOCZ #define nsec _NSEC #define iounit _IOUNIT +#define sleep _SLEEP fix pushed. -- cinap