zephyr/samples/net
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
..
capture samples: net: capture: Add a way to capture some cooked data 2024-04-04 17:02:11 +02:00
cellular_modem samples: net: cellular_modem: Fix nRF9160 2024-05-31 09:04:03 +02:00
cloud posix: timers: deprecate CONFIG_POSIX_CLOCK and TIMER 2024-06-04 16:27:12 -05:00
common
dhcpv4_client
dns_resolve samples: net: Increase CONFIG_NET_SOCKETS_POLL_MAX to pass checks 2024-06-03 09:49:01 +02:00
dsa net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
gptp drivers: nxp_enet: Deprecate ETH_MCUX 2024-04-18 11:18:31 +02:00
ipv4_autoconf
lldp samples: net: lldp: Fix the VLAN support 2024-03-28 09:41:38 +00:00
lwm2m_client modules: mbedtls: remove the default enabling of features 2024-05-31 16:33:06 -05:00
mdns_responder samples: net: Increase CONFIG_NET_SOCKETS_POLL_MAX to pass checks 2024-06-03 09:49:01 +02:00
mqtt_publisher samples: net: mqtt_publisher: increase num of thread to allowed 2024-06-03 09:48:07 +02:00
mqtt_sn_publisher posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
openthread/coprocessor
promiscuous_mode
secure_mqtt_sensor_actuator samples: net: add secure MQTT sensor/actuator device sample 2024-05-23 07:51:04 -04:00
sockets posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
stats
syslog_net
telnet Network: L2: remove IPSP 2024-04-11 12:48:50 +02:00
tftp_client samples: net: tftp-client: Configs cleanup 2024-05-21 11:51:27 +01:00
virtual
vlan samples: net: vlan: Support all three network interfaces 2024-04-01 12:09:53 -05:00
wifi samples: wifi: use soc conf and overlay for espressif boards 2024-05-07 15:12:33 -05:00
wpan_serial samples: use appropriate sys_randX_get() 2024-04-05 10:57:45 -05:00
wpanusb
zperf posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
net.rst