Skip to content

Commit ddb29a8

Browse files
mark static and add to riscv and aarch64
1 parent af60e6f commit ddb29a8

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
@@ -969,6 +969,7 @@ if(LLVM_LIBC_FULL_BUILD)
969969
libc.src.stdio.getc_unlocked
970970
libc.src.stdio.getchar
971971
libc.src.stdio.getchar_unlocked
972+
libc.src.stdio.perror
972973
libc.src.stdio.putc
973974
libc.src.stdio.putchar
974975
libc.src.stdio.puts

libc/config/linux/riscv/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,7 @@ if(LLVM_LIBC_FULL_BUILD)
10951095
libc.src.stdio.getc_unlocked
10961096
libc.src.stdio.getchar
10971097
libc.src.stdio.getchar_unlocked
1098+
libc.src.stdio.perror
10981099
libc.src.stdio.putc
10991100
libc.src.stdio.putchar
11001101
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)