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
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
#define _POSIX_PRIORITIZED_IO 1
|
|
|
|
#define _POSIX_PRIORITY_SCHEDULING 1
|
|
|
|
#define _POSIX_REALTIME_SIGNALS 1
|
|
|
|
#define _POSIX_SEMAPHORES 1
|
|
|
|
#define _POSIX_SHARED_MEMORY_OBJECTS 1
|
|
|
|
#define _POSIX_SYNCHRONIZED_IO 1
|
|
|
|
#define _POSIX_TIMERS 1
|
|
|
|
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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__
|
2004-02-09 10:22:01 +08:00
|
|
|
# define _POSIX_JOB_CONTROL 1
|
|
|
|
# define _POSIX_SAVED_IDS 0
|
|
|
|
# define _POSIX_VERSION 199009L
|
|
|
|
# define _POSIX_THREADS 1
|
|
|
|
# define _POSIX_THREAD_PROCESS_SHARED 1
|
|
|
|
# define _POSIX_THREAD_SAFE_FUNCTIONS 1
|
|
|
|
# define _POSIX_THREAD_PRIORITY_SCHEDULING 1
|
|
|
|
# define _POSIX_THREAD_ATTR_STACKSIZE 1
|
|
|
|
# define _POSIX_SEMAPHORES 1
|
|
|
|
# define _POSIX_TIMERS 1
|
2005-10-19 02:39:46 +08:00
|
|
|
# define _POSIX_MEMLOCK_RANGE 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
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _SYS_FEATURES_H */
|