Skip to content

Commit 1e997de

Browse files
committed
statvfs.h is now able to be generated
1 parent c76f029 commit 1e997de

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

libc/config/linux/api.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,5 +267,5 @@ def SearchAPI : PublicAPI<"search.h"> {
267267
}
268268

269269
def SysStatvfsAPI : PublicAPI<"sys/statvfs.h"> {
270-
let Types = ["fsblkcnt_t", "fsfilcnt_t", "struct statvfs"];
270+
let Types = ["struct statvfs"];
271271
}

libc/config/linux/x86_64/headers.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ set(TARGET_PUBLIC_HEADERS
4545
libc.include.sys_select
4646
libc.include.sys_socket
4747
libc.include.sys_stat
48-
# statvfs is broken, will uncomment once it's fixed.
49-
# libc.include.sys_statvfs
48+
libc.include.sys_statvfs
5049
libc.include.sys_syscall
5150
libc.include.sys_time
5251
libc.include.sys_types

libc/newhdrgen/yaml/sys/statvfs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ header: sys-statvfs.h
22
macros: []
33
types:
44
- type_name: struct_statvfs
5+
- type_name: fsblkcnt_t
6+
- type_name: fsfilcnt_t
57
enums: []
68
objects: []
79
functions:

libc/src/sys/statvfs/linux/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ add_header_library(
88
libc.src.__support.common
99
libc.src.__support.CPP.optional
1010
libc.include.sys_syscall
11-
libc.include.llvm-libc-types.struct_statvfs
11+
libc.include.sys_statvfs
1212
)
1313

1414
add_entrypoint_object(
@@ -19,7 +19,7 @@ add_entrypoint_object(
1919
../statvfs.h
2020
DEPENDS
2121
libc.src.__support.libc_assert
22-
libc.include.llvm-libc-types.struct_statvfs
22+
libc.include.sys_statvfs
2323
.statfs_utils
2424
)
2525

@@ -31,7 +31,7 @@ add_entrypoint_object(
3131
../fstatvfs.h
3232
DEPENDS
3333
libc.src.__support.libc_assert
34-
libc.include.llvm-libc-types.struct_statvfs
34+
libc.include.sys_statvfs
3535
.statfs_utils
3636
)
3737

0 commit comments

Comments
 (0)