2012-02-03 06:35, Paul Eggert skrev:
On 02/02/2012 08:14 PM, Jens Staal wrote:
So I should use *rp and *wp
- but how?
I suggest getting a copy of the Plan 9 source code,
and looking at how getchar and putchar work.
from stdio.h:

extern int getchar(void);
#define getchar() getc(stdin)

extern int putchar(int);
#define putchar() putc(c, stdout)

I think the problem basically is that I do not fully understand what is done in all those other OSes defined in fpurge.c and what is expected from this function.... Sorry for being so nooby. I am basically (for fun) trying to port stuff to Plan9 as a hobby project [1] and ran into this issue when trying to port GNU m4 and I am sort of lost...

[1] http://code.google.com/p/ports2plan9/

Reply via email to