mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
Add more missing libc functionality
This commit is contained in:
parent
cf93ecbbb2
commit
a8cf0f7e89
74 changed files with 6981 additions and 105 deletions
|
@ -97,6 +97,8 @@ int extract(const char *from, const char *to, int mode) {
|
|||
|
||||
TEST(unveil, api_differences) {
|
||||
SPAWN(fork);
|
||||
ASSERT_SYS(0, 0, mkdir("foo", 0755));
|
||||
ASSERT_SYS(0, 0, unveil("foo", "r"));
|
||||
if (IsOpenbsd()) {
|
||||
// openbsd imposes restrictions immediately
|
||||
ASSERT_SYS(ENOENT, -1, open("/", O_RDONLY | O_DIRECTORY));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue