zephyr/samples/net/sockets
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
..
big_http_download modules: mbedtls: remove the default enabling of features 2024-05-31 16:33:06 -05:00
can samples: net: Disable native_posix target in more samples 2024-04-17 14:28:08 +02:00
coap_client samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
coap_server samples: net: sockets: coap_server: Support CMAKE_LINKER_GENERATOR 2024-05-13 09:46:44 +02:00
dumb_http_server samples: net: Disable native_posix target in samples 2024-04-04 17:02:04 +02:00
dumb_http_server_mt posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
echo samples/net socket_echo: Fix pointer type 2024-04-18 12:20:14 +02:00
echo_async Network: L2: remove IPSP 2024-04-11 12:48:50 +02:00
echo_async_select net: Use always zephyr/posix/fcntl.h 2024-03-27 13:40:13 -05:00
echo_client posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
echo_server posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
echo_service posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
http_client doc: net: Add HTTP server documentation 2024-05-10 14:43:38 -05:00
http_get samples: net: http_get: fix typo in sections names in sample.yaml 2024-05-29 14:06:20 +02:00
http_server posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
net_mgmt posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
packet posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
sntp_client samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
socketpair
tcp samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
txtime net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
websocket_client samples: net: Disable native_posix target in more samples 2024-04-17 14:28:08 +02:00