source: rtems-schedsim/schedsim/rtems/sched_cpu/sys/_types.h

Last change on this file was 2d51251, checked in by Jennifer Averett <jennifer.averett@…>, on 05/09/14 at 13:35:58

schedsim: Add smp support.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/* ANSI C namespace clean utility typedefs */
2
3/* This file defines various typedefs needed by the system calls that support
4   the C library.  Basically, they're just the POSIX versions with an '_'
5   prepended.  This file lives in the `sys' directory so targets can provide
6   their own if desired (or they can put target dependant conditionals here).
7*/
8
9#ifndef _SYS__TYPES_H
10#define _SYS__TYPES_H
11
12typedef long _off_t;
13__extension__ typedef long long _off64_t;
14
15typedef long _fpos_t;
16__extension__ typedef long long _fpos64_t;
17
18#if defined(__INT_MAX__) && __INT_MAX__ == 2147483647
19typedef int _ssize_t;
20#else
21typedef long _ssize_t;
22#endif
23
24#define __need_wint_t
25#include <stddef.h>
26
27/* Conversion state information.  */
28typedef struct
29{
30  int __count;
31  union
32  {
33    wint_t __wch;
34    unsigned char __wchb[4];
35  } __value;            /* Value so far.  */
36} _mbstate_t;
37
38struct __flock_mutex_t_tmp;
39typedef struct
40{
41  int __a;
42  int __b;
43  struct
44  {
45    long int __c1;
46    int __c2;
47  } __c;
48  int __d;
49  struct __flock_mutex_t_tmp * __e;
50} __flock_mutex_t;
51
52typedef struct { __flock_mutex_t mutex; } _flock_t;
53
54#endif  /* _SYS__TYPES_H */
Note: See TracBrowser for help on using the repository browser.