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