mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-27 15:52:28 +00:00
Rewrite special file handling on Windows
This change gets GNU grep working. What caused it to not work, is it wouldn't write to an output file descriptor when its dev/ino equaled /dev/null's. So now we invent special dev/ino values for these files
This commit is contained in:
parent
aca2261cda
commit
2db2f40a98
53 changed files with 485 additions and 299 deletions
|
@ -7,7 +7,9 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
int sys_fstat(int, struct stat *);
|
||||
int sys_fstatat(int, const char *, struct stat *, int);
|
||||
int sys_fstat_nt(int64_t, struct stat *);
|
||||
int sys_fstat_nt(int, struct stat *);
|
||||
int sys_fstat_nt_special(int, struct stat *);
|
||||
int sys_fstat_nt_handle(int64_t, struct stat *);
|
||||
int sys_fstatat_nt(int, const char *, struct stat *, int);
|
||||
int sys_lstat_nt(const char *, struct stat *);
|
||||
int sys_fstat_metal(int, struct stat *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue