Re: [9fans] APE and listen(2B)

2008-11-27 Thread lucio
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 The precise error I get as well. Thank you for confirming. I'd forgotten that one of the reasons for doing this was to add

[9fans] plot(1) to file?

2008-11-27 Thread sqweek
Hey guys, I've got some data I want to put in a graph. I got graph |plot going easy enough, which gets me a nice pic on the screen, but I can't work out how to generate an image file instead. plot(1) mentions troff which convinces me that it is possible, I just can't figure out how. I'm using

Re: [9fans] APE and listen(2B)

2008-11-27 Thread lucio
the real solution involves reference counting. but in your case, not forking would make more sense. in fact, if you wanted to start reveal from listen(1), you could dispense with the for(;;) and the fork. Of course, but the point is to implement a Posix utility under APE, specially as the

Re: [9fans] APE and listen(2B)

2008-11-27 Thread erik quanstrom
On Thu, Nov 27, 2008 at 1:35 PM, [EMAIL PROTECTED] 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

Re: [9fans] plot(1) to file?

2008-11-27 Thread erik quanstrom
I've got some data I want to put in a graph. I got graph |plot going easy enough, which gets me a nice pic on the screen, but I can't work out how to generate an image file instead. plot(1) mentions troff which convinces me that it is possible, I just can't figure out how. I'm using p9p,

Re: [9fans] plot(1) to file?

2008-11-27 Thread Steve Simon
You could use grap(1) - the troff preprocessor. -Steve