-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix more of __map_file and add support for mkdirat. Corresponds to ll…
…vm-project-deluge/9e56fee21c8a
- Loading branch information
Filip Pizlo
committed
May 3, 2024
1 parent
95332e8
commit 3ac7d8e
Showing
3 changed files
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
#include <sys/stat.h> | ||
#include <fcntl.h> | ||
#include "syscall.h" | ||
#include <stdfil.h> | ||
|
||
int mkdir(const char *path, mode_t mode) | ||
{ | ||
#ifdef SYS_mkdir | ||
return syscall(SYS_mkdir, path, mode); | ||
#else | ||
return syscall(SYS_mkdirat, AT_FDCWD, path, mode); | ||
#endif | ||
return zsys_mkdirat(AT_FDCWD, path, mode); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters