in reply to Re^4: Speed reading (files)
in thread Speed reading (files)
Good question. I've heard it many times of the years, but I can't say where. Maybe it's when the handle is not a file handle. FreeBSD's man 2 read supports this theory: "The system guarantees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left before the end-of-file, but in no other case."
btw, [doc://sysread] works better than [sysread].
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Speed reading (files)
by BrowserUk (Patriarch) on Aug 05, 2005 at 05:23 UTC | |
by kwaping (Priest) on Aug 05, 2005 at 14:49 UTC | |
by BrowserUk (Patriarch) on Aug 05, 2005 at 14:58 UTC | |
by kwaping (Priest) on Aug 05, 2005 at 15:38 UTC |