summaryrefslogtreecommitdiff
path: root/internal/syscallcompat/sys_common.go
diff options
context:
space:
mode:
authorSebastian Lackner2017-12-12 14:42:49 +0100
committerrfjakob2017-12-25 15:07:37 +0100
commita85dbcab38bcad0ef713187a637a7023d016829f (patch)
tree879fd621012544fba6319dabb9e051dde7cdda5e /internal/syscallcompat/sys_common.go
parenta24342f656f6acd544ec07dada576d57a716b34d (diff)
fusefrontend: Use Linkat syscall to implement Link
Diffstat (limited to 'internal/syscallcompat/sys_common.go')
-rw-r--r--internal/syscallcompat/sys_common.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/syscallcompat/sys_common.go b/internal/syscallcompat/sys_common.go
index 896aaf7..21823ef 100644
--- a/internal/syscallcompat/sys_common.go
+++ b/internal/syscallcompat/sys_common.go
@@ -38,3 +38,8 @@ func Faccessat(dirfd int, path string, mode uint32) error {
}
return unix.Faccessat(dirfd, path, mode, 0)
}
+
+// Linkat exists both in Linux and in MacOS 10.10+.
+func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
+ return unix.Linkat(olddirfd, oldpath, newdirfd, newpath, flags)
+}