Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/releases/release-notes-4.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ Deprecated APIs and options
* :c:func:`bt_ctlr_set_public_addr` is deprecated in favor of using
:c:struct:`bt_hci_cp_vs_write_bd_addr` for setting the public Bluetooth device address.

* :kconfig:option:`CONFIG_XOPEN_STREAMS` was deprecated. Use :kconfig:option:`CONFIG_XSI_STREAMS` instead.

New APIs and options
====================

Expand Down
2 changes: 1 addition & 1 deletion doc/services/portability/posix/conformance/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,


Expand Down
2 changes: 1 addition & 1 deletion doc/services/portability/posix/option_groups/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lib/posix/Kconfig.toolchain
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ config TC_PROVIDES_XSI_SIGNALS
config TC_PROVIDES_XSI_SINGLE_PROCESS
bool

config TC_PROVIDES_XSI_STREAMS
bool

config TC_PROVIDES_XSI_SYSTEM_DATABASE
bool

Expand Down
9 changes: 7 additions & 2 deletions lib/posix/options/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,20 @@ 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)

if (NOT CONFIG_TC_PROVIDES_XSI_SINGLE_PROCESS)
zephyr_library_sources_ifdef(CONFIG_XSI_SINGLE_PROCESS
env_common.c
xsi_single_process.c
)
endif()

if(NOT CONFIG_TC_PROVIDES_XSI_STREAMS)
zephyr_library_sources_ifdef(CONFIG_XSI_STREAMS stropts.c)
endif()
if(CONFIG_XSI_STREAMS)
zephyr_compile_definitions(-D_XOPEN_STREAMS=${POSIX_VERSION})
endif()

if (NOT CONFIG_TC_PROVIDES_XSI_SYSTEM_LOGGING)
zephyr_library_sources_ifdef(CONFIG_XSI_SYSTEM_LOGGING syslog.c)
endif()
Expand Down
9 changes: 8 additions & 1 deletion lib/posix/options/Kconfig.xsi_streams
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
#
# 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
fattach(), fdetach(), getmsg(), getpmsg(), putmsg(), and putpmsg().

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.
2 changes: 1 addition & 1 deletion samples/modules/thrift/hello/client/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,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_COMMON_LIBC_THRD=y
CONFIG_DYNAMIC_THREAD=y
CONFIG_THREAD_STACK_INFO=y
Expand Down
2 changes: 1 addition & 1 deletion samples/modules/thrift/hello/server/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/thrift/ThriftTest/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/posix/common/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/posix/eventfd/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 1 addition & 1 deletion tests/posix/headers/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_POSIX_PRIORITY_SCHEDULING=y

# For putmsg(), etc
CONFIG_XOPEN_STREAMS=y
CONFIG_XSI_STREAMS=y

# for when CONFIG_POSIX_API is not selected
CONFIG_POSIX_THREADS=y
Expand Down
2 changes: 1 addition & 1 deletion tests/posix/xsi_streams/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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