From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <42aa45f7d293eb1405d891253a687a65@proxima.alt.za> To: 9fans@9fans.net Date: Fri, 30 Jan 2009 06:38:43 +0200 From: lucio@proxima.alt.za In-Reply-To: <0af685ebe4f62a20a70ae58d427cdaa2@smgl.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Ogg/Vorbis ported Topicbox-Message-UUID: 8f607b94-ead4-11e9-9d60-3106f5b1d025 > As with exit(), it can be replaced automatically with exits() but you > still have to figure out what message you want in your exits(). If anyone is interested, this is what I used as a compatibility shim: #include #include void exit (int code) { switch (code) { case -1: exits("FAILURE"); case 0: exits(0); default: exits("Unknown condition"); } } One could instead print("%d", code), or print("FAILURE: %d", code). Two cents, please! ++L PS: I have a small compatibility library I seldom use. It has been useful at times. The version on sources (contrib/lucio/sys/src/pub/compat) looks a bit skinny, I may have lost something along the way.