aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Desaulniers <nickdesaulniers@users.noreply.github.com>2024-03-18 10:35:44 -0700
committerGitHub <noreply@github.com>2024-03-18 13:35:44 -0400
commit27d7bb861613a09e852b7d9979a1b6fdfe517a84 (patch)
tree2fae923bbf9dcf99a08e0500ef2632a7eb29e6cc
parent44c579f5b56e89c44ad508805f742601ce3db2b1 (diff)
downloadllvm-27d7bb861613a09e852b7d9979a1b6fdfe517a84.zip
llvm-27d7bb861613a09e852b7d9979a1b6fdfe517a84.tar.gz
llvm-27d7bb861613a09e852b7d9979a1b6fdfe517a84.tar.bz2
[libc] fix up fileno tests (#85660)
Fixes #85628
-rw-r--r--libc/config/gpu/entrypoints.txt1
-rw-r--r--libc/config/linux/aarch64/entrypoints.txt1
-rw-r--r--libc/config/linux/riscv/entrypoints.txt1
-rw-r--r--libc/test/src/stdio/CMakeLists.txt1
-rw-r--r--libc/test/src/stdio/fileop_test.cpp1
5 files changed, 5 insertions, 0 deletions
diff --git a/libc/config/gpu/entrypoints.txt b/libc/config/gpu/entrypoints.txt
index 4fb87cb..4af2e0b 100644
--- a/libc/config/gpu/entrypoints.txt
+++ b/libc/config/gpu/entrypoints.txt
@@ -179,6 +179,7 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdio.ferror
libc.src.stdio.fseek
libc.src.stdio.fflush
+ libc.src.stdio.fileno
libc.src.stdio.ftell
libc.src.stdio.clearerr
libc.src.stdio.puts
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index a48a94f..58502e4 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -542,6 +542,7 @@ if(LLVM_LIBC_FULL_BUILD)
libc.src.stdio.ferror_unlocked
libc.src.stdio.fgetc
libc.src.stdio.fflush
+ libc.src.stdio.fileno
libc.src.stdio.fopen
libc.src.stdio.fputc
libc.src.stdio.fputs
diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt
index 5e28378..d789f03 100644
--- a/libc/config/linux/riscv/entrypoints.txt
+++ b/libc/config/linux/riscv/entrypoints.txt
@@ -565,6 +565,7 @@ if(LLVM_LIBC_FULL_BUILD)
libc.src.stdio.fgetc_unlocked
libc.src.stdio.fgets
libc.src.stdio.fflush
+ libc.src.stdio.fileno
libc.src.stdio.fopen
libc.src.stdio.fputc
libc.src.stdio.fputs
diff --git a/libc/test/src/stdio/CMakeLists.txt b/libc/test/src/stdio/CMakeLists.txt
index 6e1c86e..3ccce16 100644
--- a/libc/test/src/stdio/CMakeLists.txt
+++ b/libc/test/src/stdio/CMakeLists.txt
@@ -14,6 +14,7 @@ add_libc_test(
libc.src.stdio.feof
libc.src.stdio.ferror
libc.src.stdio.fflush
+ libc.src.stdio.fileno
libc.src.stdio.fopen
libc.src.stdio.fputs
libc.src.stdio.fread
diff --git a/libc/test/src/stdio/fileop_test.cpp b/libc/test/src/stdio/fileop_test.cpp
index 2f2e63e..0fbe19c 100644
--- a/libc/test/src/stdio/fileop_test.cpp
+++ b/libc/test/src/stdio/fileop_test.cpp
@@ -11,6 +11,7 @@
#include "src/stdio/feof.h"
#include "src/stdio/ferror.h"
#include "src/stdio/fflush.h"
+#include "src/stdio/fileno.h"
#include "src/stdio/fopen.h"
#include "src/stdio/fputs.h"
#include "src/stdio/fread.h"