zephyr/samples
Chris Friedt fcebe60090 posix: deprecate PTHREAD_IPC _MUTEX _COND and _KEY
Zephyr's POSIX API is moving toward using the standard
nomenclature from IEEE 1003.1-2017 for as much as possible. In
particular, we want to have consistent naming between Zephyr's
POSIX API Kconfig options and the naming for POSIX Options and
Option Groups.

The Kconfig option CONFIG_PTHREAD_IPC has been (ab)used for a
very long time for a variety of different purposes. However,
the standard Option / feature test macro for POSIX Threads is,
intuitively _POSIX_THREADS. There is a corresponding sysconf()
key named _SC_POSIX_THREADS.

Annoyingly, the POSIX Option Group that corresponds to the
Option is POSIX_THREADS_BASE, which is a minor inconsistency
in the standard.

The _POSIX_THREADS Option already includes mutexes, condition
variables, and thread-specific storage (keys). So with this
change, we also deprecate the redundant Kconfig variables that
do not have a corresponding match in the standard.

- CONFIG_PTHREAD_IPC
- CONFIG_PTHREAD
- CONFIG_PTHREAD_COND
- CONFIG_PTHREAD_MUTEX
- CONFIG_PTHREAD_KEY

Additionally, create Kconfig variables for those configurables
which we are lacking:

- CONFIG_POSIX_THREADS_EXT
- CONFIG_POSIX_THREAD_ATTR_STACKSIZE
- CONFIG_POSIX_THREAD_ATTR_STACKADDR
- CONFIG_POSIX_THREAD_PRIORITY_SCHEDULING
- CONFIG_POSIX_THREAD_PRIO_INHERIT
- CONFIG_POSIX_THREAD_PRIO_PROTECT
- CONFIG_POSIX_THREAD_SAFE_FUNCTIONS

Some Kconfig variables were renamed to more properly match the spec:

- CONFIG_MAX_PTHREAD_COUNT -> CONFIG_POSIX_THREAD_THREADS_MAX
- CONFIG_MAX_PTHREAD_KEY_COUNT -> CONFIG_POSIX_THREAD_KEYS_MAX

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-06-04 16:27:12 -05:00
..
application_development samples: code relocation in external memory of stm32 disco kit 2024-05-31 09:52:54 -05:00
arch samples: pktqueue: remove main.h 2024-05-21 20:54:13 -04:00
basic samples: basic: blinky_pwm: add testing base on console output 2024-06-04 13:36:10 +02:00
bluetooth arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
boards tests: Bluetooth: Mesh: Default to ext adv 2024-06-03 03:01:55 -07:00
compression hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
cpp samples: cpp: add a Hello, world! C++ app 2024-01-17 09:56:34 +01:00
drivers samples/soc_flash_nrf: Adjust for non-Flash SoC devices 2024-06-04 08:00:46 +02:00
fuel_gauge hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
hello_world samples: hello_world: Use full board target string for hwmv2 boards 2024-03-21 20:10:46 +01:00
kernel arch: move arch_interface.h under zephyr/arch 2024-03-25 09:58:35 +00: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
philosophers doc: samples: philosophers: fix formatting and spelling 2024-05-31 03:08:52 -07:00
posix posix: deprecate PTHREAD_IPC _MUTEX _COND and _KEY 2024-06-04 16:27:12 -05:00
sensor samples: sensors: nucleo_h7a3zi_q board added to die_temp_polling 2024-06-04 16:37:19 +02:00
shields posix: deprecate POSIX_FNMATCH GETOPT GETENTROPY 2024-06-04 16:27:12 -05:00
subsys posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
synchronization samples: synchronization: add static thread 2023-11-16 09:25:33 +01:00
sysbuild samples: sysbuild: hello_world: fix broken references/args 2024-05-31 09:59:36 -05:00
tfm_integration modules: mbedtls: remove the default enabling of features 2024-05-31 16:33:06 -05:00
userspace build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
classic.rst doc: fix top samples doc index 2021-03-09 17:48:18 -05:00
index.rst samples: move with_mcuboot sample to samples/sysbuild 2024-05-13 16:09:01 -04:00
sample_definition_and_criteria.rst docs: Sample definition: Replace native_posix with native_sim 2023-11-20 12:02:48 +01:00