Comment by incompatible
3 years ago
I think my C is getting rusty, but "write" operates on a file descriptor, doesn't it? It's unbuffered. The buffered versions are things like printf and puts.
3 years ago
I think my C is getting rusty, but "write" operates on a file descriptor, doesn't it? It's unbuffered. The buffered versions are things like printf and puts.
That's POSIX; C's equivalent is a FILE, which generally is buffered.
I thought Linux does in kernel buffering with `write`