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

The write(2) libc function is just a C wrapper for the syscall. It's the functions from stdio.h that are buffered.
Ah ok sorry I got confused by the comments nesting level. I thought we were talking about the OpenBSD's version which uses puts