Skip to content

Commit 52fe935

Browse files
[libc] Update generated libc header to include missing functions/files. (#20501)
* Add a missing dependency to install struct_itimerval.h * Add fseeko/ftello declarations to stdio.h Co-authored-by: Alexey Samsonov <[email protected]>
1 parent 423cdd5 commit 52fe935

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

libc/include/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,9 @@ add_header_macro(
621621
sys/time.h
622622
DEPENDS
623623
.llvm_libc_common_h
624-
.llvm-libc-types.struct_timeval
625624
.llvm-libc-macros.sys_time_macros
625+
.llvm-libc-types.struct_itimerval
626+
.llvm-libc-types.struct_timeval
626627
)
627628

628629
add_header_macro(

libc/include/stdio.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,26 @@ functions:
197197
- type: FILE *
198198
- type: long
199199
- type: int
200+
- name: fseeko
201+
standards:
202+
- POSIX
203+
return_type: int
204+
arguments:
205+
- type: FILE *
206+
- type: off_t
207+
- type: int
200208
- name: ftell
201209
standards:
202210
- stdc
203211
return_type: long
204212
arguments:
205213
- type: FILE *
214+
- name: ftello
215+
standards:
216+
- POSIX
217+
return_type: off_t
218+
arguments:
219+
- type: FILE *
206220
- name: funlockfile
207221
standards:
208222
- POSIX

0 commit comments

Comments
 (0)