Skip to content

Commit 36f7f34

Browse files
authored
[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
1 parent 8d1454b commit 36f7f34

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
@@ -632,8 +632,9 @@ add_header_macro(
632632
sys/time.h
633633
DEPENDS
634634
.llvm_libc_common_h
635-
.llvm-libc-types.struct_timeval
636635
.llvm-libc-macros.sys_time_macros
636+
.llvm-libc-types.struct_itimerval
637+
.llvm-libc-types.struct_timeval
637638
)
638639

639640
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)