CYGPKG_LIBC_STDIO
Boolean
This enables support for standard I/O functions from <stdio.h>.
CYGIMP_LIBC_STDIO_INLINES
Boolean
This option chooses whether some of the particularly simple functions from <stdio.h> are available as inline functions. This may improve performance, and as the functions are small, may even improve code size.
FOPEN_MAX
Count
This option controls the guaranteed minimum number of simultaneously open files. The ISO C standard requires it to be defined (para 7.9.1), and if strictly compliant, it must be at least 8 (para 7.9.3). In practice it can be as low as 3 - for stdin, stdout and stderr.
FILENAME_MAX
Count
This option defines the maximum allowed size of a filename in characters. The ISO C standard requires it to be defined (para 7.9.1).
L_tmpnam
Count
This option defines the maximum allowed size of filenames for temporary files as generated by tmpnam(). It is measured in characters, and the ISO C standard requires it to be defined (para 7.9.1).
TMP_MAX
Count
This option defines the minimum number of unique file names generated by tmpnam(). The ISO C standard requires it to be defined (para 7.9.1).
CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO
Boolean
This option controls whether input/output through the <stdio.h> functions is buffered. This may save some memory per file. It is equivalent to putting every file into non-buffered mode (_IONBF) through setvbuf(), except now it can never be altered back to buffered mode. Disabling buffering is strictly non-compliant with the ISO C standard.
CYGNUM_LIBC_STDIO_BUFSIZE
Count
This option defines the default size of buffer used with calls to setbuf(), and is the default size for buffered streams that have not had either setbuf() or setvbuf() invoked on them. It is exactly equivalent to the standard constant BUFSIZE, except that it is 0 if CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO is disabled. The ISO C standard requires this to be defined (para 7.9.1), and says it must be at least 256 (para 7.9.2).
CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF
Boolean
This option controls whether I/O buffers are implemented dynamically within the stdio implementation. Otherwise they will be static, and cannot be changed by setbuf()/setvbuf(). If they are static (i.e. this option is disabled), any attempt to use an arbitrary buffer size, or to pass a user-supplied buffer to setbuf() or setvbuf() will fail - the buffer is implemented internally as a static array of taking the size of the configuration option BUFSIZE. The only exception is if a user buffer is not supplied, and the buffer size requested is less than BUFSIZE. In this case, the buffer will be configured to only use that amount of buffering. However the unused memory left over will NOT be freed. If this option is enabled, then CYGPKG_LIBC_MALLOC must also be enabled. Either setting can be considered to be compliant with the ISO C standard.
CYGFUN_LIBC_STDIO_ungetc
Boolean
This option controls whether ungetc() is supported. If not, then some space can be saved, and speed is improved. Note that you MUST have this defined if you want to use the scanf() family of functions.
CYGPKG_LIBC_STDIO_OPEN
Boolean
fopen() and fclose() use dynamic memory allocation routines to allocate memory for new FILE structure pointers. This option, along with CYGPKG_LIBC_MALLOC, should be enabled to use fopen() and fclose(). If disabled, only the default console streams - stdin, stdout and stderr - will be available.
CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE
String
This option allows you to choose the default console device. In the current implementation, all these devices begin with the prefix /dev/ and are followed by the name of a device as listed in the devs/common/current/src/table.cxx file in the source repository. Look at that file to see list of available devices.
CYGPKG_LIBC_STDIO_FLOATING_POINT
Dummy
This component allows floating point support to be enabled in certain standard I/O functions.
CYGSEM_LIBC_STDIO_PRINTF_FLOATING_POINT
Boolean
This option enables the use of floating point number output in the printf() family (i.e. printf(), sprintf(), vprintf(), etc.) of functions. A substantial amount of code space can be saved if this option is disabled. If it is disabled then floating point specifiers (%e, %f, %g) are ignored, and nothing is output.
CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT
Boolean
This option enables the use of floating point number conversion in the scanf() family (i.e. scanf(), sscanf(), vscanf(), etc.) of functions. A substantial amount of code space can be saved if this option is disabled. If it is disabled then floating point specifiers (%e, %f, %g) are ignored, and nothing is converted.