On 02/03/2012 07:25 AM, Jens Staal wrote: >> I suggest getting a copy of the Plan 9 source code, >> and looking at how getchar and putchar work. > from stdio.h:
Sorry, I meant the source code, as in stdio.c (or putchar.c, or whatever). That is, you can't merely look at the headers -- you need to get a copy of the Plan 9 library code. Quite possibly this is in a different distribution from what you have, but it should be available.