mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +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
|
@ -219,6 +219,15 @@ bool32 GetVolumePathName(const char16_t *lpszFileName,
|
|||
char16_t *lpszVolumePathName,
|
||||
uint32_t cchBufferLength);
|
||||
|
||||
bool32 GetVolumeInformationByHandle(int64_t hFile,
|
||||
char16_t *opt_out_lpVolumeNameBuffer,
|
||||
uint32_t nVolumeNameSize,
|
||||
uint32_t *opt_out_lpVolumeSerialNumber,
|
||||
uint32_t *opt_out_lpMaximumComponentLength,
|
||||
uint32_t *opt_out_lpFileSystemFlags,
|
||||
char16_t *opt_out_lpFileSystemNameBuffer,
|
||||
uint32_t nFileSystemNameSize);
|
||||
|
||||
#if ShouldUseMsabiAttribute()
|
||||
#include "libc/nt/thunk/files.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue