mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Add memfd fexecve zipos support (#752)
This commit is contained in:
parent
ba42248575
commit
669b4c5f19
5 changed files with 102 additions and 22 deletions
|
@ -128,3 +128,14 @@ TEST(fexecve, ziposAPE) {
|
|||
EXITS(42);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
TEST(fexecve, ziposAPEHasZipos) {
|
||||
if (!IsLinux() && !IsFreebsd()) return;
|
||||
int fd = open("/zip/zipread.com", O_RDONLY);
|
||||
SPAWN(fork);
|
||||
ASSERT_NE(-1, fd);
|
||||
if (fd == -1 && errno == ENOSYS) _Exit(42);
|
||||
fexecve(fd, (char *const[]){0}, (char *const[]){0});
|
||||
EXITS(42);
|
||||
close(fd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue