1# Copyright (c) 2024 Tenstorrent AI ULC
2#
3# SPDX-License-Identifier: Apache-2.0
4
5# This file should be removed after Zephyr 4.0 is released
6
7menu "Deprecated POSIX options"
8
9config EVENTFD_MAX
10	int "Maximum number of eventfd's [DEPRECATED]"
11	default ZVFS_EVENTFD_MAX if ZVFS_EVENTFD
12	default 0
13	help
14	  This option is deprecated.
15
16	  Please use CONFIG_ZVFS_EVENTFD_MAX instead.
17
18config FNMATCH
19	bool "Support for fnmatch [DEPRECATED]"
20	select DEPRECATED
21	select POSIX_C_LIB_EXT
22	help
23	  This option is deprecated.
24
25	  Please use CONFIG_POSIX_C_LIB_EXT instead.
26
27config GETOPT
28	bool "Getopt library support [DEPRECATED]"
29	select DEPRECATED
30	select POSIX_C_LIB_EXT
31	help
32	  This option is deprecated.
33
34	  Please use CONFIG_POSIX_C_LIB_EXT instead.
35
36config MAX_PTHREAD_COUNT
37	int "Maximum number of pthread_t [DEPRECATED]"
38	default POSIX_THREAD_THREADS_MAX if POSIX_THREADS
39	default 0
40	help
41	  This option is deprecated.
42
43	  Please use CONFIG_POSIX_THREAD_THREADS_MAX instead.
44
45config MAX_PTHREAD_KEY_COUNT
46	int "Maximum number of pthread_key_t [DEPRECATED]"
47	default POSIX_THREAD_KEYS_MAX if POSIX_THREADS
48	default 0
49	help
50	  This option is deprecated.
51
52	  Please use CONFIG_POSIX_THREAD_KEYS_MAX instead.
53
54config MAX_TIMER_COUNT
55	int "Maximum number of timer_t [DEPRECATED]"
56	default POSIX_TIMER_MAX if POSIX_TIMERS
57	default 0
58	help
59	  This option is deprecated.
60
61	  Please use CONFIG_POSIX_TIMER_MAX instead.
62
63config MSG_COUNT_MAX
64	int "Maximum number of messages in a POSIX message queue [DEPRECATED]"
65	default POSIX_MQ_OPEN_MAX if POSIX_MESSAGE_PASSING
66	default 0
67	help
68	  This option is deprecated.
69
70	  Please use CONFIG_POSIX_MQ_OPEN_MAX instead.
71
72config POSIX_CLOCK
73	bool "clock and sleep APIs [DEPRECATED]"
74	select DEPRECATED
75	select POSIX_CLOCK_SELECTION
76	select POSIX_CPUTIME
77	select POSIX_MONOTONIC_CLOCK
78	select POSIX_TIMERS
79	select POSIX_TIMEOUTS
80	help
81	  This option is deprecated.
82
83	  Please use CONFIG_POSIX_TIMERS instead.
84
85config POSIX_FS
86	bool "Support for environ, getenv(), getenv_r(), setenv(), and unsetenv() [DEPRECATED]"
87	select DEPRECATED
88	select POSIX_FILE_SYSTEM
89	help
90	  This option is deprecated.
91
92	  Please use CONFIG_POSIX_FILE_SYSTEM instead.
93
94config POSIX_LIMITS_RTSIG_MAX
95	int "_POSIX_RTSIG_MAX value in limits.h [DEPRECATED]"
96	default POSIX_RTSIG_MAX if POSIX_REALTIME_SIGNALS
97	default 0
98	help
99	  This option is deprecated.
100
101	  Please use CONFIG_POSIX_RTSIG_MAX instead.
102
103config POSIX_MAX_FDS
104	int "Maximum number of open file descriptors [DEPRECATED]"
105	default POSIX_OPEN_MAX
106	help
107	  This option is deprecated.
108
109	  Please use CONFIG_POSIX_OPEN_MAX instead.
110
111	  See also CONFIG_ZVFS_OPEN_MAX.
112
113config POSIX_MAX_OPEN_FILES
114	int "Maximum number of open file descriptors [DEPRECATED]"
115	default POSIX_OPEN_MAX
116	help
117	  This option is deprecated.
118
119	  Please use CONFIG_POSIX_OPEN_MAX instead.
120
121	  See also CONFIG_ZVFS_OPEN_MAX.
122
123config POSIX_MQUEUE
124	bool "Message queue support [DEPRECATED]"
125	select DEPRECATED
126	select POSIX_MESSAGE_PASSING
127	help
128	  This option is deprecated.
129
130	  Please use CONFIG_POSIX_MESSAGE_PASSING instead.
131
132config POSIX_PUTMSG
133	bool "Support for putmsg function [DEPRECATED]"
134	select DEPRECATED
135	select XOPEN_STREAMS
136	help
137	  This option is deprecated.
138
139	  Please use CONFIG_XOPEN_STREAMS instead.
140
141config POSIX_SIGNAL
142	bool "Support for POSIX signal APIs [DEPRECATED]"
143	select DEPRECATED
144	select POSIX_SIGNALS
145	help
146	  This option is deprecated.
147
148	  Please use CONFIG_POSIX_SIGNALS instead.
149
150config POSIX_SYSCONF
151	bool "Support for sysconf() [DEPRECATED]"
152	select DEPRECATED
153	select POSIX_SINGLE_PROCESS
154	help
155	  This option is deprecated.
156
157	  Please use CONFIG_POSIX_SINGLE_PROCESS instead.
158
159config POSIX_UNAME
160	bool "Support for uname [DEPRECATED]"
161	select DEPRECATED
162	select POSIX_SINGLE_PROCESS
163	help
164	  This option is deprecated.
165
166	  Please use CONFIG_POSIX_SINGLE_PROCESS instead.
167
168config PTHREAD
169	bool "pthread_t support [DEPRECATED]"
170	select DEPRECATED
171	select POSIX_THREADS
172	help
173	  This option is deprecated.
174
175	  Please use CONFIG_POSIX_THREADS instead.
176
177config PTHREAD_BARRIER
178	bool "pthread_barrier_t support [DEPRECATED]"
179	select DEPRECATED
180	select POSIX_BARRIERS
181	help
182	  This option is deprecated.
183
184	  Please use CONFIG_POSIX_BARRIERS instead.
185
186config PTHREAD_COND
187	bool "pthread_cond_t support [DEPRECATED]"
188	select DEPRECATED
189	select POSIX_THREADS
190	help
191	  This option is deprecated.
192
193	  Please use CONFIG_POSIX_THREADS instead.
194
195
196config PTHREAD_IPC
197	bool "POSIX pthread IPC API [DEPRECATED]"
198	select DEPRECATED
199	select POSIX_THREADS
200	help
201	  This option is deprecated.
202
203	  Please use CONFIG_POSIX_THREADS instead.
204
205config PTHREAD_KEY
206	bool "pthread_key_t support [DEPRECATED]"
207	select DEPRECATED
208	select POSIX_THREADS
209	help
210	  This option is deprecated.
211
212	  Please use CONFIG_POSIX_THREADS instead.
213
214config PTHREAD_MUTEX
215	bool "pthread_mutex_t support [DEPRECATED]"
216	select DEPRECATED
217	select POSIX_THREADS
218	help
219	  This option is deprecated.
220
221	  Please use CONFIG_POSIX_THREADS instead.
222
223config PTHREAD_RWLOCK
224	bool "pthread_spinlock_t support [DEPRECATED]"
225	select DEPRECATED
226	select POSIX_READER_WRITER_LOCKS
227	help
228	  This option is deprecated.
229
230	  Please use CONFIG_POSIX_READER_WRITER_LOCKS instead.
231
232config PTHREAD_SPINLOCK
233	bool "pthread_spinlock_t support [DEPRECATED]"
234	select DEPRECATED
235	select POSIX_SPIN_LOCKS
236	help
237	  This option is deprecated.
238
239	  Please use CONFIG_POSIX_SPIN_LOCKS instead.
240
241config TIMER
242	bool "Timer support [DEPRECATED]"
243	select DEPRECATED
244	select POSIX_TIMERS
245	help
246	  This option is deprecated.
247
248	  Please use CONFIG_POSIX_TIMERS instead.
249
250config TIMER_DELAYTIMER_MAX
251	int "Maximum count returned my timer_getoverrun() in POSIX application [DEPRECATED]"
252	default POSIX_DELAYTIMER_MAX if POSIX_TIMERS
253	default 0
254	help
255	  This option is deprecated.
256
257	  Please use CONFIG_POSIX_DELAYTIMER_MAX instead.
258
259config SEM_NAMELEN_MAX
260	int "Maximum name length [DEPRECATED]"
261	default POSIX_SEM_NAMELEN_MAX if POSIX_SEMAPHORES
262	default 0
263	help
264	  This option is deprecated.
265
266	  Please use CONFIG_POSIX_SEM_NAMELEN_MAX instead.
267
268config SEM_VALUE_MAX
269	int "Maximum semaphore limit [DEPRECATED]"
270	default POSIX_SEM_VALUE_MAX if POSIX_SEMAPHORES
271	default 0
272	help
273	  This option is deprecated.
274
275	  Please use CONFIG_POSIX_SEM_VALUE_MAX instead.
276
277endmenu
278