Prefer setvbuf() to setlinebuf() for portability; ok deraadt@