Y
Hacker News
new
|
ask
|
show
|
jobs
by
nasretdinov
395 days ago
I don't believe puts is performing unbuffered I/O though. It's a libc function, not a direct syscall. Correct me if I'm wrong of course
1 comments
lieks
395 days ago
The write(2) libc function is just a C wrapper for the syscall. It's the functions from stdio.h that are buffered.
link
nasretdinov
395 days ago
Ah ok sorry I got confused by the comments nesting level. I thought we were talking about the OpenBSD's version which uses puts
link