:orphan: .. title:: CONFIG_NET_SOCKETS_POSIX_NAMES .. kconfig:: CONFIG_NET_SOCKETS_POSIX_NAMES CONFIG_NET_SOCKETS_POSIX_NAMES ############################## *POSIX names for Sockets API (without full POSIX API)* Type: ``bool`` Help ==== .. code-block:: none With this option, Socket API functions are available under the standard POSIX names like socket(), recv(), and close(), etc., even if full POSIX API (CONFIG_POSIX_API) is not enabled. (Note that close() may require a special attention, as in POSIX it closes any file descriptor, while with this option enabled, it will apply only to sockets.) Various networking libraries require either CONFIG_NET_SOCKETS_POSIX_NAMES or CONFIG_POSIX_API to be set. If both are disabled, Zephyr's socket functions will be available (only) with ``zsock_`` prefix, (e.g. `zsock_socket`). This is useful only in peculiar cases, e.g. when integrating with 3rd-party socket libraries. Direct dependencies =================== !\ :kconfig:`POSIX_API ` && \ :kconfig:`NET_SOCKETS ` && \ :kconfig:`NETWORKING ` *(Includes any dependencies from ifs and menus.)* Default ======= - y if !\ :kconfig:`POSIX_API ` Symbols that select this symbol =============================== - \ :kconfig:`MCUMGR_SMP_UDP ` - \ :kconfig:`HAWKBIT ` - \ :kconfig:`UPDATEHUB ` - \ :kconfig:`TFTP_LIB ` - \ :kconfig:`LWM2M ` - \ :kconfig:`SOCKS ` Kconfig definition ================== At ``/net/lib/sockets/Kconfig:13`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:44`` → ``/Kconfig:39`` → ``/net/Kconfig:89`` → ``/net/lib/Kconfig:30`` Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → Network Libraries → BSD Sockets compatible API .. code-block:: kconfig config NET_SOCKETS_POSIX_NAMES bool "POSIX names for Sockets API (without full POSIX API)" default y if !POSIX_API depends on !POSIX_API && NET_SOCKETS && NETWORKING help With this option, Socket API functions are available under the standard POSIX names like socket(), recv(), and close(), etc., even if full POSIX API (CONFIG_POSIX_API) is not enabled. (Note that close() may require a special attention, as in POSIX it closes any file descriptor, while with this option enabled, it will apply only to sockets.) Various networking libraries require either CONFIG_NET_SOCKETS_POSIX_NAMES or CONFIG_POSIX_API to be set. If both are disabled, Zephyr's socket functions will be available (only) with ``zsock_`` prefix, (e.g. `zsock_socket`). This is useful only in peculiar cases, e.g. when integrating with 3rd-party socket libraries. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*