aboutsummaryrefslogtreecommitdiff
path: root/internal/syscallcompat/sys_linux.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-07-03 20:21:29 +0200
committerJakob Unterwurzacher2016-07-03 20:22:22 +0200
commit741bf0726e71c931af1dc1278571c280fc27970f (patch)
tree37b500e022c4f1ce90fa1fef486a3b8640d0c6b4 /internal/syscallcompat/sys_linux.go
parentd8524c73696392c7e895e6b3fe4c7e120d7296f7 (diff)
syscallcompat: OSX: add Mknodat wrapper
Protip: find naked *at syscalls using: git grep "syscall." | grep "at(" | grep -v syscallcompat
Diffstat (limited to 'internal/syscallcompat/sys_linux.go')
-rw-r--r--internal/syscallcompat/sys_linux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/syscallcompat/sys_linux.go b/internal/syscallcompat/sys_linux.go
index ded5d17..81cdb15 100644
--- a/internal/syscallcompat/sys_linux.go
+++ b/internal/syscallcompat/sys_linux.go
@@ -52,3 +52,7 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
func Unlinkat(dirfd int, path string) error {
return syscall.Unlinkat(dirfd, path)
}
+
+func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
+ return syscall.Mknodat(dirfd, path, mode, dev)
+}