posix: xsi: streams: deprecate CONFIG_XOPEN_STREAMS (again)
CONFIG_XOPEN_STREAMS does not follow the pattern of other XSI Option Groups, where the Option Group name is not the same as the feature test macro that indicates it is supported by the implementation. Deprecate CONFIG_XOPEN_STREAMS and rename it to CONFIG_XSI_STREAMS. For more information, please see https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/\ V1_chap02.html#tag_02_01_05_09 Signed-off-by: Chris Friedt <chris@fr4.co>
This commit is contained in:
committed by
Fabio Baltieri
parent
a25598eab9
commit
25c2aaef9b
@@ -97,7 +97,7 @@ POSIX System Interfaces
|
||||
_XOPEN_CRYPT, -1,
|
||||
:ref:`_XOPEN_REALTIME <posix_option_group_xsi_realtime>`, 700, :kconfig:option:`CONFIG_XSI_REALTIME`
|
||||
_XOPEN_REALTIME_THREADS, -1,
|
||||
:ref:`_XOPEN_STREAMS<posix_option_xopen_streams>`, 200809L, :kconfig:option:`CONFIG_XOPEN_STREAMS`
|
||||
:ref:`_XOPEN_STREAMS<posix_option_xopen_streams>`, 200809L, :kconfig:option:`CONFIG_XSI_STREAMS`
|
||||
_XOPEN_UNIX, -1,
|
||||
|
||||
|
||||
|
||||
@@ -1111,7 +1111,7 @@ implemented in Zephyr but are provided so that conformant applications can still
|
||||
Unimplemented functions in this option group will fail, setting ``errno`` to ``ENOSYS``
|
||||
:ref:`†<posix_undefined_behaviour>`.
|
||||
|
||||
Enable this option with :kconfig:option:`CONFIG_XOPEN_STREAMS`.
|
||||
Enable this option with :kconfig:option:`CONFIG_XSI_STREAMS`.
|
||||
|
||||
.. csv-table:: _XOPEN_STREAMS
|
||||
:header: API, Supported
|
||||
|
||||
@@ -165,7 +165,7 @@ if(NOT CONFIG_TC_PROVIDES_XSI_REALTIME)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_SHARED_MEMORY_OBJECTS shm.c)
|
||||
endif()
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_XOPEN_STREAMS stropts.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_XSI_STREAMS stropts.c)
|
||||
|
||||
if(NOT CONFIG_TC_PROVIDES_XSI_SINGLE_PROCESS)
|
||||
zephyr_library_sources_ifdef(CONFIG_XSI_SINGLE_PROCESS
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config XOPEN_STREAMS
|
||||
config XSI_STREAMS
|
||||
bool "X/Open streams"
|
||||
help
|
||||
This option provides support for the X/Open Streams interface, including functions such as
|
||||
@@ -10,3 +10,10 @@ config XOPEN_STREAMS
|
||||
|
||||
For more information, please see
|
||||
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap02.html#tag_02_01_05_09
|
||||
|
||||
config XOPEN_STREAMS
|
||||
bool "X/Open Streams [DEPRECATED]"
|
||||
select XSI_STREAMS
|
||||
select DEPRECATED
|
||||
help
|
||||
This option is deprecated. Please use XSI_STREAMS instead.
|
||||
|
||||
@@ -5,7 +5,6 @@ CONFIG_CPP=y
|
||||
CONFIG_STD_CPP17=y
|
||||
CONFIG_CPP_EXCEPTIONS=y
|
||||
CONFIG_POSIX_API=y
|
||||
CONFIG_XOPEN_STREAMS=y
|
||||
CONFIG_COMMON_LIBC_THRD=y
|
||||
CONFIG_DYNAMIC_THREAD=y
|
||||
CONFIG_THREAD_STACK_INFO=y
|
||||
@@ -14,6 +13,7 @@ CONFIG_NET_SOCKETS=y
|
||||
CONFIG_NET_SOCKETPAIR=y
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=16384
|
||||
CONFIG_EVENTFD=y
|
||||
CONFIG_XSI_STREAMS=y
|
||||
|
||||
CONFIG_THRIFT=y
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ CONFIG_CPP=y
|
||||
CONFIG_STD_CPP17=y
|
||||
CONFIG_CPP_EXCEPTIONS=y
|
||||
CONFIG_POSIX_API=y
|
||||
CONFIG_XOPEN_STREAMS=y
|
||||
CONFIG_XSI_STREAMS=y
|
||||
CONFIG_NET_SOCKETPAIR=y
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=16384
|
||||
CONFIG_EVENTFD=y
|
||||
|
||||
@@ -7,7 +7,7 @@ CONFIG_STD_CPP17=y
|
||||
CONFIG_CPP_EXCEPTIONS=y
|
||||
CONFIG_GLIBCXX_LIBCPP=y
|
||||
CONFIG_POSIX_API=y
|
||||
CONFIG_XOPEN_STREAMS=y
|
||||
CONFIG_XSI_STREAMS=y
|
||||
CONFIG_NETWORKING=y
|
||||
CONFIG_NET_TCP=y
|
||||
CONFIG_NET_SOCKETS=y
|
||||
|
||||
@@ -16,7 +16,7 @@ CONFIG_TEST_EXTRA_STACK_SIZE=4096
|
||||
CONFIG_POSIX_C_LIB_EXT=y
|
||||
|
||||
# for putmsg()
|
||||
CONFIG_XOPEN_STREAMS=y
|
||||
CONFIG_XSI_STREAMS=y
|
||||
|
||||
# for sleep(), getpid()
|
||||
CONFIG_POSIX_MULTI_PROCESS=y
|
||||
|
||||
@@ -9,5 +9,5 @@ CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_ZTEST=y
|
||||
|
||||
CONFIG_POSIX_API=y
|
||||
CONFIG_XOPEN_STREAMS=y
|
||||
CONFIG_XSI_STREAMS=y
|
||||
CONFIG_EVENTFD=y
|
||||
|
||||
@@ -2,4 +2,4 @@ CONFIG_POSIX_API=y
|
||||
CONFIG_ZTEST=y
|
||||
|
||||
CONFIG_POSIX_AEP_CHOICE_BASE=y
|
||||
CONFIG_XOPEN_STREAMS=y
|
||||
CONFIG_XSI_STREAMS=y
|
||||
|
||||
Reference in New Issue
Block a user