Closed kolyshkin closed 5 years ago
Remove sysx/xattr_darwin* as it's now available from x/sys/unix.
sysx/xattr_darwin*
x/sys/unix
Merge xattr_{freebsd,openbsd,solaris}.go into xattr_unsupported.go.
xattr_{freebsd,openbsd,solaris}.go
xattr_unsupported.go
Merge xattr_linux.go into xattr.go.
xattr_linux.go
xattr.go
Add proper build tags (linux and darwin are supported, others are not).
Remove some unused files.
Let's save some bytes, shall we?
sysx/asm.s | 10 ---------- sysx/sys.go | 37 ------------------------------------- sysx/xattr.go | 48 +++++++++++++++++++++++++++++++++++++++++++++--- sysx/xattr_darwin.go | 70 ---------------------------------------------------------------------- sysx/xattr_darwin_386.go | 111 --------------------------------------------------------------------------------------------------------------- sysx/xattr_darwin_amd64.go | 111 --------------------------------------------------------------------------------------------------------------- sysx/xattr_freebsd.go | 12 ------------ sysx/xattr_linux.go | 44 -------------------------------------------- sysx/xattr_openbsd.go | 7 ------- sysx/xattr_solaris.go | 12 ------------ sysx/xattr_unsupported.go | 9 ++++++++- 11 files changed, 53 insertions(+), 418 deletions(-)
Unfortunately I can't test in on darwin (other than by looking at it).
@dmcgowan @crosbymichael PTAL; despite the lengthy commits this stuff is trivial.
LGTM
Remove
sysx/xattr_darwin*
as it's now available fromx/sys/unix
.Merge
xattr_{freebsd,openbsd,solaris}.go
intoxattr_unsupported.go
.Merge
xattr_linux.go
intoxattr.go
.Add proper build tags (linux and darwin are supported, others are not).
Remove some unused files.
Let's save some bytes, shall we?