mirror of
https://github.com/restic/restic.git
synced 2025-12-08 06:09:56 +00:00
Update vendored library github.com/pkg/xattr
This commit is contained in:
parent
19035e977b
commit
75946e7c58
9 changed files with 48 additions and 11 deletions
1
vendor/github.com/pkg/xattr/syscall_darwin.go
generated
vendored
1
vendor/github.com/pkg/xattr/syscall_darwin.go
generated
vendored
|
|
@ -8,7 +8,6 @@ import (
|
|||
)
|
||||
|
||||
func getxattr(path string, name string, value *byte, size int, pos int, options int) (int, error) {
|
||||
|
||||
r0, _, e1 := syscall.Syscall6(syscall.SYS_GETXATTR, uintptr(unsafe.Pointer(syscall.StringBytePtr(path))), uintptr(unsafe.Pointer(syscall.StringBytePtr(name))), uintptr(unsafe.Pointer(value)), uintptr(size), uintptr(pos), uintptr(options))
|
||||
if e1 != syscall.Errno(0) {
|
||||
return int(r0), e1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue