summaryrefslogtreecommitdiff
path: root/internal/syscallcompat/sys_common.go
diff options
context:
space:
mode:
authorSebastian Lackner2019-01-14 02:51:50 +0100
committerrfjakob2019-01-14 21:27:28 +0100
commit7b0d56fe98a4ae449d26af0b83d00271a179db6e (patch)
tree64c4d65ac92ba86949ad3376e47a1292953044ae /internal/syscallcompat/sys_common.go
parent92110628ee5f48b0106b32090854fcc61d6bca20 (diff)
syscallcompat: Drop Symlinkat emulation on macOS.
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 9514830..21bac56 100644
--- a/internal/syscallcompat/sys_common.go
+++ b/internal/syscallcompat/sys_common.go
@@ -87,6 +87,11 @@ func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags in
return unix.Linkat(olddirfd, oldpath, newdirfd, newpath, flags)
}
+// Symlinkat syscall.
+func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
+ return unix.Symlinkat(oldpath, newdirfd, newpath)
+}
+
const XATTR_SIZE_MAX = 65536
// Make the buffer 1kB bigger so we can detect overflows