mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +00:00
Polyfill statfs() and fstatfs() on Windows
This commit is contained in:
parent
f7ee9d7d99
commit
c2211c9e63
16 changed files with 370 additions and 50 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue