Patch from Eric Norum:
With this in place, it is possible to fdopen a TCP stream socket and getc/fprintf/etc. on the STDIO stream!