Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions libc/config/baremetal/aarch64/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,11 @@ set(TARGET_LIBC_ENTRYPOINTS

# stdio.h entrypoints
libc.src.stdio.asprintf
libc.src.stdio.fflush
libc.src.stdio.fopencookie
libc.src.stdio.fprintf
libc.src.stdio.fwrite
libc.src.stdio.getc
libc.src.stdio.getchar
libc.src.stdio.printf
libc.src.stdio.putchar
Expand All @@ -135,7 +138,12 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdio.snprintf
libc.src.stdio.sprintf
libc.src.stdio.sscanf
libc.src.stdio.stderr
libc.src.stdio.stdin
libc.src.stdio.stdout
libc.src.stdio.ungetc
libc.src.stdio.vasprintf
libc.src.stdio.vfprintf
libc.src.stdio.vprintf
libc.src.stdio.vscanf
libc.src.stdio.vsnprintf
Expand Down
8 changes: 8 additions & 0 deletions libc/config/baremetal/arm/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,11 @@ set(TARGET_LIBC_ENTRYPOINTS

# stdio.h entrypoints
libc.src.stdio.asprintf
libc.src.stdio.fflush
libc.src.stdio.fopencookie
libc.src.stdio.fprintf
libc.src.stdio.fwrite
libc.src.stdio.getc
libc.src.stdio.getchar
libc.src.stdio.printf
libc.src.stdio.putchar
Expand All @@ -135,7 +138,12 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdio.snprintf
libc.src.stdio.sprintf
libc.src.stdio.sscanf
libc.src.stdio.stderr
libc.src.stdio.stdin
libc.src.stdio.stdout
libc.src.stdio.ungetc
libc.src.stdio.vasprintf
libc.src.stdio.vfprintf
libc.src.stdio.vprintf
libc.src.stdio.vscanf
libc.src.stdio.vsnprintf
Expand Down
8 changes: 8 additions & 0 deletions libc/config/baremetal/riscv/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,11 @@ set(TARGET_LIBC_ENTRYPOINTS

# stdio.h entrypoints
libc.src.stdio.asprintf
libc.src.stdio.fflush
libc.src.stdio.fopencookie
libc.src.stdio.fprintf
libc.src.stdio.fwrite
libc.src.stdio.getc
libc.src.stdio.getchar
libc.src.stdio.printf
libc.src.stdio.putchar
Expand All @@ -135,7 +138,12 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdio.snprintf
libc.src.stdio.sprintf
libc.src.stdio.sscanf
libc.src.stdio.stderr
libc.src.stdio.stdin
libc.src.stdio.stdout
libc.src.stdio.ungetc
libc.src.stdio.vasprintf
libc.src.stdio.vfprintf
libc.src.stdio.vprintf
libc.src.stdio.vscanf
libc.src.stdio.vsnprintf
Expand Down
8 changes: 4 additions & 4 deletions libc/src/__support/File/baremetal/stderr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

namespace LIBC_NAMESPACE_DECL {

cookie_io_functions_t io_func = {.read = nullptr,
.write = __llvm_libc_stdio_write,
.seek = nullptr,
.close = nullptr};
static cookie_io_functions_t io_func = {.read = nullptr,
.write = __llvm_libc_stdio_write,
.seek = nullptr,
.close = nullptr};
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wglobal-constructors"
// Buffering is implementation defined. Therefore to save RAM, we use no
Expand Down
8 changes: 4 additions & 4 deletions libc/src/__support/File/baremetal/stdin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

namespace LIBC_NAMESPACE_DECL {

cookie_io_functions_t io_func = {.read = __llvm_libc_stdio_read,
.write = nullptr,
.seek = nullptr,
.close = nullptr};
static cookie_io_functions_t io_func = {.read = __llvm_libc_stdio_read,
.write = nullptr,
.seek = nullptr,
.close = nullptr};
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wglobal-constructors"
// Buffering is implementation defined. Therefore to save RAM, we use no
Expand Down
Loading