I was talking with a teacher and he told me that read and write system calls was using buffers, because there is a variable in your system spec that controls how many times you can have access to the device you want to read/write on, and the system uses buffer to stock data while he is waiting for writing on the device.
I saw on an other Stack Overflow post (C fopen vs open) that one of the advantages of fopen
and fwrite
functions was that those functions were using buffers (which is supposed to be way faster).
I have read the man page of read
and write
sys calls, and the man pages do not talk about any buffers.
Did I misunderstood something ? How do read
/ write
C syscall buffers work?