i/o redirection

David Terlinden davidt at ttidca.UUCP
Wed Apr 17 01:17:12 AEST 1985


gsc asks about buffering of stdout of execed processes.  I say that it's not
the fault of the OS but of the stdio library.  If the flag field in _iob[1]
says to buffer output (the default value), the first output function to stdout
will notice this and allocate a buffer.  Since _iob is initialized data of
the new process, anything you do before the exec has no effect.  Can anyone
suggest anything other than modifying "putchar()" or "_iob[]"?



More information about the Comp.lang.c mailing list