mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Make ZipOS and Qemu work better
This change improves the dirstream library in a lot of respects, especially for /zip/... files. Also turn off MAP_STACK on Aarch64 because Qemu seems to implement it differently than Linux and it's probably responsible for a lot of mysterious crashes.
This commit is contained in:
parent
4658ae539f
commit
110559ce6a
48 changed files with 748 additions and 500 deletions
|
@ -71,6 +71,15 @@ TEST(read_pipe, canBeInterruptedByAlarm) {
|
|||
close(fds[0]);
|
||||
}
|
||||
|
||||
TEST(read_directory, eisdir) {
|
||||
// TODO(jart): what
|
||||
if (IsWindows() || IsFreebsd()) return;
|
||||
ASSERT_SYS(0, 0, mkdir("boop", 0755));
|
||||
ASSERT_SYS(0, 3, open("boop", O_RDONLY | O_DIRECTORY));
|
||||
ASSERT_SYS(EISDIR, -1, read(3, 0, 0));
|
||||
ASSERT_SYS(0, 0, close(3));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
BENCH(read, bench) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue