setvbuf implemented