From a607ebac400857534582f0f50f0817ecc81812a6 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 18 Jun 2023 00:41:17 +0200 Subject: libc: experimental fread buffering support makes find(1) run 3x faster --- src/user/lib/stdio/file.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/user/lib/stdio/file.h') diff --git a/src/user/lib/stdio/file.h b/src/user/lib/stdio/file.h index 604b070..3bd64a1 100644 --- a/src/user/lib/stdio/file.h +++ b/src/user/lib/stdio/file.h @@ -1,5 +1,6 @@ #pragma once #include +#include struct _LIBC_FILE { int fd; @@ -7,4 +8,7 @@ struct _LIBC_FILE { bool eof; bool error; int extflags; + + char *readbuf; + size_t rblen, rbcap; }; -- cgit v1.2.3