File tree Expand file tree Collapse file tree 32 files changed +69
-68
lines changed Expand file tree Collapse file tree 32 files changed +69
-68
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ add_entrypoint_object(
59
59
DEPENDS
60
60
libc.hdr.types.FILE
61
61
libc.src.__support.RPC.rpc_client
62
+ .gpu_file
62
63
)
63
64
64
65
add_entrypoint_object (
@@ -70,6 +71,7 @@ add_entrypoint_object(
70
71
DEPENDS
71
72
libc.hdr.types.FILE
72
73
libc.src.__support.RPC.rpc_client
74
+ .gpu_file
73
75
)
74
76
75
77
add_entrypoint_object (
@@ -114,6 +116,7 @@ add_entrypoint_object(
114
116
DEPENDS
115
117
libc.hdr.types.FILE
116
118
libc.src.__support.RPC.rpc_client
119
+ .gpu_file
117
120
)
118
121
119
122
add_entrypoint_object (
@@ -124,6 +127,7 @@ add_entrypoint_object(
124
127
../fopen.h
125
128
DEPENDS
126
129
libc.hdr.types.FILE
130
+ .gpu_file
127
131
)
128
132
129
133
add_entrypoint_object (
@@ -134,6 +138,8 @@ add_entrypoint_object(
134
138
../fclose.h
135
139
DEPENDS
136
140
libc.hdr.types.FILE
141
+ libc.hdr.stdio_macros
142
+ .gpu_file
137
143
)
138
144
139
145
add_entrypoint_object (
@@ -144,6 +150,7 @@ add_entrypoint_object(
144
150
../fread.h
145
151
DEPENDS
146
152
libc.hdr.types.FILE
153
+ .gpu_file
147
154
)
148
155
149
156
add_entrypoint_object (
@@ -254,8 +261,6 @@ add_entrypoint_object(
254
261
DEPENDS
255
262
libc.hdr.types.FILE
256
263
.gpu_file
257
- .feof
258
- .ferror
259
264
)
260
265
261
266
add_entrypoint_object (
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/clearerr.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fclose.h"
10
- #include " src/__support/macros/config.h"
11
- #include " src/stdio/gpu/file.h"
12
10
13
11
#include " hdr/stdio_macros.h"
14
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
+ #include " src/stdio/gpu/file.h"
15
15
16
16
namespace LIBC_NAMESPACE_DECL {
17
17
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/feof.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/ferror.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fflush.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fgetc.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/stdio_macros.h" // for EOF.
14
13
#include " hdr/types/FILE.h"
14
+ #include " src/__support/common.h"
15
15
16
16
namespace LIBC_NAMESPACE_DECL {
17
17
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fgets.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
- #include " src/stdio/feof.h"
13
- #include " src/stdio/ferror.h"
14
10
11
+ #include " file.h"
15
12
#include " hdr/stdio_macros.h" // for EOF.
16
13
#include " hdr/types/FILE.h"
17
- #include < stddef.h>
14
+ #include " src/__support/common.h"
15
+
16
+ #include < stdint.h>
18
17
19
18
namespace LIBC_NAMESPACE_DECL {
20
19
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
+ #include " hdr/stdio_macros.h" // For stdin/out/err
10
+ #include " hdr/types/FILE.h"
9
11
#include " src/__support/RPC/rpc_client.h"
10
12
#include " src/__support/common.h"
11
13
#include " src/__support/macros/attributes.h"
12
- #include " src/__support/macros/config.h"
13
- #include " src/string/string_utils.h"
14
-
15
- #include " hdr/stdio_macros.h" // For stdin/out/err
16
- #include " hdr/types/FILE.h"
17
14
18
15
namespace LIBC_NAMESPACE_DECL {
19
16
namespace file {
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fopen.h"
10
- #include " src/__support/CPP/string_view.h"
11
- #include " src/__support/macros/config.h"
12
- #include " src/stdio/gpu/file.h"
13
10
14
11
#include " hdr/types/FILE.h"
12
+ #include " src/__support/common.h"
13
+ #include " src/stdio/gpu/file.h"
15
14
#include " src/string/memory_utils/inline_memcpy.h"
15
+ #include " src/string/string_utils.h"
16
16
17
17
namespace LIBC_NAMESPACE_DECL {
18
18
Original file line number Diff line number Diff line change 11
11
#include " hdr/types/FILE.h"
12
12
#include " src/__support/CPP/string_view.h"
13
13
#include " src/__support/arg_list.h"
14
+ #include " src/__support/common.h"
14
15
#include " src/errno/libc_errno.h"
15
16
#include " src/stdio/gpu/vfprintf_utils.h"
16
17
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fputc.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/stdio_macros.h" // for EOF.
14
13
#include " hdr/types/FILE.h"
14
+ #include " src/__support/common.h"
15
15
16
16
namespace LIBC_NAMESPACE_DECL {
17
17
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fputs.h"
10
- #include " src/__support/CPP/string_view.h"
11
- #include " src/__support/macros/config.h"
12
- #include " src/errno/libc_errno.h"
13
- #include " src/stdio/gpu/file.h"
14
10
15
11
#include " hdr/stdio_macros.h" // for EOF.
16
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/CPP/string_view.h"
14
+ #include " src/__support/common.h"
15
+ #include " src/stdio/gpu/file.h"
17
16
18
17
namespace LIBC_NAMESPACE_DECL {
19
18
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fread.h"
10
- #include " src/__support/macros/config.h"
11
- #include " src/stdio/gpu/file.h"
12
10
13
11
#include " hdr/types/FILE.h"
12
+ #include " src/__support/common.h"
13
+ #include " src/stdio/gpu/file.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fseek.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/ftell.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/fwrite.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/getc.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/stdio_macros.h" // for EOF.
14
13
#include " hdr/types/FILE.h"
14
+ #include " src/__support/common.h"
15
15
16
16
namespace LIBC_NAMESPACE_DECL {
17
17
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/getchar.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/stdio_macros.h" // for EOF and stdin.
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 10
10
11
11
#include " src/__support/CPP/string_view.h"
12
12
#include " src/__support/arg_list.h"
13
+ #include " src/__support/common.h"
13
14
#include " src/errno/libc_errno.h"
14
15
#include " src/stdio/gpu/vfprintf_utils.h"
15
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/putc.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/stdio_macros.h" // for EOF.
14
13
#include " hdr/types/FILE.h"
14
+ #include " src/__support/common.h"
15
15
16
16
namespace LIBC_NAMESPACE_DECL {
17
17
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/putchar.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/stdio_macros.h" // for EOF and stdout.
13
+ #include " src/__support/common.h"
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/puts.h"
10
- #include " src/__support/CPP/string_view.h"
11
- #include " src/__support/macros/config.h"
12
- #include " src/errno/libc_errno.h"
13
- #include " src/stdio/gpu/file.h"
14
10
15
11
#include " hdr/stdio_macros.h" // for EOF and stdout.
12
+ #include " src/__support/CPP/string_view.h"
13
+ #include " src/__support/common.h"
14
+ #include " src/stdio/gpu/file.h"
16
15
17
16
namespace LIBC_NAMESPACE_DECL {
18
17
19
18
LLVM_LIBC_FUNCTION (int , puts, (const char *__restrict str)) {
20
19
cpp::string_view str_view (str);
21
- auto written = file::write_impl<LIBC_WRITE_TO_STDOUT_NEWLINE>(stdout, str,
22
- str_view.size ());
20
+ auto written = file::write_impl<LIBC_WRITE_TO_STDOUT_NEWLINE>(
21
+ stdout, str, str_view.size ());
23
22
if (written != str_view.size () + 1 )
24
23
return EOF;
25
24
return 0 ;
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/remove.h"
10
- #include " file.h"
11
- #include " src/__support/macros/config.h"
12
10
11
+ #include " file.h"
13
12
#include " hdr/types/FILE.h"
13
+ #include " src/__support/common.h"
14
+ #include " src/string/string_utils.h"
14
15
15
16
namespace LIBC_NAMESPACE_DECL {
16
17
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/stdio/rename.h"
10
- #include " src/__support/CPP/string_view.h"
11
- #include " src/__support/macros/config.h"
12
- #include " src/stdio/gpu/file.h"
13
10
14
11
#include " hdr/types/FILE.h"
12
+ #include " src/__support/common.h"
13
+ #include " src/stdio/gpu/file.h"
14
+ #include " src/string/string_utils.h"
15
15
16
16
namespace LIBC_NAMESPACE_DECL {
17
17
You can’t perform that action at this time.
0 commit comments