zephyr/samples/subsys
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
..
bindesc samples bindesc: Add runtime test and change default to native_sim 2023-11-20 12:02:48 +01:00
canbus samples/subsys: Use hwmv2 native targets identifiers 2024-03-15 16:13:12 +01:00
console hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
debug arch posix fuzzing: Move kconfig options to sample 2024-05-02 20:46:03 +03:00
display boards: Round Display for Xiao 2024-05-07 17:57:23 -04:00
edac doc: samples: edac: add syntax highlight to code blocks 2023-10-18 15:51:22 +03:00
fs samples/fs/littlefs: Allow building for nrf54l15pdk 2024-06-04 08:00:46 +02:00
input boards: rename and update esp32 related conf and overlay files 2024-04-23 15:36:13 +02:00
ipc samples: ipc: icmsg: Add support for stm32h747i_disco 2024-05-24 07:52:06 -04:00
llext arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
logging Bluetooth: samples: Switch to one-time adv 2024-05-29 10:48:04 -07:00
lorawan samples: subsys: lorawan: class_a: remove clock sync and multicast 2024-05-02 16:54:43 +02:00
mgmt samples: mgmt: updatehub: Remove GSM modem overlay 2024-05-29 10:49:08 -07:00
modbus docs: modbus: Update PyModbus GitHub project URL 2024-05-28 18:57:02 +02:00
nvs samples: subsys: nvs fix hard fault when running on stm32 targets 2024-04-11 09:08:52 +02:00
pm hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
portability hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
rtio/sensor_batch_processing samples: Switch integration_platforms from native_posix to native_sim 2023-11-20 12:02:48 +01:00
sensing samples: subsys: fix sensing/simple compile 2024-05-24 18:03:44 -04:00
settings samples: subsys: settings: Run sample on nrf54h20 2024-05-14 15:52:42 +02:00
shell posix: timers: deprecate CONFIG_POSIX_CLOCK and TIMER 2024-06-04 16:27:12 -05:00
sip_svc samples: sip_svc: Add support for intel_socfpga_agilex5_socdk 2023-09-15 09:26:49 +02:00
smf Samples: SMF: Add sample for SMF framework 2024-05-10 18:13:08 -04:00
task_wdt hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
testsuite samples: pytest: add README 2023-12-14 10:12:21 +01:00
tracing tests: Fix missed renames 2024-04-10 11:50:29 +02:00
usb samples/usb/imass: Use flash_area_flatten to wipe storage 2024-06-04 08:00:46 +02:00
usb_c samples: usb-c: sink: Add support for WeAct STM32G431 core 2023-11-21 09:54:02 +01:00
video posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
zbus samples/subsys/zbus/uart_bridge: Add missing overlays for native_sim 2024-04-18 12:20:14 +02:00
subsys.rst doc: samples: Fix incorrect maxdepth for some toctrees 2023-09-26 12:02:54 +02:00