-
CONFIG_NET_SOCKETS_POSIX_NAMES
¶
Standard POSIX names for Sockets API
Type: bool
Help¶
By default, Sockets API function are prefixed with zsock_
to avoid
namespacing issues. If this option is enabled, they will be provided
with standard POSIX names like socket(), recv(), and close(), to help
with porting existing code. Note that close() may require a special
attention, as in POSIX it closes any file descriptor, while with this
option enabled, it will still apply only to sockets.
Defaults¶
No defaults. Implicitly defaults to n
.
Symbols that select this symbol¶
Kconfig definition¶
At subsys/net/lib/sockets/Kconfig:16
Included via Kconfig:10
→ Kconfig.zephyr:39
→ subsys/Kconfig:24
→ subsys/net/Kconfig:84
→ subsys/net/lib/Kconfig:29
Menu path: (top menu) → Networking → Network Libraries → BSD Sockets compatible API
config NET_SOCKETS_POSIX_NAMES bool prompt "Standard POSIX names for Sockets API" ifNET_SOCKETS
&&NETWORKING
depends onNET_SOCKETS
&&NETWORKING
help By default, Sockets API function are prefixed withzsock_
to avoid namespacing issues. If this option is enabled, they will be provided with standard POSIX names like socket(), recv(), and close(), to help with porting existing code. Note that close() may require a special attention, as in POSIX it closes any file descriptor, while with this option enabled, it will still apply only to sockets.
(Definitions include propagated dependencies, including from if’s and menus.)