News for hackers. Stuff that matters.
Re:Linus Torvalds apologizes for his behavior, takes time off by twtw on Sunday September 16, 2018 @06:51PM (#18001713)
It's not ironic at all. C doesn't not do anything promoting a syscall per byte. Even if you think that's what you are doing, libc is probably buffering for you behind the scenes.
Re:Linus Torvalds apologizes for his behavior, takes time off by LukeShu on Sunday September 16, 2018 @07:21PM (#18001842)
If you're using fopen(3) "stdio" (buffered I/O), then yeah, fread(3) and friends will buffer. But if you're using open(2) and read(2), libc's not going to buffer that.