mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07: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
16
libc/nt/struct/filefsfullsizeinformation.h
Normal file
16
libc/nt/struct/filefsfullsizeinformation.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct NtFileFsFullSizeInformation {
|
||||
int64_t TotalAllocationUnits;
|
||||
int64_t CallerAvailableAllocationUnits;
|
||||
int64_t ActualAvailableAllocationUnits;
|
||||
uint32_t SectorsPerAllocationUnit;
|
||||
uint32_t BytesPerSector;
|
||||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue