From 672289aa0ca8f8d688d027c1965160c915051f11 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 15 Oct 2025 18:06:13 -0700 Subject: [PATCH] [libc] Update generated libc header to include missing functions/files. (#163658) * Add a missing dependency to install struct_itimerval.h * Add fseeko/ftello declarations to stdio.h --- libc/include/CMakeLists.txt | 3 ++- libc/include/stdio.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt index 8fd37b0ee5ad6..764d66982ea2c 100644 --- a/libc/include/CMakeLists.txt +++ b/libc/include/CMakeLists.txt @@ -621,8 +621,9 @@ add_header_macro( sys/time.h DEPENDS .llvm_libc_common_h - .llvm-libc-types.struct_timeval .llvm-libc-macros.sys_time_macros + .llvm-libc-types.struct_itimerval + .llvm-libc-types.struct_timeval ) add_header_macro( diff --git a/libc/include/stdio.yaml b/libc/include/stdio.yaml index 2a0c563709984..394437ba3bbcd 100644 --- a/libc/include/stdio.yaml +++ b/libc/include/stdio.yaml @@ -197,12 +197,26 @@ functions: - type: FILE * - type: long - type: int + - name: fseeko + standards: + - POSIX + return_type: int + arguments: + - type: FILE * + - type: off_t + - type: int - name: ftell standards: - stdc return_type: long arguments: - type: FILE * + - name: ftello + standards: + - POSIX + return_type: off_t + arguments: + - type: FILE * - name: funlockfile standards: - POSIX