File tree Expand file tree Collapse file tree 7 files changed +12
-30
lines changed Expand file tree Collapse file tree 7 files changed +12
-30
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,7 @@ def MathAPI : PublicAPI<"math.h"> {
57
57
}
58
58
59
59
def StdIOAPI : PublicAPI<"stdio.h"> {
60
- let Types = [
61
- "size_t",
62
- "off_t",
63
- ];
60
+ let Types = ["size_t"];
64
61
}
65
62
66
63
def StdlibAPI : PublicAPI<"stdlib.h"> {
Original file line number Diff line number Diff line change @@ -64,11 +64,7 @@ def StdIOAPI : PublicAPI<"stdio.h"> {
64
64
SimpleMacroDef<"_IOLBF", "1">,
65
65
SimpleMacroDef<"_IONBF", "2">,
66
66
];
67
- let Types = [
68
- "FILE",
69
- "off_t",
70
- "size_t",
71
- ];
67
+ let Types = ["size_t", "FILE"];
72
68
}
73
69
74
70
def IntTypesAPI : PublicAPI<"inttypes.h"> {
Original file line number Diff line number Diff line change @@ -49,10 +49,7 @@ def CTypeAPI : PublicAPI<"ctype.h"> {
49
49
}
50
50
51
51
def FCntlAPI : PublicAPI<"fcntl.h"> {
52
- let Types = [
53
- "mode_t",
54
- "off_t",
55
- ];
52
+ let Types = ["mode_t"];
56
53
}
57
54
58
55
def IntTypesAPI : PublicAPI<"inttypes.h"> {
@@ -80,12 +77,7 @@ def StdIOAPI : PublicAPI<"stdio.h"> {
80
77
SimpleMacroDef<"_IOLBF", "1">,
81
78
SimpleMacroDef<"_IONBF", "2">,
82
79
];
83
- let Types = [
84
- "FILE",
85
- "cookie_io_functions_t",
86
- "off_t",
87
- "size_t",
88
- ];
80
+ let Types = ["size_t", "FILE", "cookie_io_functions_t"];
89
81
}
90
82
91
83
def StdlibAPI : PublicAPI<"stdlib.h"> {
Original file line number Diff line number Diff line change @@ -41,10 +41,9 @@ add_gen_header(
41
41
DEF_FILE fcntl.h.def
42
42
GEN_HDR fcntl.h
43
43
DEPENDS
44
+ .llvm_libc_common_h
44
45
.llvm-libc-macros .fcntl_macros
45
46
.llvm-libc-types.mode_t
46
- .llvm-libc-types.off_t
47
- .llvm_libc_common_h
48
47
)
49
48
50
49
add_gen_header(
@@ -265,14 +264,13 @@ add_gen_header(
265
264
DEF_FILE stdio.h.def
266
265
GEN_HDR stdio.h
267
266
DEPENDS
267
+ .llvm_libc_common_h
268
268
.llvm-libc-macros .file_seek_macros
269
269
.llvm-libc-macros .stdio_macros
270
- .llvm-libc-types.FILE
271
- .llvm-libc-types.cookie_io_functions_t
272
- .llvm-libc-types.off_t
273
270
.llvm-libc-types.size_t
274
271
.llvm-libc-types.ssize_t
275
- .llvm_libc_common_h
272
+ .llvm-libc-types.FILE
273
+ .llvm-libc-types.cookie_io_functions_t
276
274
)
277
275
278
276
add_gen_header(
Original file line number Diff line number Diff line change @@ -210,10 +210,7 @@ def POSIX : StandardSpec<"POSIX"> {
210
210
HeaderSpec FCntl = HeaderSpec<
211
211
"fcntl.h",
212
212
[], // Macros
213
- [
214
- ModeTType,
215
- OffTType,
216
- ],
213
+ [ModeTType],
217
214
[], // Enumerations
218
215
[
219
216
FunctionSpec<
@@ -1183,7 +1180,7 @@ def POSIX : StandardSpec<"POSIX"> {
1183
1180
HeaderSpec StdIO = HeaderSpec<
1184
1181
"stdio.h",
1185
1182
[], // Macros
1186
- [OffTType ], // Types
1183
+ [], // Types
1187
1184
[], // Enumerations
1188
1185
[
1189
1186
FunctionSpec<
Original file line number Diff line number Diff line change 10
10
#define LLVM_LIBC_SRC_STDIO_FSEEKO_H
11
11
12
12
#include < stdio.h>
13
+ #include < unistd.h>
13
14
14
15
namespace LIBC_NAMESPACE {
15
16
Original file line number Diff line number Diff line change 10
10
#define LLVM_LIBC_SRC_STDIO_FTELLO_H
11
11
12
12
#include < stdio.h>
13
+ #include < unistd.h>
13
14
14
15
namespace LIBC_NAMESPACE {
15
16
You can’t perform that action at this time.
0 commit comments