Does getc(3) use the read(2) syscall?

Ivan Voras ivoras at freebsd.org
Wed Feb 3 16:40:15 UTC 2010


On 02/03/10 14:23, Daniel Molina Wegener wrote:
> On Wednesday 03 February 2010,
> Stefan Midjich<swehack at gmail.com>  wrote:

>> So my question is primarily, does getc use the read system call eventually?
>
>    No, certainly not.

I think you missed the "eventually" part :)

Eventually, it does - but not for every single byte read.



More information about the freebsd-hackers mailing list