|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
8#ifndef INCLUDE_ZEPHYR_POSIX_POSIX_FEATURES_H_
9#define INCLUDE_ZEPHYR_POSIX_POSIX_FEATURES_H_
11#include <zephyr/autoconf.h>
18#ifdef CONFIG_POSIX_AEP_REALTIME_MINIMAL
19#define _POSIX_AEP_REALTIME_MINIMAL 200312L
22#ifdef CONFIG_POSIX_AEP_REALTIME_CONTROLLER
23#define _POSIX_AEP_REALTIME_CONTROLLER 200312L
26#ifdef CONFIG_POSIX_AEP_REALTIME_DEDICATED
27#define _POSIX_AEP_REALTIME_DEDICATED 200312L
34#define _POSIX_VERSION 200809L
36#define _POSIX_CHOWN_RESTRICTED (0)
37#define _POSIX_NO_TRUNC (0)
38#define _POSIX_VDISABLE ('\0')
42#ifdef CONFIG_POSIX_ASYNCHRONOUS_IO
43#define _POSIX_ASYNCHRONOUS_IO _POSIX_VERSION
46#ifdef CONFIG_POSIX_BARRIERS
47#define _POSIX_BARRIERS _POSIX_VERSION
50#ifdef CONFIG_POSIX_CLOCK_SELECTION
51#define _POSIX_CLOCK_SELECTION _POSIX_VERSION
54#ifdef CONFIG_POSIX_CPUTIME
55#define _POSIX_CPUTIME _POSIX_VERSION
58#ifdef CONFIG_POSIX_FSYNC
59#define _POSIX_FSYNC _POSIX_VERSION
63#define _POSIX_IPV6 _POSIX_VERSION
68#ifdef CONFIG_POSIX_MAPPED_FILES
69#define _POSIX_MAPPED_FILES _POSIX_VERSION
72#ifdef CONFIG_POSIX_MEMLOCK
73#define _POSIX_MEMLOCK _POSIX_VERSION
76#ifdef CONFIG_POSIX_MEMLOCK_RANGE
77#define _POSIX_MEMLOCK_RANGE _POSIX_VERSION
80#ifdef CONFIG_POSIX_MEMORY_PROTECTION
81#define _POSIX_MEMORY_PROTECTION _POSIX_VERSION
84#ifdef CONFIG_POSIX_MESSAGE_PASSING
85#define _POSIX_MESSAGE_PASSING _POSIX_VERSION
88#ifdef CONFIG_POSIX_MONOTONIC_CLOCK
89#define _POSIX_MONOTONIC_CLOCK _POSIX_VERSION
94#ifdef CONFIG_POSIX_PRIORITY_SCHEDULING
95#define _POSIX_PRIORITY_SCHEDULING _POSIX_VERSION
98#ifdef CONFIG_NET_SOCKETS_PACKET
99#define _POSIX_RAW_SOCKETS _POSIX_VERSION
102#ifdef CONFIG_POSIX_READER_WRITER_LOCKS
103#define _POSIX_READER_WRITER_LOCKS _POSIX_VERSION
110#ifdef CONFIG_POSIX_SEMAPHORES
111#define _POSIX_SEMAPHORES _POSIX_VERSION
114#ifdef CONFIG_POSIX_SHARED_MEMORY_OBJECTS
115#define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_VERSION
121#ifdef CONFIG_POSIX_SPIN_LOCKS
122#define _POSIX_SPIN_LOCKS _POSIX_VERSION
127#ifdef CONFIG_POSIX_SYNCHRONIZED_IO
128#define _POSIX_SYNCHRONIZED_IO _POSIX_VERSION
131#ifdef CONFIG_POSIX_THREAD_ATTR_STACKADDR
132#define _POSIX_THREAD_ATTR_STACKADDR _POSIX_VERSION
135#ifdef CONFIG_POSIX_THREAD_ATTR_STACKSIZE
136#define _POSIX_THREAD_ATTR_STACKSIZE _POSIX_VERSION
139#ifdef CONFIG_POSIX_THREAD_CPUTIME
140#define _POSIX_THREAD_CPUTIME _POSIX_VERSION
143#ifdef CONFIG_POSIX_THREAD_PRIO_INHERIT
144#define _POSIX_THREAD_PRIO_INHERIT _POSIX_VERSION
147#ifdef CONFIG_POSIX_THREAD_PRIO_PROTECT
148#define _POSIX_THREAD_PRIO_PROTECT _POSIX_VERSION
151#ifdef CONFIG_POSIX_THREAD_PRIORITY_SCHEDULING
152#define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION
159#ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS
160#define _POSIX_THREAD_SAFE_FUNCTIONS _POSIX_VERSION
165#ifdef CONFIG_POSIX_THREADS
166#ifndef _POSIX_THREADS
167#define _POSIX_THREADS _POSIX_VERSION
171#ifdef CONFIG_POSIX_TIMEOUTS
172#define _POSIX_TIMEOUTS _POSIX_VERSION
175#ifdef CONFIG_POSIX_TIMERS
176#define _POSIX_TIMERS _POSIX_VERSION
204#define _POSIX2_VERSION _POSIX_VERSION
205#define _POSIX2_C_BIND _POSIX2_VERSION
206#define _POSIX2_C_DEV _POSIX2_VERSION
223#define _XOPEN_VERSION 700
230#ifdef CONFIG_XOPEN_STREAMS
231#define _XOPEN_STREAMS _XOPEN_VERSION
238#define _POSIX_CLOCKRES_MIN (20000000L)
241#define _POSIX_AIO_LISTIO_MAX (2)
242#define _POSIX_AIO_MAX (1)
243#define _POSIX_ARG_MAX (4096)
244#define _POSIX_CHILD_MAX (25)
245#define _POSIX_DELAYTIMER_MAX \
246 COND_CODE_1(CONFIG_POSIX_TIMERS, (CONFIG_POSIX_DELAYTIMER_MAX), (0))
247#define _POSIX_HOST_NAME_MAX \
248 COND_CODE_1(CONFIG_POSIX_NETWORKING, (CONFIG_POSIX_HOST_NAME_MAX), (0))
249#define _POSIX_LINK_MAX (8)
250#define _POSIX_LOGIN_NAME_MAX (9)
251#define _POSIX_MAX_CANON (255)
252#define _POSIX_MAX_INPUT (255)
253#define _POSIX_MQ_OPEN_MAX \
254 COND_CODE_1(CONFIG_POSIX_MESSAGE_PASSING, (CONFIG_POSIX_MQ_OPEN_MAX), (0))
255#define _POSIX_MQ_PRIO_MAX (32)
256#define _POSIX_NAME_MAX (14)
257#define _POSIX_NGROUPS_MAX (8)
258#define _POSIX_OPEN_MAX CONFIG_POSIX_OPEN_MAX
259#define _POSIX_PATH_MAX (256)
260#define _POSIX_PIPE_BUF (512)
261#define _POSIX_RE_DUP_MAX (255)
262#define _POSIX_RTSIG_MAX \
263 COND_CODE_1(CONFIG_POSIX_REALTIME_SIGNALS, (CONFIG_POSIX_RTSIG_MAX), (0))
264#define _POSIX_SEM_NSEMS_MAX \
265 COND_CODE_1(CONFIG_POSIX_SEMAPHORES, (CONFIG_POSIX_SEM_NSEMS_MAX), (0))
266#define _POSIX_SEM_VALUE_MAX \
267 COND_CODE_1(CONFIG_POSIX_SEMAPHORES, (CONFIG_POSIX_SEM_VALUE_MAX), (0))
268#define _POSIX_SIGQUEUE_MAX (32)
269#define _POSIX_SSIZE_MAX (32767)
270#define _POSIX_SS_REPL_MAX (4)
271#define _POSIX_STREAM_MAX (8)
272#define _POSIX_SYMLINK_MAX (255)
273#define _POSIX_SYMLOOP_MAX (8)
274#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS (4)
275#define _POSIX_THREAD_KEYS_MAX \
276 COND_CODE_1(CONFIG_POSIX_THREADS, (CONFIG_POSIX_THREAD_KEYS_MAX), (0))
277#define _POSIX_THREAD_THREADS_MAX \
278 COND_CODE_1(CONFIG_POSIX_THREADS, (CONFIG_POSIX_THREAD_THREADS_MAX), (0))
279#define _POSIX_TIMER_MAX \
280 COND_CODE_1(CONFIG_POSIX_TIMERS, (CONFIG_POSIX_TIMER_MAX), (0))
281#define _POSIX_TRACE_EVENT_NAME_MAX (30)
282#define _POSIX_TRACE_NAME_MAX (8)
283#define _POSIX_TRACE_SYS_MAX (8)
284#define _POSIX_TRACE_USER_EVENT_MAX (32)
285#define _POSIX_TTY_NAME_MAX (9)
286#define _POSIX_TZNAME_MAX (6)
287#define _POSIX2_BC_BASE_MAX (99)
288#define _POSIX2_BC_DIM_MAX (2048)
289#define _POSIX2_BC_SCALE_MAX (99)
290#define _POSIX2_BC_STRING_MAX (1000)
291#define _POSIX2_CHARCLASS_NAME_MAX (14)
292#define _POSIX2_COLL_WEIGHTS_MAX (2)
293#define _POSIX2_EXPR_NEST_MAX (32)
294#define _POSIX2_LINE_MAX (2048)
295#define _XOPEN_IOV_MAX (16)
296#define _XOPEN_NAME_MAX (255)
297#define _XOPEN_PATH_MAX (1024)
300#define NL_LANGMAX (14)
301#define NL_MSGMAX (32767)
302#define NL_SETMAX (255)
303#define NL_TEXTMAX (_POSIX2_LINE_MAX)
307#define AIO_LISTIO_MAX _POSIX_AIO_LISTIO_MAX
308#define AIO_MAX _POSIX_AIO_MAX
309#define AIO_PRIO_DELTA_MAX (0)
310#define DELAYTIMER_MAX _POSIX_DELAYTIMER_MAX
311#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
312#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
313#define MQ_OPEN_MAX _POSIX_MQ_OPEN_MAX
314#define MQ_PRIO_MAX _POSIX_MQ_PRIO_MAX
320#define PAGE_SIZE CONFIG_POSIX_PAGE_SIZE
321#define PAGESIZE PAGE_SIZE
323#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
324#define PTHREAD_KEYS_MAX _POSIX_THREAD_KEYS_MAX
325#define PTHREAD_THREADS_MAX _POSIX_THREAD_THREADS_MAX
326#define RTSIG_MAX _POSIX_RTSIG_MAX
327#define SEM_NSEMS_MAX _POSIX_SEM_NSEMS_MAX
328#define SEM_VALUE_MAX _POSIX_SEM_VALUE_MAX
329#define SIGQUEUE_MAX _POSIX_SIGQUEUE_MAX
330#define STREAM_MAX _POSIX_STREAM_MAX
331#define SYMLOOP_MAX _POSIX_SYMLOOP_MAX
332#define TIMER_MAX _POSIX_TIMER_MAX
333#define TTY_NAME_MAX _POSIX_TTY_NAME_MAX
335#define TZNAME_MAX _POSIX_TZNAME_MAX
339#define FILESIZEBITS (32)
340#define POSIX_ALLOC_SIZE_MIN (256)
341#define POSIX_REC_INCR_XFER_SIZE (1024)
342#define POSIX_REC_MAX_XFER_SIZE (32767)
343#define POSIX_REC_MIN_XFER_SIZE (1)
344#define POSIX_REC_XFER_ALIGN (4)
345#define SYMLINK_MAX _POSIX_SYMLINK_MAX