setvbuf: Add support for disabling I/O buffering. Initially cut; untested.

This commit is contained in:
Gregory Nutt
2017-02-09 09:24:44 -06:00
parent e6558df4ad
commit 1d290c2b37
72 changed files with 461 additions and 330 deletions
+5 -3
View File
@@ -58,10 +58,12 @@
#define FILENAME_MAX _POSIX_NAME_MAX
/* The size of the I/O buffers */
/* The (default) size of the I/O buffers */
#if CONFIG_STDIO_BUFFER_SIZE > 0
# define BUFSIZ CONFIG_STDIO_BUFFER_SIZE
#if defined(CONFIG_STDIO_BUFFER_SIZE) && CONFIG_STDIO_BUFFER_SIZE > 0
# define BUFSIZ CONFIG_STDIO_BUFFER_SIZE
#else
# define BUFSIZ 64
#endif
/* The following three definitions are for ANSI C, used by setvbuf */