diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-12-12 01:24:09 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-12-12 01:24:09 +0000 |
commit | 8fb3796385eb2416d05567a5996cc60f251d0021 (patch) | |
tree | bbb95a383e2485dcc0fdf9948770e2edfad0aee1 /newlib/libc/sys/linux | |
parent | 947411367d78a0fcbecb21f47711bce31c5a0d08 (diff) | |
download | cygnal-8fb3796385eb2416d05567a5996cc60f251d0021.tar.gz cygnal-8fb3796385eb2416d05567a5996cc60f251d0021.tar.bz2 cygnal-8fb3796385eb2416d05567a5996cc60f251d0021.zip |
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
Diffstat (limited to 'newlib/libc/sys/linux')
-rw-r--r-- | newlib/libc/sys/linux/sys/types.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/newlib/libc/sys/linux/sys/types.h b/newlib/libc/sys/linux/sys/types.h index ba8ee4379..625de3cdf 100644 --- a/newlib/libc/sys/linux/sys/types.h +++ b/newlib/libc/sys/linux/sys/types.h @@ -6,22 +6,22 @@ #ifndef _SYS_TYPES_H #define _SYS_TYPES_H -/* - * Okay, newlib has its own time_t and clock_t in libc/include/time.h - * Since they're equivalent but not identical, we'll just skip the kernel's - * definitions. - */ +/* Newlib has it's own time_t and clock_t definitions in + * libc/include/sys/types.h. Repeat those here and + * skip the kernel's definitions. */ -#ifdef __time_t_defined +#include <machine/types.h> + +#ifndef __time_t_defined #define _TIME_T -#else #define __time_t_defined +typedef _TIME_T_ time_t; #endif -#ifdef __clock_t_defined +#ifndef __clock_t_defined #define _CLOCK_T -#else #define __clock_t_defined +typedef _CLOCK_T_ clock_t; #endif #include <linux/types.h> |