mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 10:50:28 +00:00
zipos_to_fd: support FreeBSD, use mmap instead of read write loop, add tests
This commit is contained in:
parent
4fd1fae5ca
commit
df713afa90
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ TEST(fexecve, APE) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(fexecve, zipos) {
|
TEST(fexecve, zipos) {
|
||||||
if (!IsLinux()) return;
|
if (!IsLinux() && !IsFreebsd()) return;
|
||||||
int fd = open("/zip/life.elf", O_RDONLY);
|
int fd = open("/zip/life.elf", O_RDONLY);
|
||||||
SPAWN(vfork);
|
SPAWN(vfork);
|
||||||
if (fd == -1 && errno == ENOSYS) _Exit(42);
|
if (fd == -1 && errno == ENOSYS) _Exit(42);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue