From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <140e7ec30811262349m764d4166kdd44141bf6afc2a3@mail.gmail.com> Date: Thu, 27 Nov 2008 16:49:21 +0900 From: sqweek To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <6d52fe9026af72d16ef5a01df80bfb00@proxima.alt.za> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6d52fe9026af72d16ef5a01df80bfb00@proxima.alt.za> Subject: Re: [9fans] APE and listen(2B) Topicbox-Message-UUID: 534cc4be-ead4-11e9-9d60-3106f5b1d025 On Thu, Nov 27, 2008 at 1:35 PM, wrote: > Now, (a) I'm hoping someone can compile reveal.c (pcc -o reveal > -D_POSIX_SOURCES -D_BSD_EXTENSION reveal.c -lbsd) in a pristine APE > environment and prove to me that it works unmodified or, (b) somebody > can give me some pointers on figuring out how to make sure it works. # pcc -o reveal -D_POSIX_SOURCE -D_BSD_EXTENSION reveal.c -lbsd cpp: reveal.c:58 No newline at end of file /tmp/reveal.c:45[stdin:934] syntax error, last name: socklen_t /tmp/reveal.c:55[stdin:944] case/default outside a switch /tmp/reveal.c:58[stdin:947] syntax error, last name: 0 pcc: cpp: 8c 71799: error After removing the (socklen_t*) typecast... # pcc -o reveal -D_POSIX_SOURCE -D_BSD_EXTENSION reveal.c -lbsd # ./reveal ERRNO: 12 socket accept: Invalid argument -sqweek