zephyr/tests
Chris Friedt bc4374b5fe posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO
The POSIX_MAX_FDS option does not correspond to any standard
POSIX option. It was used to define the size of the file
descriptor table, which is by no means exclusively used by
POSIX (also net, fs, ...).

POSIX_MAX_FDS is being deprecated in order to ensure that
Zephyr's POSIX Kconfig variables correspond to those defined in
the specification, as of IEEE 1003.1-2017. Namely,
POSIX_OPEN_MAX. CONFIG_POSIX_MAX_OPEN_FILES is being deprecated
for the same reason.

To mitigate any possible layering violations, that option is
not user selectable. It tracks the newly added
CONFIG_ZVFS_OPEN_MAX option, which is native to Zephyr.

With this deprecation, we introduce the following Kconfig
options that map directly to standard POSIX Option Groups by
simply removing "CONFIG_":

* CONFIG_POSIX_DEVICE_IO

Similarly, with this deprecation, we introduce the following
Kconfig options that map directly to standard POSIX Options by
simply removing "CONFIG":

* CONFIG_POSIX_OPEN_MAX

In order to maintain parity with the current feature set, we
introduce the following Kconfig options.

* CONFIG_POSIX_DEVICE_IO_ALIAS_CLOSE
* CONFIG_POSIX_DEVICE_IO_ALIAS_OPEN
* CONFIG_POSIX_DEVICE_IO_ALIAS_READ
* CONFIG_POSIX_DEVICE_IO_ALIAS_WRITE

Gate open(), close(), read(), and write() via the
CONFIG_POSIX_DEVICE_IO Kconfig option and move
implementations into device_io.c, to be conformant with the
spec.

Lastly, stage function names for upcoming ZVFS work, to be
completed as part of the LTSv3 Roadmap (e.g. zvfs_open(), ..).

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-06-04 16:27:12 -05:00
..
application_development hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
arch arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
benchmarks modules: mbedtls: rename CONFIG_MBEDTLS_MAC_*_ENABLED and rm duplicates 2024-05-29 08:39:26 +02:00
bluetooth arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
boards tests/boards: Add mtk_adsp device test 2024-06-01 05:40:05 -07:00
boot tests: boot: Add nrf54l15pdk to platform_allow list in with_mcumgr tests 2024-06-04 13:41:29 +02:00
bsim Bluetooth: Audio: Spring cleaning 2024-06-04 13:37:53 +02:00
cmake tests: cmake: overlays: Add soc_folder_overlay test 2024-04-29 15:08:35 +01:00
crypto random: enable AES support CTR_DRBG CSPRNG when it relies on Mbed TLS 2024-06-03 16:13:05 -04:00
drivers arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
kconfig/configdefault tests: Remove stray uses of CONFIG_ZTEST_NEW_API 2023-10-26 10:55:38 +02:00
kernel arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
lib posix: timers: deprecate CONFIG_POSIX_CLOCK and TIMER 2024-06-04 16:27:12 -05:00
misc build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
modules posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
net posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
posix posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
robot resc: cmake: robot: Rename Renode variable 2024-05-28 12:54:52 +02:00
subsys arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
unit tests: unit: crc: Add OpenPGP CRC-24 tests 2024-05-29 10:51:21 -07:00
ztest arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
test_config.yaml twister: tests: Add some generic driver tests to the scope 2023-11-30 19:38:50 -05:00