mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 00:08:30 +00:00
Introduce posix_spawn_file_actions_addchdir_np()
This commit is contained in:
parent
f92ad74e6b
commit
3a1f887928
25 changed files with 446 additions and 748 deletions
|
@ -127,6 +127,12 @@ void *Enclave(void *arg) {
|
|||
return 0; // exit
|
||||
}
|
||||
|
||||
TEST(pledge, tester) {
|
||||
SPAWN(fork);
|
||||
ASSERT_EQ(0, pledge("stdio rpath wpath cpath proc exec", NULL));
|
||||
EXITS(0);
|
||||
}
|
||||
|
||||
TEST(pledge, withThreadMemory) {
|
||||
if (IsOpenbsd()) return; // openbsd doesn't allow it, wisely
|
||||
pthread_t worker;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue