2017-02-10 16:32:55 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
2017-02-10 17:04:56 +01:00
|
|
|
menu "errno Decode Support"
|
2017-02-10 16:32:55 +01:00
|
|
|
|
|
|
|
config LIBC_STRERROR
|
|
|
|
bool "Enable strerror"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
strerror() is useful because it decodes 'errno' values into a human readable
|
2018-06-08 15:07:21 +02:00
|
|
|
strings. But it can also require a lot of memory. If this option is not
|
|
|
|
selected, strerror() will still exist in the build but it will not decode error
|
|
|
|
values. This option should be used by other logic to decide if it should use
|
|
|
|
strerror() or not. For example, the NSH application will not use strerror()
|
|
|
|
if this option is not selected; perror() will not use strerror() is this option
|
|
|
|
is not selected (see also NSH_STRERROR).
|
2017-02-10 16:32:55 +01:00
|
|
|
|
|
|
|
config LIBC_STRERROR_SHORT
|
|
|
|
bool "Use short error descriptions in strerror()"
|
|
|
|
default n
|
|
|
|
depends on LIBC_STRERROR
|
|
|
|
---help---
|
|
|
|
If this option is selected, then strerror() will use a shortened string when
|
|
|
|
it decodes the error. Specifically, strerror() is simply use the string that
|
|
|
|
is the common name for the error. For example, the 'errno' value of 2 will
|
|
|
|
produce the string "No such file or directory" is LIBC_STRERROR_SHORT
|
|
|
|
is not defined but the string "ENOENT" is LIBC_STRERROR_SHORT is defined.
|
|
|
|
|
|
|
|
config LIBC_PERROR_STDOUT
|
|
|
|
bool "perror() to stdout"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
POSIX requires that perror() provide its output on stderr. This option may
|
|
|
|
be defined, however, to provide perror() output that is serialized with
|
|
|
|
other stdout messages.
|
|
|
|
|
2017-02-10 17:04:56 +01:00
|
|
|
endmenu # errno Decode Support
|
|
|
|
|
|
|
|
menu "memcpy/memset Options"
|
2017-02-10 16:32:55 +01:00
|
|
|
|
|
|
|
config MEMCPY_VIK
|
|
|
|
bool "Vik memcpy()"
|
|
|
|
default n
|
|
|
|
depends on !LIBC_ARCH_MEMCPY
|
|
|
|
---help---
|
|
|
|
Select this option to use the optimized memcpy() function by Daniel Vik.
|
|
|
|
Select this option for improved performance at the expense of increased
|
|
|
|
size. See licensing information in the top-level COPYING file.
|
|
|
|
|
|
|
|
if MEMCPY_VIK
|
|
|
|
|
|
|
|
config MEMCPY_PRE_INC_PTRS
|
|
|
|
bool "Pre-increment pointers"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Use pre-increment of pointers. Default is post increment of pointers.
|
|
|
|
|
|
|
|
config MEMCPY_INDEXED_COPY
|
|
|
|
bool "Array indexing"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Copying data using array indexing. Using this option, disables the
|
|
|
|
MEMCPY_PRE_INC_PTRS option.
|
|
|
|
|
|
|
|
config MEMCPY_64BIT
|
|
|
|
bool "64-bit memcpy()"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Compiles memcpy() for architectures that suppport 64-bit operations
|
|
|
|
efficiently.
|
|
|
|
|
|
|
|
endif # MEMCPY_VIK
|
|
|
|
|
|
|
|
config MEMSET_OPTSPEED
|
|
|
|
bool "Optimize memset() for speed"
|
|
|
|
default n
|
|
|
|
depends on !LIBC_ARCH_MEMSET
|
|
|
|
---help---
|
|
|
|
Select this option to use a version of memcpy() optimized for speed.
|
|
|
|
Default: memcpy() is optimized for size.
|
|
|
|
|
|
|
|
config MEMSET_64BIT
|
|
|
|
bool "64-bit memset()"
|
|
|
|
default n
|
|
|
|
depends on MEMSET_OPTSPEED
|
|
|
|
---help---
|
|
|
|
Compiles memset() for architectures that suppport 64-bit operations
|
|
|
|
efficiently.
|
|
|
|
|
2017-02-10 17:04:56 +01:00
|
|
|
endmenu # memcpy/memset Options
|