From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <1542475123.2676631.1580308920.7D7BC501@webmail.messagingengine.com> From: Ethan Gardener To: 9fans@9fans.net MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" References: <20170106093414.GA26942@alice> <1542404048.1432707.1579698600.25EB527C@webmail.messagingengine.com> In-Reply-To: Date: Sat, 17 Nov 2018 17:18:43 +0000 Subject: Re: [9fans] A heartfelt thanks... :-) Topicbox-Message-UUID: ef860ab6-ead9-11e9-9d60-3106f5b1d025 On Fri, Nov 16, 2018, at 11:35 PM, Giacomo Tesio wrote: > Il giorno ven 16 nov 2018 alle ore 22:39 Ethan Gardener > ha scritto: > > Please forgive my laziness in not reading the code, but how do you actually implement sleep? Does the process read a file guaranteed to block forever, or what? > > No problem. Actually sleep is very short: > https://github.com/JehanneOS/jehanne/blob/master/sys/src/lib/c/9sys/sleep.c#L23 > > The blocking system call used in sleep is rendezvous that, in Jehanne, > can never occur at tag ((void*)~0). A rendevous with nothing! That's neat. Does C require casts for void pointer? The casts in the rendevous line make it hard to read.