diff options
Diffstat (limited to 'nuttx/libc')
-rw-r--r-- | nuttx/libc/Kconfig | 21 | ||||
-rw-r--r-- | nuttx/libc/stdio/Make.defs | 4 |
2 files changed, 25 insertions, 0 deletions
diff --git a/nuttx/libc/Kconfig b/nuttx/libc/Kconfig index 8f9569bde..138793aad 100644 --- a/nuttx/libc/Kconfig +++ b/nuttx/libc/Kconfig @@ -192,6 +192,27 @@ config LIBC_PERROR_STDOUT be defined, however, to provide perror() output that is serialized with other stdout messages. +config LIBC_TMPDIR + string "Temporary file directory" + default "/tmp" + depends on FS_WRITABLE + ---help--- + If a write-able file system is selected, this string will be + provided to specify the full path to a directory where temporary + files can be created. This would be a good application of RAM disk: + To provide temporary storage for application data. + +config LIBC_MAX_TMPFILE + int "Maximum size of a temporary file path" + default 32 + depends on FS_WRITABLE + ---help--- + If a write-able file system is selected, then temporary file may be + supported at the path provided by LIBC_TMPDIR. The tmpnam() interface + keeps a static copy of this last filename produced; this value is the + maximum size of that last filename. This size is the size of the full + file path. + config ARCH_LOWPUTC bool "Low-level console output" default "y" diff --git a/nuttx/libc/stdio/Make.defs b/nuttx/libc/stdio/Make.defs index 284c725c4..66914b30f 100644 --- a/nuttx/libc/stdio/Make.defs +++ b/nuttx/libc/stdio/Make.defs @@ -66,6 +66,10 @@ CSRCS += lib_stdoutstream.c lib_stdsistream.c lib_stdsostream.c lib_perror.c CSRCS += lib_feof.c lib_ferror.c lib_clearerr.c endif + +ifeq ($(CONFIG_FS_WRITABLE),y) +CSRCS += lib_tempnam.c lib_tmpnam.c +endif endif # Other support that depends on specific, configured features. |