This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_ERRNO

Enable errno support

Type: bool

Help

Enable per-thread errno in the kernel. Application and library code must
include errno.h provided by the C library (libc) to use the errno
symbol. The C library must access the per-thread errno via the
z_errno() symbol.

Default

  • y

Symbols that select this symbol

Kconfig definition

At kernel/Kconfig:198

Included via Kconfig:8Kconfig.zephyr:38

Menu path: (Top) → General Kernel Options

config ERRNO
    bool "Enable errno support"
    default y
    help
      Enable per-thread errno in the kernel. Application and library code must
      include errno.h provided by the C library (libc) to use the errno
      symbol. The C library must access the per-thread errno via the
      z_errno() symbol.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)