mirror of
https://github.com/ziglang/zig.git
synced 2025-12-19 12:43:13 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
18 lines
393 B
C
Vendored
18 lines
393 B
C
Vendored
#include <sys/mount.h>
|
|
#include "syscall.h"
|
|
|
|
int mount(const char *special, const char *dir, const char *fstype, unsigned long flags, const void *data)
|
|
{
|
|
return syscall(SYS_mount, special, dir, fstype, flags, data);
|
|
}
|
|
|
|
int umount(const char *special)
|
|
{
|
|
return syscall(SYS_umount2, special, 0);
|
|
}
|
|
|
|
int umount2(const char *special, int flags)
|
|
{
|
|
return syscall(SYS_umount2, special, flags);
|
|
}
|