diff options
author | dzwdz | 2023-06-18 00:41:17 +0200 |
---|---|---|
committer | dzwdz | 2023-06-18 00:41:17 +0200 |
commit | a607ebac400857534582f0f50f0817ecc81812a6 (patch) | |
tree | f59252d8792eb5dcfe2010fbebf64acabc6b1001 /src/user/lib/include | |
parent | 895138e65b90c3f20712b9c31690d84a6aa956ac (diff) |
libc: experimental fread buffering support
makes find(1) run 3x faster
Diffstat (limited to 'src/user/lib/include')
-rw-r--r-- | src/user/lib/include/stdio.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h index a030f13..48d5058 100644 --- a/src/user/lib/include/stdio.h +++ b/src/user/lib/include/stdio.h @@ -14,11 +14,10 @@ #define SEEK_END 3 #define _IONBF 0 -#define _IOFBF 0 -#define _IOLBF 1 +#define _IOFBF 1 +#define _IOLBF 2 -/* size of file buffers. not that we have any */ -#define BUFSIZ 1024 +#define BUFSIZ 4096 /* stop fread() from trying to fill the entire buffer before returning * i.e. it will call _sys_read() exactly once */ |