Skip to content

Commit 7bfddb6

Browse files
mark static and add to riscv and aarch64
1 parent 9c80f19 commit 7bfddb6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

libc/config/linux/aarch64/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ if(LLVM_LIBC_FULL_BUILD)
972972
libc.src.stdio.getc_unlocked
973973
libc.src.stdio.getchar
974974
libc.src.stdio.getchar_unlocked
975+
libc.src.stdio.perror
975976
libc.src.stdio.putc
976977
libc.src.stdio.putchar
977978
libc.src.stdio.puts

libc/config/linux/riscv/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ if(LLVM_LIBC_FULL_BUILD)
10981098
libc.src.stdio.getc_unlocked
10991099
libc.src.stdio.getchar
11001100
libc.src.stdio.getchar_unlocked
1101+
libc.src.stdio.perror
11011102
libc.src.stdio.putc
11021103
libc.src.stdio.putchar
11031104
libc.src.stdio.puts

libc/src/stdio/generic/perror.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace LIBC_NAMESPACE_DECL {
1717

18-
int write_out(cpp::string_view str_view, File *f) {
18+
static int write_out(cpp::string_view str_view, File *f) {
1919
if (str_view.size() > 0) {
2020
auto result = f->write_unlocked(str_view.data(), str_view.size());
2121
if (result.has_error())
@@ -26,7 +26,8 @@ int write_out(cpp::string_view str_view, File *f) {
2626

2727
// separate function so that we can return early on error but still get the
2828
// unlock. This function sets errno and should not be called elsewhere.
29-
void write_sequence(cpp::string_view str_view, cpp::string_view err_str) {
29+
static void write_sequence(cpp::string_view str_view,
30+
cpp::string_view err_str) {
3031
int write_err;
3132
// TODO: this seems like there should be some sort of queue system to
3233
// deduplicate this code.

0 commit comments

Comments
 (0)