summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/03_stdlib/41_sleep
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-05-19 15:42:16 +0200
committerJo-Philipp Wich <jo@mein.io>2022-05-20 16:04:14 +0200
commit090b426b00a82cac7b4ea386b077e21ae32f1c17 (patch)
tree7ae656e693e484017cc416cf0de2bd000cc709fb /tests/custom/03_stdlib/41_sleep
parentf7f6966044a6d705fe60b091c4994931e4c8241c (diff)
fs: avoid input buffering with small limits in fs.readfile()
If the read limit passed to fs.readfile() is smaller than BUFSIZ then disable stdio input buffering to avoid overreading the underlying file. This is useful when reading small amounts of data from special files such as /dev/urandom, where a readfile call limited to 16 bytes might actually read 4096 due to stdio buffering. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/custom/03_stdlib/41_sleep')
0 files changed, 0 insertions, 0 deletions