diff options
author | Christopher Faylor <cgf@redhat.com> | 2000-02-17 19:39:46 +0000 |
---|---|---|
committer | Christopher Faylor <cgf@redhat.com> | 2000-02-17 19:39:46 +0000 |
commit | 6d491d8ad9122891d1a48447e8c49702eb678921 (patch) | |
tree | 45619a131b9f211ceca9fce7a866328344bf00ec /newlib/libc/sys/rtems/sys/features.h | |
parent | bd592806f45307757c24ec3f75bdefe13abfd51f (diff) | |
download | gdb-6d491d8ad9122891d1a48447e8c49702eb678921.tar.gz |
import newlib-2000-02-17 snapshotcvs/SNAPSHOT
Diffstat (limited to 'newlib/libc/sys/rtems/sys/features.h')
-rw-r--r-- | newlib/libc/sys/rtems/sys/features.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/sys/features.h b/newlib/libc/sys/rtems/sys/features.h new file mode 100644 index 00000000000..8a6b8cb5a4b --- /dev/null +++ b/newlib/libc/sys/rtems/sys/features.h @@ -0,0 +1,111 @@ +/* + * This file lists the symbols which may be defined to indicate + * the presence of POSIX features subsets. If defined, the + * feature must be supported. + * + * NOTE: This file lists all feature constants. The ones not supported + * should be commented out. + * + * XXX: These are all "Compile-Time Symbolic Constants". Need to + * address "Execution-Time" ones. + * + * $Id$ + */ + +#ifndef __RTEMS_POSIX_FEATURES_h +#define __RTEMS_POSIX_FEATURES_h + +/* + * XXX: Temporary function so we can break when something that is + * not implemented is invoked. + */ + +int POSIX_MP_NOT_IMPLEMENTED( void ); +int POSIX_NOT_IMPLEMENTED( void ); +int POSIX_BOTTOM_REACHED( void ); + +/**************************************************************************** + **************************************************************************** + * * + * P1003.1b-1993 defines the constants below this comment. * + * * + **************************************************************************** + ****************************************************************************/ + +/* + * Newlib may already have this set defined. + */ + +#ifndef _POSIX_JOB_CONTROL +#define _POSIX_JOB_CONTROL +#endif + +#ifndef _POSIX_SAVED_IDS +#define _POSIX_SAVED_IDS +#endif + +#define _POSIX_ASYNCHRONOUS_IO +#define _POSIX_FSYNC +#define _POSIX_MAPPED_FILES +#define _POSIX_MEMLOCK +#define _POSIX_MEMLOCK_RANGE +#define _POSIX_MEMORY_PROTECTION +#define _POSIX_MESSAGE_PASSING +#define _POSIX_PRIORITIZED_IO +#define _POSIX_PRIORITY_SCHEDULING +#define _POSIX_REALTIME_SIGNALS +#define _POSIX_SEMAPHORES +#define _POSIX_SHARED_MEMORY_OBJECTS +#define _POSIX_SYNCHRONIZED_IO +#define _POSIX_TIMERS + +/* + * This indicates the version number of the POSIX standard we are + * trying to be compliant with. + * + * NOTE: Newlib may already have this set defined. + */ + +#ifdef _POSIX_VERSION +#undef _POSIX_VERSION +#define _POSIX_VERSION 199309L +#endif + +/**************************************************************************** + **************************************************************************** + * * + * P1003.1c/D10 defines the constants below this comment. * + * * + **************************************************************************** + ****************************************************************************/ + +#define _POSIX_THREADS +#define _POSIX_THREAD_ATTR_STACKADDR +#define _POSIX_THREAD_ATTR_STACKSIZE +#define _POSIX_THREAD_PRIORITY_SCHEDULING +#define _POSIX_THREAD_PRIO_INHERIT +#define _POSIX_THREAD_PRIO_PROTECT +#define _POSIX_THREAD_PROCESS_SHARED +#define _POSIX_THREAD_SAFE_FUNCTIONS + +/**************************************************************************** + **************************************************************************** + * * + * P1003.4b/D8 defines the constants below this comment. * + * * + **************************************************************************** + ****************************************************************************/ + +#define _POSIX_SPAWN +#define _POSIX_TIMEOUTS +#define _POSIX_CPUTIME +#define _POSIX_THREAD_CPUTIME +#define _POSIX_SPORADIC_SERVER +#define _POSIX_THREAD_SPORADIC_SERVER +#define _POSIX_DEVICE_CONTROL +#define _POSIX_DEVCTL_DIRECTION +#define _POSIX_INTERRUPT_CONTROL +#define _POSIX_ADVISORY_INFO + +#endif +/* end of include file */ |