From c0a1d8e960eb518a04bbc41e6aae658720fe122a Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Wed, 18 Nov 2015 15:09:43 -0500 Subject: [PATCH] stdio: Define BUFSIZ --- include/stdio.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/stdio.h b/include/stdio.h index 3a0745c84f3..057a58c9a8f 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -58,7 +58,13 @@ #define FILENAME_MAX _POSIX_NAME_MAX -/* File system error values *************************************************/ +/* The size of the I/O buffers */ + +#if CONFIG_STDIO_BUFFER_SIZE > 0 +# define BUFSIZ CONFIG_STDIO_BUFFER_SIZE +#endif + +/* File system error values */ #define EOF (-1) @@ -94,7 +100,7 @@ #define L_tmpnam CONFIG_LIBC_MAX_TMPFILE -/* the maximum number of unique temporary file names that can be generated */ +/* The maximum number of unique temporary file names that can be generated */ #define TMP_MAX 56800235584ull