Polyfill statfs() and fstatfs() on Windows

This commit is contained in:
Justine Tunney 2022-08-17 18:57:03 -07:00
parent f7ee9d7d99
commit c2211c9e63
16 changed files with 370 additions and 50 deletions

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_GetVolumeInformationByHandleW,GetVolumeInformationByHandleW,0
.text.windows
GetVolumeInformationByHandle:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetVolumeInformationByHandleW(%rip),%rax
jmp __sysv2nt8
.endfn GetVolumeInformationByHandle,globl
.previous