diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-04-19 01:13:15 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-04-19 01:15:20 -0400 |
| commit | 37b9a2e6a4aa59494406d38495768778502fbcda (patch) | |
| tree | 677755d9a870b29311cc834dea7f09ad44c55549 /std/os/linux.zig | |
| parent | 237dfdbdc6f83071cff88489cc66cb83a2d65b00 (diff) | |
| download | zig-37b9a2e6a4aa59494406d38495768778502fbcda.tar.gz zig-37b9a2e6a4aa59494406d38495768778502fbcda.zip | |
convert compare-output tests to use zig build system
Diffstat (limited to 'std/os/linux.zig')
| -rw-r--r-- | std/os/linux.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/std/os/linux.zig b/std/os/linux.zig index d79b8f045e..7c841fafad 100644 --- a/std/os/linux.zig +++ b/std/os/linux.zig @@ -273,6 +273,10 @@ pub fn getcwd(buf: &u8, size: usize) -> usize { arch.syscall2(arch.SYS_getcwd, usize(buf), size) } +pub fn mkdir(path: &const u8, mode: usize) -> usize { + arch.syscall2(arch.SYS_mkdir, usize(path), mode) +} + pub fn mmap(address: ?&u8, length: usize, prot: usize, flags: usize, fd: i32, offset: usize) -> usize { |
