[libc-commits] [libc] [libc] Implement fgetpos/fsetpos (PR #221349)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Fri Oct 9 04:04:03 PDT 2026


================
@@ -635,6 +635,63 @@ add_libc_test(
     libc.src.stdio.fwrite
 )
 
+add_libc_test(
+  fgetpos_test
+  SUITE
+    libc_stdio_unittests
+  SRCS
+    fgetpos_test.cpp
+  DEPENDS
+    libc.hdr.stdio_macros
+    libc.hdr.types.fpos_t
+    libc.hdr.types.wint_t
+    libc.src.stdio.fclose
+    libc.src.stdio.feof
+    libc.src.stdio.ferror
----------------
kaladron wrote:

I don't see ferror, but it looks like a few others might be needed here:

+    libc.hdr.signal_macros
+    libc.src.__support.CPP.scope
+    libc.test.UnitTest.ErrnoCheckingTest



https://github.com/llvm/llvm-project/pull/221349


More information about the libc-commits mailing list