mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +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
|
@ -60,11 +60,11 @@ const char *(DescribeStat)(char buf[N], int rc, const struct stat *st) {
|
|||
}
|
||||
|
||||
if (st->st_dev) {
|
||||
append(", .st_%s=%lu", "dev", st->st_dev);
|
||||
append(", .st_%s=%#lx", "dev", st->st_dev);
|
||||
}
|
||||
|
||||
if (st->st_ino) {
|
||||
append(", .st_%s=%lu", "ino", st->st_ino);
|
||||
append(", .st_%s=%#lx", "ino", st->st_ino);
|
||||
}
|
||||
|
||||
if (st->st_gen) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue