3 ms·
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
by nasretdinov 1y 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
- lieks 1y agoThe write(2) libc function is just a C wrapper for the syscall. It's the functions from stdio.h that are buffered.
- nasretdinov 1y agoAh ok sorry I got confused by the comments nesting level. I thought we were talking about the OpenBSD's version which uses puts