1 | /* Copyright (c) 2016 Phoenix Systems |
---|
2 | All rights reserved. |
---|
3 | |
---|
4 | Redistribution and use in source and binary forms, with or without |
---|
5 | modification, are permitted provided that the following conditions |
---|
6 | are met: |
---|
7 | 1. Redistributions of source code must retain the above copyright |
---|
8 | notice, this list of conditions and the following disclaimer. |
---|
9 | 2. Redistributions in binary form must reproduce the above copyright |
---|
10 | notice, this list of conditions and the following disclaimer in the |
---|
11 | documentation and/or other materials provided with the distribution. |
---|
12 | |
---|
13 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
---|
14 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
15 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
16 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
---|
17 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
---|
18 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
---|
19 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
---|
20 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
---|
21 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
---|
22 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
---|
23 | SUCH DAMAGE.*/ |
---|
24 | |
---|
25 | #ifndef _SYS__TYPES_H |
---|
26 | #define _SYS__TYPES_H |
---|
27 | |
---|
28 | #include <machine/_types.h> |
---|
29 | |
---|
30 | #if defined(__INT_MAX__) && __INT_MAX__ == 2147483647 |
---|
31 | typedef int _ssize_t; |
---|
32 | #else |
---|
33 | typedef long _ssize_t; |
---|
34 | #endif |
---|
35 | |
---|
36 | typedef long _off_t; |
---|
37 | typedef long _fpos_t; |
---|
38 | |
---|
39 | typedef long int __off_t; |
---|
40 | typedef long int __loff_t; |
---|
41 | typedef long __suseconds_t; |
---|
42 | #define _CLOCK_T_ unsigned long |
---|
43 | |
---|
44 | #define __need_wint_t |
---|
45 | #include <stddef.h> |
---|
46 | |
---|
47 | /* Conversion state information. */ |
---|
48 | typedef struct { |
---|
49 | int __count; |
---|
50 | union { |
---|
51 | wint_t __wch; |
---|
52 | unsigned char __wchb[4]; |
---|
53 | } __value; |
---|
54 | } _mbstate_t; |
---|
55 | |
---|
56 | struct __flock_mutex_t_tmp; |
---|
57 | typedef struct { |
---|
58 | int __a; |
---|
59 | int __b; |
---|
60 | struct { |
---|
61 | long int __c1; |
---|
62 | int __c2; |
---|
63 | } __c; |
---|
64 | int __d; |
---|
65 | struct __flock_mutex_t_tmp *__e; |
---|
66 | } __flock_mutex_t; |
---|
67 | |
---|
68 | typedef struct { |
---|
69 | __flock_mutex_t mutex; |
---|
70 | } _flock_t; |
---|
71 | |
---|
72 | #endif |
---|