diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-09 08:35:58 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-09 08:37:18 -0500 |
commit | 2d51251192aac8527e773c98047d8597a7f02b8a (patch) | |
tree | f0098e58a37b434d4e8fcecc550e3b810da41379 /schedsim/rtems/sched_cpu/sys/_types.h | |
parent | schedsim_priority: Remove scenario output files. (diff) | |
download | rtems-schedsim-2d51251192aac8527e773c98047d8597a7f02b8a.tar.bz2 |
schedsim: Add smp support.
Diffstat (limited to 'schedsim/rtems/sched_cpu/sys/_types.h')
-rw-r--r-- | schedsim/rtems/sched_cpu/sys/_types.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/schedsim/rtems/sched_cpu/sys/_types.h b/schedsim/rtems/sched_cpu/sys/_types.h new file mode 100644 index 0000000..1ad429d --- /dev/null +++ b/schedsim/rtems/sched_cpu/sys/_types.h @@ -0,0 +1,54 @@ +/* ANSI C namespace clean utility typedefs */ + +/* This file defines various typedefs needed by the system calls that support + the C library. Basically, they're just the POSIX versions with an '_' + prepended. This file lives in the `sys' directory so targets can provide + their own if desired (or they can put target dependant conditionals here). +*/ + +#ifndef _SYS__TYPES_H +#define _SYS__TYPES_H + +typedef long _off_t; +__extension__ typedef long long _off64_t; + +typedef long _fpos_t; +__extension__ typedef long long _fpos64_t; + +#if defined(__INT_MAX__) && __INT_MAX__ == 2147483647 +typedef int _ssize_t; +#else +typedef long _ssize_t; +#endif + +#define __need_wint_t +#include <stddef.h> + +/* Conversion state information. */ +typedef struct +{ + int __count; + union + { + wint_t __wch; + unsigned char __wchb[4]; + } __value; /* Value so far. */ +} _mbstate_t; + +struct __flock_mutex_t_tmp; +typedef struct +{ + int __a; + int __b; + struct + { + long int __c1; + int __c2; + } __c; + int __d; + struct __flock_mutex_t_tmp * __e; +} __flock_mutex_t; + +typedef struct { __flock_mutex_t mutex; } _flock_t; + +#endif /* _SYS__TYPES_H */ |