2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
/*
|
|
|
|
* Written by Joel Sherrill <joel@OARcorp.com>.
|
|
|
|
*
|
|
|
|
* COPYRIGHT (c) 1989-2000.
|
|
|
|
*
|
|
|
|
* On-Line Applications Research Corporation (OAR).
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose without fee is hereby granted, provided that this entire notice
|
|
|
|
* is included in all copies of any software which is or includes a copy
|
|
|
|
* or modification of this software.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
|
|
|
|
* WARRANTY. IN PARTICULAR, THE AUTHOR MAKES NO REPRESENTATION
|
|
|
|
* OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS
|
|
|
|
* SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_FEATURES_H
|
|
|
|
#define _SYS_FEATURES_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-10-17 02:45:24 +08:00
|
|
|
/* Macro to test version of GCC. Returns 0 for non-GCC or too old GCC. */
|
|
|
|
#ifndef __GNUC_PREREQ
|
|
|
|
# if defined __GNUC__ && defined __GNUC_MINOR__
|
|
|
|
# define __GNUC_PREREQ(maj, min) \
|
|
|
|
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
|
|
|
|
# else
|
|
|
|
# define __GNUC_PREREQ(maj, min) 0
|
|
|
|
# endif
|
|
|
|
#endif /* __GNUC_PREREQ */
|
2013-04-22 18:28:05 +08:00
|
|
|
/* Version with trailing underscores for BSD compatibility. */
|
|
|
|
#define __GNUC_PREREQ__(ma, mi) __GNUC_PREREQ(ma, mi)
|
2012-10-17 02:45:24 +08:00
|
|
|
|
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
/* RTEMS adheres to POSIX -- 1003.1b with some features from annexes. */
|
|
|
|
|
|
|
|
#ifdef __rtems__
|
|
|
|
#define _POSIX_JOB_CONTROL 1
|
|
|
|
#define _POSIX_SAVED_IDS 1
|
|
|
|
#define _POSIX_VERSION 199309L
|
|
|
|
#define _POSIX_ASYNCHRONOUS_IO 1
|
|
|
|
#define _POSIX_FSYNC 1
|
|
|
|
#define _POSIX_MAPPED_FILES 1
|
|
|
|
#define _POSIX_MEMLOCK 1
|
|
|
|
#define _POSIX_MEMLOCK_RANGE 1
|
|
|
|
#define _POSIX_MEMORY_PROTECTION 1
|
|
|
|
#define _POSIX_MESSAGE_PASSING 1
|
2008-12-13 01:16:03 +08:00
|
|
|
#define _POSIX_MONOTONIC_CLOCK 200112L
|
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
#define _POSIX_PRIORITIZED_IO 1
|
|
|
|
#define _POSIX_PRIORITY_SCHEDULING 1
|
|
|
|
#define _POSIX_REALTIME_SIGNALS 1
|
|
|
|
#define _POSIX_SEMAPHORES 1
|
2008-12-13 01:16:03 +08:00
|
|
|
/* #define _POSIX_SHARED_MEMORY_OBJECTS 1 */
|
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
#define _POSIX_SYNCHRONIZED_IO 1
|
|
|
|
#define _POSIX_TIMERS 1
|
2006-09-14 06:09:27 +08:00
|
|
|
#define _POSIX_BARRIERS 200112L
|
|
|
|
#define _POSIX_READER_WRITER_LOCKS 200112L
|
|
|
|
#define _POSIX_SPIN_LOCKS 200112L
|
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
|
|
|
|
|
|
|
|
/* In P1003.1b but defined by drafts at least as early as P1003.1c/D10 */
|
|
|
|
#define _POSIX_THREADS 1
|
|
|
|
#define _POSIX_THREAD_ATTR_STACKADDR 1
|
|
|
|
#define _POSIX_THREAD_ATTR_STACKSIZE 1
|
|
|
|
#define _POSIX_THREAD_PRIORITY_SCHEDULING 1
|
|
|
|
#define _POSIX_THREAD_PRIO_INHERIT 1
|
|
|
|
#define _POSIX_THREAD_PRIO_PROTECT 1
|
|
|
|
#define _POSIX_THREAD_PROCESS_SHARED 1
|
|
|
|
#define _POSIX_THREAD_SAFE_FUNCTIONS 1
|
|
|
|
|
|
|
|
/* P1003.4b/D8 defines the constants below this comment. */
|
|
|
|
#define _POSIX_SPAWN 1
|
|
|
|
#define _POSIX_TIMEOUTS 1
|
|
|
|
#define _POSIX_CPUTIME 1
|
|
|
|
#define _POSIX_THREAD_CPUTIME 1
|
|
|
|
#define _POSIX_SPORADIC_SERVER 1
|
|
|
|
#define _POSIX_THREAD_SPORADIC_SERVER 1
|
|
|
|
#define _POSIX_DEVICE_CONTROL 1
|
|
|
|
#define _POSIX_DEVCTL_DIRECTION 1
|
|
|
|
#define _POSIX_INTERRUPT_CONTROL 1
|
|
|
|
#define _POSIX_ADVISORY_INFO 1
|
|
|
|
|
2009-07-07 02:59:04 +08:00
|
|
|
/* UNIX98 added some new pthread mutex attributes */
|
|
|
|
#define _UNIX98_THREAD_MUTEX_ATTRIBUTES 1
|
|
|
|
|
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
#endif
|
|
|
|
|
2009-06-18 00:47:02 +08:00
|
|
|
/* XMK loosely adheres to POSIX -- 1003.1 */
|
|
|
|
#ifdef __XMK__
|
|
|
|
#define _POSIX_THREADS 1
|
|
|
|
#define _POSIX_THREAD_PRIORITY_SCHEDULING 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
#ifdef __svr4__
|
|
|
|
# define _POSIX_JOB_CONTROL 1
|
|
|
|
# define _POSIX_SAVED_IDS 1
|
|
|
|
# define _POSIX_VERSION 199009L
|
|
|
|
#endif
|
|
|
|
|
2001-01-12 10:41:33 +08:00
|
|
|
#ifdef __CYGWIN__
|
2007-12-20 02:51:19 +08:00
|
|
|
|
|
|
|
#if !defined(__STRICT_ANSI__) || defined(__cplusplus) || __STDC_VERSION__ >= 199901L
|
2007-02-08 01:19:35 +08:00
|
|
|
#define _POSIX_VERSION 200112L
|
|
|
|
#define _POSIX2_VERSION 200112L
|
|
|
|
#define _XOPEN_VERSION 600
|
|
|
|
|
|
|
|
#define _POSIX_ADVISORY_INFO 200112L
|
|
|
|
/* #define _POSIX_ASYNCHRONOUS_IO -1 */
|
|
|
|
/* #define _POSIX_BARRIERS -1 */
|
|
|
|
#define _POSIX_CHOWN_RESTRICTED 1
|
2011-07-21 03:41:15 +08:00
|
|
|
#define _POSIX_CLOCK_SELECTION 200112L
|
2011-05-17 06:35:10 +08:00
|
|
|
#define _POSIX_CPUTIME 200112L
|
2007-02-08 01:19:35 +08:00
|
|
|
#define _POSIX_FSYNC 200112L
|
|
|
|
#define _POSIX_IPV6 200112L
|
|
|
|
#define _POSIX_JOB_CONTROL 1
|
|
|
|
#define _POSIX_MAPPED_FILES 200112L
|
|
|
|
/* #define _POSIX_MEMLOCK -1 */
|
|
|
|
#define _POSIX_MEMLOCK_RANGE 200112L
|
|
|
|
#define _POSIX_MEMORY_PROTECTION 200112L
|
2007-02-14 18:07:02 +08:00
|
|
|
#define _POSIX_MESSAGE_PASSING 200112L
|
2010-08-09 16:29:22 +08:00
|
|
|
#define _POSIX_MONOTONIC_CLOCK 200112L
|
2007-02-08 01:19:35 +08:00
|
|
|
#define _POSIX_NO_TRUNC 1
|
|
|
|
/* #define _POSIX_PRIORITIZED_IO -1 */
|
|
|
|
#define _POSIX_PRIORITY_SCHEDULING 200112L
|
|
|
|
#define _POSIX_RAW_SOCKETS 200112L
|
|
|
|
#define _POSIX_READER_WRITER_LOCKS 200112L
|
|
|
|
#define _POSIX_REALTIME_SIGNALS 200112L
|
|
|
|
#define _POSIX_REGEXP 1
|
|
|
|
#define _POSIX_SAVED_IDS 1
|
2007-02-08 21:34:20 +08:00
|
|
|
#define _POSIX_SEMAPHORES 200112L
|
|
|
|
#define _POSIX_SHARED_MEMORY_OBJECTS 200112L
|
2007-02-08 01:19:35 +08:00
|
|
|
#define _POSIX_SHELL 1
|
|
|
|
/* #define _POSIX_SPAWN -1 */
|
2011-05-03 00:05:06 +08:00
|
|
|
#define _POSIX_SPIN_LOCKS 200112L
|
2007-02-08 01:19:35 +08:00
|
|
|
/* #define _POSIX_SPORADIC_SERVER -1 */
|
|
|
|
#define _POSIX_SYNCHRONIZED_IO 200112L
|
2011-05-16 02:50:52 +08:00
|
|
|
#define _POSIX_THREAD_ATTR_STACKADDR 200112L
|
2007-02-08 21:34:20 +08:00
|
|
|
#define _POSIX_THREAD_ATTR_STACKSIZE 200112L
|
2011-05-17 06:35:10 +08:00
|
|
|
#define _POSIX_THREAD_CPUTIME 200112L
|
2007-02-08 01:19:35 +08:00
|
|
|
/* #define _POSIX_THREAD_PRIO_INHERIT -1 */
|
|
|
|
/* #define _POSIX_THREAD_PRIO_PROTECT -1 */
|
|
|
|
#define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L
|
|
|
|
#define _POSIX_THREAD_PROCESS_SHARED 200112L
|
|
|
|
#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
|
|
|
|
/* #define _POSIX_THREAD_SPORADIC_SERVER -1 */
|
|
|
|
#define _POSIX_THREADS 200112L
|
|
|
|
/* #define _POSIX_TIMEOUTS -1 */
|
|
|
|
#define _POSIX_TIMERS 1
|
|
|
|
/* #define _POSIX_TRACE -1 */
|
|
|
|
/* #define _POSIX_TRACE_EVENT_FILTER -1 */
|
|
|
|
/* #define _POSIX_TRACE_INHERIT -1 */
|
|
|
|
/* #define _POSIX_TRACE_LOG -1 */
|
|
|
|
/* #define _POSIX_TYPED_MEMORY_OBJECTS -1 */
|
|
|
|
#define _POSIX_VDISABLE '\0'
|
|
|
|
#define _POSIX2_C_BIND 200112L
|
|
|
|
#define _POSIX2_C_DEV 200112L
|
|
|
|
#define _POSIX2_CHAR_TERM 200112L
|
|
|
|
/* #define _POSIX2_FORT_DEV -1 */
|
|
|
|
/* #define _POSIX2_FORT_RUN -1 */
|
|
|
|
/* #define _POSIX2_LOCALEDEF -1 */
|
|
|
|
/* #define _POSIX2_PBS -1 */
|
|
|
|
/* #define _POSIX2_PBS_ACCOUNTING -1 */
|
|
|
|
/* #define _POSIX2_PBS_CHECKPOINT -1 */
|
|
|
|
/* #define _POSIX2_PBS_LOCATE -1 */
|
|
|
|
/* #define _POSIX2_PBS_MESSAGE -1 */
|
|
|
|
/* #define _POSIX2_PBS_TRACK -1 */
|
|
|
|
#define _POSIX2_SW_DEV 200112L
|
|
|
|
#define _POSIX2_UPE 200112L
|
2008-12-04 21:58:11 +08:00
|
|
|
#define _POSIX_V6_ILP32_OFF32 -1
|
2013-04-23 17:42:25 +08:00
|
|
|
#ifdef __LP64__
|
|
|
|
#define _POSIX_V6_ILP32_OFFBIG -1
|
|
|
|
#define _POSIX_V6_LP64_OFF64 1
|
|
|
|
#define _POSIX_V6_LPBIG_OFFBIG 1
|
|
|
|
#else
|
2007-02-08 01:19:35 +08:00
|
|
|
#define _POSIX_V6_ILP32_OFFBIG 1
|
2008-12-04 21:58:11 +08:00
|
|
|
#define _POSIX_V6_LP64_OFF64 -1
|
|
|
|
#define _POSIX_V6_LPBIG_OFFBIG -1
|
2013-04-23 17:42:25 +08:00
|
|
|
#endif
|
|
|
|
#define _XBS5_ILP32_OFF32 _POSIX_V6_ILP32_OFF32
|
|
|
|
#define _XBS5_ILP32_OFFBIG _POSIX_V6_ILP32_OFFBIG
|
|
|
|
#define _XBS5_LP64_OFF64 _POSIX_V6_LP64_OFF64
|
2007-02-08 01:19:35 +08:00
|
|
|
#define _XBS5_LPBIG_OFFBIG _POSIX_V6_LPBIG_OFFBIG
|
|
|
|
#define _XOPEN_CRYPT 1
|
|
|
|
#define _XOPEN_ENH_I18N 1
|
|
|
|
/* #define _XOPEN_LEGACY -1 */
|
|
|
|
/* #define _XOPEN_REALTIME -1 */
|
|
|
|
/* #define _XOPEN_REALTIME_THREADS -1 */
|
|
|
|
#define _XOPEN_SHM 1
|
|
|
|
/* #define _XOPEN_STREAMS -1 */
|
|
|
|
/* #define _XOPEN_UNIX -1 */
|
|
|
|
|
2007-12-20 02:51:19 +08:00
|
|
|
#endif /* !__STRICT_ANSI__ || __cplusplus || __STDC_VERSION__ >= 199901L */
|
2011-01-27 19:55:01 +08:00
|
|
|
|
|
|
|
/* The value corresponds to UNICODE version 4.0, which is the version
|
|
|
|
supported by XP. Newlib supports 5.2 (2011) but so far Cygwin needs
|
|
|
|
the MS conversions for double-byte charsets. */
|
|
|
|
#define __STDC_ISO_10646__ 200305L
|
|
|
|
|
2007-12-20 02:51:19 +08:00
|
|
|
#endif /* __CYGWIN__ */
|
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
|
2010-03-03 03:28:39 +08:00
|
|
|
/* Per the permission given in POSIX.1-2008 section 2.2.1, define
|
|
|
|
* _POSIX_C_SOURCE if _XOPEN_SOURCE is defined and _POSIX_C_SOURCE is not.
|
|
|
|
* (_XOPEN_SOURCE indicates that XSI extensions are desired by an application.)
|
2010-03-18 01:13:00 +08:00
|
|
|
* This permission is first granted in 2008, but use it for older ones, also.
|
|
|
|
* Allow for _XOPEN_SOURCE to be empty (from the earliest form of it, before it
|
|
|
|
* was required to have specific values).
|
2010-03-03 03:28:39 +08:00
|
|
|
*/
|
|
|
|
#if !defined(_POSIX_C_SOURCE) && defined(_XOPEN_SOURCE)
|
2010-03-18 01:13:00 +08:00
|
|
|
#if (_XOPEN_SOURCE - 0) == 700 /* POSIX.1-2008 */
|
2010-03-03 03:28:39 +08:00
|
|
|
#define _POSIX_C_SOURCE 200809L
|
2010-03-18 01:13:00 +08:00
|
|
|
#elif (_XOPEN_SOURCE - 0) == 600 /* POSIX.1-2001 or 2004 */
|
2010-03-03 03:28:39 +08:00
|
|
|
#define _POSIX_C_SOURCE 200112L
|
2010-03-18 01:13:00 +08:00
|
|
|
#elif (_XOPEN_SOURCE - 0) == 500 /* POSIX.1-1995 */
|
|
|
|
#define _POSIX_C_SOURCE 199506L
|
|
|
|
#elif (_XOPEN_SOURCE - 0) < 500 /* really old */
|
|
|
|
#define _POSIX_C_SOURCE 2
|
2010-03-03 03:28:39 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
2000-12-12 09:24:09 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _SYS_FEATURES_H */
|