Browse code

vendor tonistiigi/fsutil to dea3a0da73aee887fc02142d995be764106ac5e2

removes the stevvooe/continuity dependency, which has moved to
containerd/continuity.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2017/10/01 01:04:11
Showing 38 changed files
... ...
@@ -28,7 +28,7 @@ golang.org/x/sync de49d9dcd27d4f764488181bea099dfe6179bcf0
28 28
 
29 29
 github.com/containerd/continuity 22694c680ee48fb8f50015b44618517e2bde77e8
30 30
 github.com/moby/buildkit aaff9d591ef128560018433fe61beb802e149de8
31
-github.com/tonistiigi/fsutil 1dedf6e90084bd88c4c518a15e68a37ed1370203
31
+github.com/tonistiigi/fsutil dea3a0da73aee887fc02142d995be764106ac5e2
32 32
 
33 33
 #get libnetwork packages
34 34
 github.com/docker/libnetwork 0f08d31bf0e640e0cdc6d5161227f87602d605c5
... ...
@@ -107,7 +107,6 @@ google.golang.org/genproto d80a6e20e776b0b17a324d0ba1ab50a39c8e8944
107 107
 # containerd
108 108
 github.com/containerd/containerd 06b9cb35161009dcb7123345749fef02f7cea8e0
109 109
 github.com/tonistiigi/fifo 1405643975692217d6720f8b54aeee1bf2cd5cf4
110
-github.com/stevvooe/continuity cd7a8e21e2b6f84799f5dd4b65faf49c8d3ee02d
111 110
 
112 111
 # cluster
113 112
 github.com/docker/swarmkit 941a01844b89c56aa61086fecb167ab3af1de22b
114 113
deleted file mode 100644
... ...
@@ -1,202 +0,0 @@
1
-                                 Apache License
2
-                           Version 2.0, January 2004
3
-                        http://www.apache.org/licenses/
4
-
5
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
-   1. Definitions.
8
-
9
-      "License" shall mean the terms and conditions for use, reproduction,
10
-      and distribution as defined by Sections 1 through 9 of this document.
11
-
12
-      "Licensor" shall mean the copyright owner or entity authorized by
13
-      the copyright owner that is granting the License.
14
-
15
-      "Legal Entity" shall mean the union of the acting entity and all
16
-      other entities that control, are controlled by, or are under common
17
-      control with that entity. For the purposes of this definition,
18
-      "control" means (i) the power, direct or indirect, to cause the
19
-      direction or management of such entity, whether by contract or
20
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
-      outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
-      "You" (or "Your") shall mean an individual or Legal Entity
24
-      exercising permissions granted by this License.
25
-
26
-      "Source" form shall mean the preferred form for making modifications,
27
-      including but not limited to software source code, documentation
28
-      source, and configuration files.
29
-
30
-      "Object" form shall mean any form resulting from mechanical
31
-      transformation or translation of a Source form, including but
32
-      not limited to compiled object code, generated documentation,
33
-      and conversions to other media types.
34
-
35
-      "Work" shall mean the work of authorship, whether in Source or
36
-      Object form, made available under the License, as indicated by a
37
-      copyright notice that is included in or attached to the work
38
-      (an example is provided in the Appendix below).
39
-
40
-      "Derivative Works" shall mean any work, whether in Source or Object
41
-      form, that is based on (or derived from) the Work and for which the
42
-      editorial revisions, annotations, elaborations, or other modifications
43
-      represent, as a whole, an original work of authorship. For the purposes
44
-      of this License, Derivative Works shall not include works that remain
45
-      separable from, or merely link (or bind by name) to the interfaces of,
46
-      the Work and Derivative Works thereof.
47
-
48
-      "Contribution" shall mean any work of authorship, including
49
-      the original version of the Work and any modifications or additions
50
-      to that Work or Derivative Works thereof, that is intentionally
51
-      submitted to Licensor for inclusion in the Work by the copyright owner
52
-      or by an individual or Legal Entity authorized to submit on behalf of
53
-      the copyright owner. For the purposes of this definition, "submitted"
54
-      means any form of electronic, verbal, or written communication sent
55
-      to the Licensor or its representatives, including but not limited to
56
-      communication on electronic mailing lists, source code control systems,
57
-      and issue tracking systems that are managed by, or on behalf of, the
58
-      Licensor for the purpose of discussing and improving the Work, but
59
-      excluding communication that is conspicuously marked or otherwise
60
-      designated in writing by the copyright owner as "Not a Contribution."
61
-
62
-      "Contributor" shall mean Licensor and any individual or Legal Entity
63
-      on behalf of whom a Contribution has been received by Licensor and
64
-      subsequently incorporated within the Work.
65
-
66
-   2. Grant of Copyright License. Subject to the terms and conditions of
67
-      this License, each Contributor hereby grants to You a perpetual,
68
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
-      copyright license to reproduce, prepare Derivative Works of,
70
-      publicly display, publicly perform, sublicense, and distribute the
71
-      Work and such Derivative Works in Source or Object form.
72
-
73
-   3. Grant of Patent License. Subject to the terms and conditions of
74
-      this License, each Contributor hereby grants to You a perpetual,
75
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
-      (except as stated in this section) patent license to make, have made,
77
-      use, offer to sell, sell, import, and otherwise transfer the Work,
78
-      where such license applies only to those patent claims licensable
79
-      by such Contributor that are necessarily infringed by their
80
-      Contribution(s) alone or by combination of their Contribution(s)
81
-      with the Work to which such Contribution(s) was submitted. If You
82
-      institute patent litigation against any entity (including a
83
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
84
-      or a Contribution incorporated within the Work constitutes direct
85
-      or contributory patent infringement, then any patent licenses
86
-      granted to You under this License for that Work shall terminate
87
-      as of the date such litigation is filed.
88
-
89
-   4. Redistribution. You may reproduce and distribute copies of the
90
-      Work or Derivative Works thereof in any medium, with or without
91
-      modifications, and in Source or Object form, provided that You
92
-      meet the following conditions:
93
-
94
-      (a) You must give any other recipients of the Work or
95
-          Derivative Works a copy of this License; and
96
-
97
-      (b) You must cause any modified files to carry prominent notices
98
-          stating that You changed the files; and
99
-
100
-      (c) You must retain, in the Source form of any Derivative Works
101
-          that You distribute, all copyright, patent, trademark, and
102
-          attribution notices from the Source form of the Work,
103
-          excluding those notices that do not pertain to any part of
104
-          the Derivative Works; and
105
-
106
-      (d) If the Work includes a "NOTICE" text file as part of its
107
-          distribution, then any Derivative Works that You distribute must
108
-          include a readable copy of the attribution notices contained
109
-          within such NOTICE file, excluding those notices that do not
110
-          pertain to any part of the Derivative Works, in at least one
111
-          of the following places: within a NOTICE text file distributed
112
-          as part of the Derivative Works; within the Source form or
113
-          documentation, if provided along with the Derivative Works; or,
114
-          within a display generated by the Derivative Works, if and
115
-          wherever such third-party notices normally appear. The contents
116
-          of the NOTICE file are for informational purposes only and
117
-          do not modify the License. You may add Your own attribution
118
-          notices within Derivative Works that You distribute, alongside
119
-          or as an addendum to the NOTICE text from the Work, provided
120
-          that such additional attribution notices cannot be construed
121
-          as modifying the License.
122
-
123
-      You may add Your own copyright statement to Your modifications and
124
-      may provide additional or different license terms and conditions
125
-      for use, reproduction, or distribution of Your modifications, or
126
-      for any such Derivative Works as a whole, provided Your use,
127
-      reproduction, and distribution of the Work otherwise complies with
128
-      the conditions stated in this License.
129
-
130
-   5. Submission of Contributions. Unless You explicitly state otherwise,
131
-      any Contribution intentionally submitted for inclusion in the Work
132
-      by You to the Licensor shall be under the terms and conditions of
133
-      this License, without any additional terms or conditions.
134
-      Notwithstanding the above, nothing herein shall supersede or modify
135
-      the terms of any separate license agreement you may have executed
136
-      with Licensor regarding such Contributions.
137
-
138
-   6. Trademarks. This License does not grant permission to use the trade
139
-      names, trademarks, service marks, or product names of the Licensor,
140
-      except as required for reasonable and customary use in describing the
141
-      origin of the Work and reproducing the content of the NOTICE file.
142
-
143
-   7. Disclaimer of Warranty. Unless required by applicable law or
144
-      agreed to in writing, Licensor provides the Work (and each
145
-      Contributor provides its Contributions) on an "AS IS" BASIS,
146
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
-      implied, including, without limitation, any warranties or conditions
148
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
-      PARTICULAR PURPOSE. You are solely responsible for determining the
150
-      appropriateness of using or redistributing the Work and assume any
151
-      risks associated with Your exercise of permissions under this License.
152
-
153
-   8. Limitation of Liability. In no event and under no legal theory,
154
-      whether in tort (including negligence), contract, or otherwise,
155
-      unless required by applicable law (such as deliberate and grossly
156
-      negligent acts) or agreed to in writing, shall any Contributor be
157
-      liable to You for damages, including any direct, indirect, special,
158
-      incidental, or consequential damages of any character arising as a
159
-      result of this License or out of the use or inability to use the
160
-      Work (including but not limited to damages for loss of goodwill,
161
-      work stoppage, computer failure or malfunction, or any and all
162
-      other commercial damages or losses), even if such Contributor
163
-      has been advised of the possibility of such damages.
164
-
165
-   9. Accepting Warranty or Additional Liability. While redistributing
166
-      the Work or Derivative Works thereof, You may choose to offer,
167
-      and charge a fee for, acceptance of support, warranty, indemnity,
168
-      or other liability obligations and/or rights consistent with this
169
-      License. However, in accepting such obligations, You may act only
170
-      on Your own behalf and on Your sole responsibility, not on behalf
171
-      of any other Contributor, and only if You agree to indemnify,
172
-      defend, and hold each Contributor harmless for any liability
173
-      incurred by, or claims asserted against, such Contributor by reason
174
-      of your accepting any such warranty or additional liability.
175
-
176
-   END OF TERMS AND CONDITIONS
177
-
178
-   APPENDIX: How to apply the Apache License to your work.
179
-
180
-      To apply the Apache License to your work, attach the following
181
-      boilerplate notice, with the fields enclosed by brackets "{}"
182
-      replaced with your own identifying information. (Don't include
183
-      the brackets!)  The text should be enclosed in the appropriate
184
-      comment syntax for the file format. We also recommend that a
185
-      file or class name and description of purpose be included on the
186
-      same "printed page" as the copyright notice for easier
187
-      identification within third-party archives.
188
-
189
-   Copyright {yyyy} {name of copyright owner}
190
-
191
-   Licensed under the Apache License, Version 2.0 (the "License");
192
-   you may not use this file except in compliance with the License.
193
-   You may obtain a copy of the License at
194
-
195
-       http://www.apache.org/licenses/LICENSE-2.0
196
-
197
-   Unless required by applicable law or agreed to in writing, software
198
-   distributed under the License is distributed on an "AS IS" BASIS,
199
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
-   See the License for the specific language governing permissions and
201
-   limitations under the License.
202
-
203 1
deleted file mode 100644
... ...
@@ -1,19 +0,0 @@
1
-# continuity
2
-
3
-[![GoDoc](https://godoc.org/github.com/containerd/continuity?status.svg)](https://godoc.org/github.com/containerd/continuity)
4
-[![Build Status](https://travis-ci.org/containerd/continuity.svg?branch=master)](https://travis-ci.org/containerd/continuity)
5
-
6
-A transport-agnostic, filesystem metadata manifest system
7
-
8
-This project is a staging area for experiments in providing transport agnostic
9
-metadata storage.
10
-
11
-Please see https://github.com/opencontainers/specs/issues/11 for more details.
12
-
13
-## Building Proto Package
14
-
15
-If you change the proto file you will need to rebuild the generated Go with `go generate`.
16
-
17
-```
18
-go generate ./proto
19
-```
20 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-// Copyright 2014 The Go Authors.  All rights reserved.
2
-// Use of this source code is governed by a BSD-style
3
-// license that can be found in the LICENSE file.
4
-
5
-// +build !gccgo
6
-
7
-#include "textflag.h"
8
-
9
-TEXT ·use(SB),NOSPLIT,$0
10
-	RET
11 1
deleted file mode 100644
... ...
@@ -1,18 +0,0 @@
1
-package sysx
2
-
3
-const (
4
-	// AtSymlinkNoFollow defined from AT_SYMLINK_NOFOLLOW in <sys/fcntl.h>
5
-	AtSymlinkNofollow = 0x20
6
-)
7
-
8
-const (
9
-
10
-	// SYS_FCHMODAT defined from golang.org/sys/unix
11
-	SYS_FCHMODAT = 467
12
-)
13
-
14
-// These functions will be generated by generate.sh
15
-//    $ GOOS=darwin GOARCH=386 ./generate.sh chmod
16
-//    $ GOOS=darwin GOARCH=amd64 ./generate.sh chmod
17
-
18
-//sys  Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
19 1
deleted file mode 100644
... ...
@@ -1,25 +0,0 @@
1
-// mksyscall.pl -l32 chmod_darwin.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	_, _, e1 := syscall.Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
20
-	use(unsafe.Pointer(_p0))
21
-	if e1 != 0 {
22
-		err = errnoErr(e1)
23
-	}
24
-	return
25
-}
26 1
deleted file mode 100644
... ...
@@ -1,25 +0,0 @@
1
-// mksyscall.pl chmod_darwin.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	_, _, e1 := syscall.Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
20
-	use(unsafe.Pointer(_p0))
21
-	if e1 != 0 {
22
-		err = errnoErr(e1)
23
-	}
24
-	return
25
-}
26 1
deleted file mode 100644
... ...
@@ -1,17 +0,0 @@
1
-package sysx
2
-
3
-const (
4
-	// AtSymlinkNoFollow defined from AT_SYMLINK_NOFOLLOW in <sys/fcntl.h>
5
-	AtSymlinkNofollow = 0x200
6
-)
7
-
8
-const (
9
-
10
-	// SYS_FCHMODAT defined from golang.org/sys/unix
11
-	SYS_FCHMODAT = 490
12
-)
13
-
14
-// These functions will be generated by generate.sh
15
-//    $ GOOS=freebsd GOARCH=amd64 ./generate.sh chmod
16
-
17
-//sys  Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
18 1
deleted file mode 100644
... ...
@@ -1,25 +0,0 @@
1
-// mksyscall.pl chmod_freebsd.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	_, _, e1 := syscall.Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
20
-	use(unsafe.Pointer(_p0))
21
-	if e1 != 0 {
22
-		err = errnoErr(e1)
23
-	}
24
-	return
25
-}
26 1
deleted file mode 100644
... ...
@@ -1,12 +0,0 @@
1
-package sysx
2
-
3
-import "syscall"
4
-
5
-const (
6
-	// AtSymlinkNoFollow defined from AT_SYMLINK_NOFOLLOW in /usr/include/linux/fcntl.h
7
-	AtSymlinkNofollow = 0x100
8
-)
9
-
10
-func Fchmodat(dirfd int, path string, mode uint32, flags int) error {
11
-	return syscall.Fchmodat(dirfd, path, mode, flags)
12
-}
13 1
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-package sysx
2
-
3
-// These functions will be generated by generate.sh
4
-//    $ GOOS=linux GOARCH=386 ./generate.sh copy
5
-//    $ GOOS=linux GOARCH=amd64 ./generate.sh copy
6
-//    $ GOOS=linux GOARCH=arm ./generate.sh copy
7
-//    $ GOOS=linux GOARCH=arm64 ./generate.sh copy
8
-
9
-//sys CopyFileRange(fdin uintptr, offin *int64, fdout uintptr, offout *int64, len int, flags int) (n int, err error)
10 1
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-// mksyscall.pl -l32 copy_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func CopyFileRange(fdin uintptr, offin *int64, fdout uintptr, offout *int64, len int, flags int) (n int, err error) {
14
-	r0, _, e1 := syscall.Syscall6(SYS_COPY_FILE_RANGE, uintptr(fdin), uintptr(unsafe.Pointer(offin)), uintptr(fdout), uintptr(unsafe.Pointer(offout)), uintptr(len), uintptr(flags))
15
-	n = int(r0)
16
-	if e1 != 0 {
17
-		err = errnoErr(e1)
18
-	}
19
-	return
20
-}
21 1
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-// mksyscall.pl copy_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func CopyFileRange(fdin uintptr, offin *int64, fdout uintptr, offout *int64, len int, flags int) (n int, err error) {
14
-	r0, _, e1 := syscall.Syscall6(SYS_COPY_FILE_RANGE, uintptr(fdin), uintptr(unsafe.Pointer(offin)), uintptr(fdout), uintptr(unsafe.Pointer(offout)), uintptr(len), uintptr(flags))
15
-	n = int(r0)
16
-	if e1 != 0 {
17
-		err = errnoErr(e1)
18
-	}
19
-	return
20
-}
21 1
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-// mksyscall.pl -l32 copy_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func CopyFileRange(fdin uintptr, offin *int64, fdout uintptr, offout *int64, len int, flags int) (n int, err error) {
14
-	r0, _, e1 := syscall.Syscall6(SYS_COPY_FILE_RANGE, uintptr(fdin), uintptr(unsafe.Pointer(offin)), uintptr(fdout), uintptr(unsafe.Pointer(offout)), uintptr(len), uintptr(flags))
15
-	n = int(r0)
16
-	if e1 != 0 {
17
-		err = errnoErr(e1)
18
-	}
19
-	return
20
-}
21 1
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-// mksyscall.pl copy_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func CopyFileRange(fdin uintptr, offin *int64, fdout uintptr, offout *int64, len int, flags int) (n int, err error) {
14
-	r0, _, e1 := syscall.Syscall6(SYS_COPY_FILE_RANGE, uintptr(fdin), uintptr(unsafe.Pointer(offin)), uintptr(fdout), uintptr(unsafe.Pointer(offout)), uintptr(len), uintptr(flags))
15
-	n = int(r0)
16
-	if e1 != 0 {
17
-		err = errnoErr(e1)
18
-	}
19
-	return
20
-}
21 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-package sysx
2
-
3
-import (
4
-	"syscall"
5
-)
6
-
7
-const ENODATA = syscall.ENODATA
8 1
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-// +build darwin freebsd
2
-
3
-package sysx
4
-
5
-import (
6
-	"syscall"
7
-)
8
-
9
-const ENODATA = syscall.ENOATTR
10 1
deleted file mode 100644
... ...
@@ -1,37 +0,0 @@
1
-package sysx
2
-
3
-import (
4
-	"syscall"
5
-	"unsafe"
6
-)
7
-
8
-var _zero uintptr
9
-
10
-// use is a no-op, but the compiler cannot see that it is.
11
-// Calling use(p) ensures that p is kept live until that point.
12
-//go:noescape
13
-func use(p unsafe.Pointer)
14
-
15
-// Do the interface allocations only once for common
16
-// Errno values.
17
-var (
18
-	errEAGAIN error = syscall.EAGAIN
19
-	errEINVAL error = syscall.EINVAL
20
-	errENOENT error = syscall.ENOENT
21
-)
22
-
23
-// errnoErr returns common boxed Errno values, to prevent
24
-// allocations at runtime.
25
-func errnoErr(e syscall.Errno) error {
26
-	switch e {
27
-	case 0:
28
-		return nil
29
-	case syscall.EAGAIN:
30
-		return errEAGAIN
31
-	case syscall.EINVAL:
32
-		return errEINVAL
33
-	case syscall.ENOENT:
34
-		return errENOENT
35
-	}
36
-	return e
37
-}
38 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-package sysx
2
-
3
-const (
4
-	// SYS_COPYFILERANGE defined in Kernel 4.5+
5
-	// Number defined in /usr/include/asm/unistd_32.h
6
-	SYS_COPY_FILE_RANGE = 377
7
-)
8 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-package sysx
2
-
3
-const (
4
-	// SYS_COPYFILERANGE defined in Kernel 4.5+
5
-	// Number defined in /usr/include/asm/unistd_64.h
6
-	SYS_COPY_FILE_RANGE = 326
7
-)
8 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-package sysx
2
-
3
-const (
4
-	// SYS_COPY_FILE_RANGE defined in Kernel 4.5+
5
-	// Number defined in /usr/include/arm-linux-gnueabihf/asm/unistd.h
6
-	SYS_COPY_FILE_RANGE = 391
7
-)
8 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-package sysx
2
-
3
-const (
4
-	// SYS_COPY_FILE_RANGE defined in Kernel 4.5+
5
-	// Number defined in /usr/include/asm-generic/unistd.h
6
-	SYS_COPY_FILE_RANGE = 285
7
-)
8 1
deleted file mode 100644
... ...
@@ -1,67 +0,0 @@
1
-package sysx
2
-
3
-import (
4
-	"bytes"
5
-	"fmt"
6
-	"syscall"
7
-)
8
-
9
-const defaultXattrBufferSize = 5
10
-
11
-var ErrNotSupported = fmt.Errorf("not supported")
12
-
13
-type listxattrFunc func(path string, dest []byte) (int, error)
14
-
15
-func listxattrAll(path string, listFunc listxattrFunc) ([]string, error) {
16
-	var p []byte // nil on first execution
17
-
18
-	for {
19
-		n, err := listFunc(path, p) // first call gets buffer size.
20
-		if err != nil {
21
-			return nil, err
22
-		}
23
-
24
-		if n > len(p) {
25
-			p = make([]byte, n)
26
-			continue
27
-		}
28
-
29
-		p = p[:n]
30
-
31
-		ps := bytes.Split(bytes.TrimSuffix(p, []byte{0}), []byte{0})
32
-		var entries []string
33
-		for _, p := range ps {
34
-			s := string(p)
35
-			if s != "" {
36
-				entries = append(entries, s)
37
-			}
38
-		}
39
-
40
-		return entries, nil
41
-	}
42
-}
43
-
44
-type getxattrFunc func(string, string, []byte) (int, error)
45
-
46
-func getxattrAll(path, attr string, getFunc getxattrFunc) ([]byte, error) {
47
-	p := make([]byte, defaultXattrBufferSize)
48
-	for {
49
-		n, err := getFunc(path, attr, p)
50
-		if err != nil {
51
-			if errno, ok := err.(syscall.Errno); ok && errno == syscall.ERANGE {
52
-				p = make([]byte, len(p)*2) // this can't be ideal.
53
-				continue                   // try again!
54
-			}
55
-
56
-			return nil, err
57
-		}
58
-
59
-		// realloc to correct size and repeat
60
-		if n > len(p) {
61
-			p = make([]byte, n)
62
-			continue
63
-		}
64
-
65
-		return p[:n], nil
66
-	}
67
-}
68 1
deleted file mode 100644
... ...
@@ -1,71 +0,0 @@
1
-package sysx
2
-
3
-// These functions will be generated by generate.sh
4
-//    $ GOOS=darwin GOARCH=386 ./generate.sh xattr
5
-//    $ GOOS=darwin GOARCH=amd64 ./generate.sh xattr
6
-
7
-//sys  getxattr(path string, attr string, dest []byte, pos int, options int) (sz int, err error)
8
-//sys  setxattr(path string, attr string, data []byte, flags int) (err error)
9
-//sys  removexattr(path string, attr string, options int) (err error)
10
-//sys  listxattr(path string, dest []byte, options int) (sz int, err error)
11
-//sys  Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
12
-
13
-const (
14
-	xattrNoFollow = 0x01
15
-)
16
-
17
-func listxattrFollow(path string, dest []byte) (sz int, err error) {
18
-	return listxattr(path, dest, 0)
19
-}
20
-
21
-// Listxattr calls syscall getxattr
22
-func Listxattr(path string) ([]string, error) {
23
-	return listxattrAll(path, listxattrFollow)
24
-}
25
-
26
-// Removexattr calls syscall getxattr
27
-func Removexattr(path string, attr string) (err error) {
28
-	return removexattr(path, attr, 0)
29
-}
30
-
31
-// Setxattr calls syscall setxattr
32
-func Setxattr(path string, attr string, data []byte, flags int) (err error) {
33
-	return setxattr(path, attr, data, flags)
34
-}
35
-
36
-func getxattrFollow(path, attr string, dest []byte) (sz int, err error) {
37
-	return getxattr(path, attr, dest, 0, 0)
38
-}
39
-
40
-// Getxattr calls syscall getxattr
41
-func Getxattr(path, attr string) ([]byte, error) {
42
-	return getxattrAll(path, attr, getxattrFollow)
43
-}
44
-
45
-func listxattrNoFollow(path string, dest []byte) (sz int, err error) {
46
-	return listxattr(path, dest, xattrNoFollow)
47
-}
48
-
49
-// LListxattr calls syscall listxattr with XATTR_NOFOLLOW
50
-func LListxattr(path string) ([]string, error) {
51
-	return listxattrAll(path, listxattrNoFollow)
52
-}
53
-
54
-// LRemovexattr calls syscall removexattr with XATTR_NOFOLLOW
55
-func LRemovexattr(path string, attr string) (err error) {
56
-	return removexattr(path, attr, xattrNoFollow)
57
-}
58
-
59
-// Setxattr calls syscall setxattr with XATTR_NOFOLLOW
60
-func LSetxattr(path string, attr string, data []byte, flags int) (err error) {
61
-	return setxattr(path, attr, data, flags|xattrNoFollow)
62
-}
63
-
64
-func getxattrNoFollow(path, attr string, dest []byte) (sz int, err error) {
65
-	return getxattr(path, attr, dest, 0, xattrNoFollow)
66
-}
67
-
68
-// LGetxattr calls syscall getxattr with XATTR_NOFOLLOW
69
-func LGetxattr(path, attr string) ([]byte, error) {
70
-	return getxattrAll(path, attr, getxattrNoFollow)
71
-}
72 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl -l32 xattr_darwin.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func getxattr(path string, attr string, dest []byte, pos int, options int) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 *byte
20
-	_p1, err = syscall.BytePtrFromString(attr)
21
-	if err != nil {
22
-		return
23
-	}
24
-	var _p2 unsafe.Pointer
25
-	if len(dest) > 0 {
26
-		_p2 = unsafe.Pointer(&dest[0])
27
-	} else {
28
-		_p2 = unsafe.Pointer(&_zero)
29
-	}
30
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), uintptr(pos), uintptr(options))
31
-	use(unsafe.Pointer(_p0))
32
-	use(unsafe.Pointer(_p1))
33
-	sz = int(r0)
34
-	if e1 != 0 {
35
-		err = errnoErr(e1)
36
-	}
37
-	return
38
-}
39
-
40
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
41
-
42
-func setxattr(path string, attr string, data []byte, flags int) (err error) {
43
-	var _p0 *byte
44
-	_p0, err = syscall.BytePtrFromString(path)
45
-	if err != nil {
46
-		return
47
-	}
48
-	var _p1 *byte
49
-	_p1, err = syscall.BytePtrFromString(attr)
50
-	if err != nil {
51
-		return
52
-	}
53
-	var _p2 unsafe.Pointer
54
-	if len(data) > 0 {
55
-		_p2 = unsafe.Pointer(&data[0])
56
-	} else {
57
-		_p2 = unsafe.Pointer(&_zero)
58
-	}
59
-	_, _, e1 := syscall.Syscall6(syscall.SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
60
-	use(unsafe.Pointer(_p0))
61
-	use(unsafe.Pointer(_p1))
62
-	if e1 != 0 {
63
-		err = errnoErr(e1)
64
-	}
65
-	return
66
-}
67
-
68
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
-
70
-func removexattr(path string, attr string, options int) (err error) {
71
-	var _p0 *byte
72
-	_p0, err = syscall.BytePtrFromString(path)
73
-	if err != nil {
74
-		return
75
-	}
76
-	var _p1 *byte
77
-	_p1, err = syscall.BytePtrFromString(attr)
78
-	if err != nil {
79
-		return
80
-	}
81
-	_, _, e1 := syscall.Syscall(syscall.SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
82
-	use(unsafe.Pointer(_p0))
83
-	use(unsafe.Pointer(_p1))
84
-	if e1 != 0 {
85
-		err = errnoErr(e1)
86
-	}
87
-	return
88
-}
89
-
90
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
91
-
92
-func listxattr(path string, dest []byte, options int) (sz int, err error) {
93
-	var _p0 *byte
94
-	_p0, err = syscall.BytePtrFromString(path)
95
-	if err != nil {
96
-		return
97
-	}
98
-	var _p1 unsafe.Pointer
99
-	if len(dest) > 0 {
100
-		_p1 = unsafe.Pointer(&dest[0])
101
-	} else {
102
-		_p1 = unsafe.Pointer(&_zero)
103
-	}
104
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(options), 0, 0)
105
-	use(unsafe.Pointer(_p0))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
112 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl xattr_darwin.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func getxattr(path string, attr string, dest []byte, pos int, options int) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 *byte
20
-	_p1, err = syscall.BytePtrFromString(attr)
21
-	if err != nil {
22
-		return
23
-	}
24
-	var _p2 unsafe.Pointer
25
-	if len(dest) > 0 {
26
-		_p2 = unsafe.Pointer(&dest[0])
27
-	} else {
28
-		_p2 = unsafe.Pointer(&_zero)
29
-	}
30
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), uintptr(pos), uintptr(options))
31
-	use(unsafe.Pointer(_p0))
32
-	use(unsafe.Pointer(_p1))
33
-	sz = int(r0)
34
-	if e1 != 0 {
35
-		err = errnoErr(e1)
36
-	}
37
-	return
38
-}
39
-
40
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
41
-
42
-func setxattr(path string, attr string, data []byte, flags int) (err error) {
43
-	var _p0 *byte
44
-	_p0, err = syscall.BytePtrFromString(path)
45
-	if err != nil {
46
-		return
47
-	}
48
-	var _p1 *byte
49
-	_p1, err = syscall.BytePtrFromString(attr)
50
-	if err != nil {
51
-		return
52
-	}
53
-	var _p2 unsafe.Pointer
54
-	if len(data) > 0 {
55
-		_p2 = unsafe.Pointer(&data[0])
56
-	} else {
57
-		_p2 = unsafe.Pointer(&_zero)
58
-	}
59
-	_, _, e1 := syscall.Syscall6(syscall.SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
60
-	use(unsafe.Pointer(_p0))
61
-	use(unsafe.Pointer(_p1))
62
-	if e1 != 0 {
63
-		err = errnoErr(e1)
64
-	}
65
-	return
66
-}
67
-
68
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
-
70
-func removexattr(path string, attr string, options int) (err error) {
71
-	var _p0 *byte
72
-	_p0, err = syscall.BytePtrFromString(path)
73
-	if err != nil {
74
-		return
75
-	}
76
-	var _p1 *byte
77
-	_p1, err = syscall.BytePtrFromString(attr)
78
-	if err != nil {
79
-		return
80
-	}
81
-	_, _, e1 := syscall.Syscall(syscall.SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
82
-	use(unsafe.Pointer(_p0))
83
-	use(unsafe.Pointer(_p1))
84
-	if e1 != 0 {
85
-		err = errnoErr(e1)
86
-	}
87
-	return
88
-}
89
-
90
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
91
-
92
-func listxattr(path string, dest []byte, options int) (sz int, err error) {
93
-	var _p0 *byte
94
-	_p0, err = syscall.BytePtrFromString(path)
95
-	if err != nil {
96
-		return
97
-	}
98
-	var _p1 unsafe.Pointer
99
-	if len(dest) > 0 {
100
-		_p1 = unsafe.Pointer(&dest[0])
101
-	} else {
102
-		_p1 = unsafe.Pointer(&_zero)
103
-	}
104
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(options), 0, 0)
105
-	use(unsafe.Pointer(_p0))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
112 1
deleted file mode 100644
... ...
@@ -1,53 +0,0 @@
1
-package sysx
2
-
3
-import (
4
-	"errors"
5
-)
6
-
7
-// Initial stub version for FreeBSD. FreeBSD has a different
8
-// syscall API from Darwin and Linux for extended attributes;
9
-// it is also not widely used. It is not exposed at all by the
10
-// Go syscall package, so we need to implement directly eventually.
11
-
12
-var unsupported error = errors.New("extended attributes unsupported on FreeBSD")
13
-
14
-// Listxattr calls syscall listxattr and reads all content
15
-// and returns a string array
16
-func Listxattr(path string) ([]string, error) {
17
-	return []string{}, nil
18
-}
19
-
20
-// Removexattr calls syscall removexattr
21
-func Removexattr(path string, attr string) (err error) {
22
-	return unsupported
23
-}
24
-
25
-// Setxattr calls syscall setxattr
26
-func Setxattr(path string, attr string, data []byte, flags int) (err error) {
27
-	return unsupported
28
-}
29
-
30
-// Getxattr calls syscall getxattr
31
-func Getxattr(path, attr string) ([]byte, error) {
32
-	return []byte{}, nil
33
-}
34
-
35
-// LListxattr lists xattrs, not following symlinks
36
-func LListxattr(path string) ([]string, error) {
37
-	return []string{}, nil
38
-}
39
-
40
-// LRemovexattr removes an xattr, not following symlinks
41
-func LRemovexattr(path string, attr string) (err error) {
42
-	return unsupported
43
-}
44
-
45
-// LSetxattr sets an xattr, not following symlinks
46
-func LSetxattr(path string, attr string, data []byte, flags int) (err error) {
47
-	return unsupported
48
-}
49
-
50
-// LGetxattr gets an xattr, not following symlinks
51
-func LGetxattr(path, attr string) ([]byte, error) {
52
-	return []byte{}, nil
53
-}
54 1
deleted file mode 100644
... ...
@@ -1,61 +0,0 @@
1
-package sysx
2
-
3
-import "syscall"
4
-
5
-// These functions will be generated by generate.sh
6
-//    $ GOOS=linux GOARCH=386 ./generate.sh xattr
7
-//    $ GOOS=linux GOARCH=amd64 ./generate.sh xattr
8
-//    $ GOOS=linux GOARCH=arm ./generate.sh xattr
9
-//    $ GOOS=linux GOARCH=arm64 ./generate.sh xattr
10
-//    $ GOOS=linux GOARCH=ppc64 ./generate.sh xattr
11
-//    $ GOOS=linux GOARCH=ppc64le ./generate.sh xattr
12
-//    $ GOOS=linux GOARCH=s390x ./generate.sh xattr
13
-
14
-// Listxattr calls syscall listxattr and reads all content
15
-// and returns a string array
16
-func Listxattr(path string) ([]string, error) {
17
-	return listxattrAll(path, syscall.Listxattr)
18
-}
19
-
20
-// Removexattr calls syscall removexattr
21
-func Removexattr(path string, attr string) (err error) {
22
-	return syscall.Removexattr(path, attr)
23
-}
24
-
25
-// Setxattr calls syscall setxattr
26
-func Setxattr(path string, attr string, data []byte, flags int) (err error) {
27
-	return syscall.Setxattr(path, attr, data, flags)
28
-}
29
-
30
-// Getxattr calls syscall getxattr
31
-func Getxattr(path, attr string) ([]byte, error) {
32
-	return getxattrAll(path, attr, syscall.Getxattr)
33
-}
34
-
35
-//sys llistxattr(path string, dest []byte) (sz int, err error)
36
-
37
-// LListxattr lists xattrs, not following symlinks
38
-func LListxattr(path string) ([]string, error) {
39
-	return listxattrAll(path, llistxattr)
40
-}
41
-
42
-//sys lremovexattr(path string, attr string) (err error)
43
-
44
-// LRemovexattr removes an xattr, not following symlinks
45
-func LRemovexattr(path string, attr string) (err error) {
46
-	return lremovexattr(path, attr)
47
-}
48
-
49
-//sys lsetxattr(path string, attr string, data []byte, flags int) (err error)
50
-
51
-// LSetxattr sets an xattr, not following symlinks
52
-func LSetxattr(path string, attr string, data []byte, flags int) (err error) {
53
-	return lsetxattr(path, attr, data, flags)
54
-}
55
-
56
-//sys lgetxattr(path string, attr string, dest []byte) (sz int, err error)
57
-
58
-// LGetxattr gets an xattr, not following symlinks
59
-func LGetxattr(path, attr string) ([]byte, error) {
60
-	return getxattrAll(path, attr, lgetxattr)
61
-}
62 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl -l32 xattr_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func llistxattr(path string, dest []byte) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 unsafe.Pointer
20
-	if len(dest) > 0 {
21
-		_p1 = unsafe.Pointer(&dest[0])
22
-	} else {
23
-		_p1 = unsafe.Pointer(&_zero)
24
-	}
25
-	r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
26
-	use(unsafe.Pointer(_p0))
27
-	sz = int(r0)
28
-	if e1 != 0 {
29
-		err = errnoErr(e1)
30
-	}
31
-	return
32
-}
33
-
34
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
35
-
36
-func lremovexattr(path string, attr string) (err error) {
37
-	var _p0 *byte
38
-	_p0, err = syscall.BytePtrFromString(path)
39
-	if err != nil {
40
-		return
41
-	}
42
-	var _p1 *byte
43
-	_p1, err = syscall.BytePtrFromString(attr)
44
-	if err != nil {
45
-		return
46
-	}
47
-	_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
48
-	use(unsafe.Pointer(_p0))
49
-	use(unsafe.Pointer(_p1))
50
-	if e1 != 0 {
51
-		err = errnoErr(e1)
52
-	}
53
-	return
54
-}
55
-
56
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
57
-
58
-func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
59
-	var _p0 *byte
60
-	_p0, err = syscall.BytePtrFromString(path)
61
-	if err != nil {
62
-		return
63
-	}
64
-	var _p1 *byte
65
-	_p1, err = syscall.BytePtrFromString(attr)
66
-	if err != nil {
67
-		return
68
-	}
69
-	var _p2 unsafe.Pointer
70
-	if len(data) > 0 {
71
-		_p2 = unsafe.Pointer(&data[0])
72
-	} else {
73
-		_p2 = unsafe.Pointer(&_zero)
74
-	}
75
-	_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
76
-	use(unsafe.Pointer(_p0))
77
-	use(unsafe.Pointer(_p1))
78
-	if e1 != 0 {
79
-		err = errnoErr(e1)
80
-	}
81
-	return
82
-}
83
-
84
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
85
-
86
-func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
87
-	var _p0 *byte
88
-	_p0, err = syscall.BytePtrFromString(path)
89
-	if err != nil {
90
-		return
91
-	}
92
-	var _p1 *byte
93
-	_p1, err = syscall.BytePtrFromString(attr)
94
-	if err != nil {
95
-		return
96
-	}
97
-	var _p2 unsafe.Pointer
98
-	if len(dest) > 0 {
99
-		_p2 = unsafe.Pointer(&dest[0])
100
-	} else {
101
-		_p2 = unsafe.Pointer(&_zero)
102
-	}
103
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
104
-	use(unsafe.Pointer(_p0))
105
-	use(unsafe.Pointer(_p1))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
112 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl xattr_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func llistxattr(path string, dest []byte) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 unsafe.Pointer
20
-	if len(dest) > 0 {
21
-		_p1 = unsafe.Pointer(&dest[0])
22
-	} else {
23
-		_p1 = unsafe.Pointer(&_zero)
24
-	}
25
-	r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
26
-	use(unsafe.Pointer(_p0))
27
-	sz = int(r0)
28
-	if e1 != 0 {
29
-		err = errnoErr(e1)
30
-	}
31
-	return
32
-}
33
-
34
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
35
-
36
-func lremovexattr(path string, attr string) (err error) {
37
-	var _p0 *byte
38
-	_p0, err = syscall.BytePtrFromString(path)
39
-	if err != nil {
40
-		return
41
-	}
42
-	var _p1 *byte
43
-	_p1, err = syscall.BytePtrFromString(attr)
44
-	if err != nil {
45
-		return
46
-	}
47
-	_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
48
-	use(unsafe.Pointer(_p0))
49
-	use(unsafe.Pointer(_p1))
50
-	if e1 != 0 {
51
-		err = errnoErr(e1)
52
-	}
53
-	return
54
-}
55
-
56
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
57
-
58
-func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
59
-	var _p0 *byte
60
-	_p0, err = syscall.BytePtrFromString(path)
61
-	if err != nil {
62
-		return
63
-	}
64
-	var _p1 *byte
65
-	_p1, err = syscall.BytePtrFromString(attr)
66
-	if err != nil {
67
-		return
68
-	}
69
-	var _p2 unsafe.Pointer
70
-	if len(data) > 0 {
71
-		_p2 = unsafe.Pointer(&data[0])
72
-	} else {
73
-		_p2 = unsafe.Pointer(&_zero)
74
-	}
75
-	_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
76
-	use(unsafe.Pointer(_p0))
77
-	use(unsafe.Pointer(_p1))
78
-	if e1 != 0 {
79
-		err = errnoErr(e1)
80
-	}
81
-	return
82
-}
83
-
84
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
85
-
86
-func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
87
-	var _p0 *byte
88
-	_p0, err = syscall.BytePtrFromString(path)
89
-	if err != nil {
90
-		return
91
-	}
92
-	var _p1 *byte
93
-	_p1, err = syscall.BytePtrFromString(attr)
94
-	if err != nil {
95
-		return
96
-	}
97
-	var _p2 unsafe.Pointer
98
-	if len(dest) > 0 {
99
-		_p2 = unsafe.Pointer(&dest[0])
100
-	} else {
101
-		_p2 = unsafe.Pointer(&_zero)
102
-	}
103
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
104
-	use(unsafe.Pointer(_p0))
105
-	use(unsafe.Pointer(_p1))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
112 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl -l32 xattr_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func llistxattr(path string, dest []byte) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 unsafe.Pointer
20
-	if len(dest) > 0 {
21
-		_p1 = unsafe.Pointer(&dest[0])
22
-	} else {
23
-		_p1 = unsafe.Pointer(&_zero)
24
-	}
25
-	r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
26
-	use(unsafe.Pointer(_p0))
27
-	sz = int(r0)
28
-	if e1 != 0 {
29
-		err = errnoErr(e1)
30
-	}
31
-	return
32
-}
33
-
34
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
35
-
36
-func lremovexattr(path string, attr string) (err error) {
37
-	var _p0 *byte
38
-	_p0, err = syscall.BytePtrFromString(path)
39
-	if err != nil {
40
-		return
41
-	}
42
-	var _p1 *byte
43
-	_p1, err = syscall.BytePtrFromString(attr)
44
-	if err != nil {
45
-		return
46
-	}
47
-	_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
48
-	use(unsafe.Pointer(_p0))
49
-	use(unsafe.Pointer(_p1))
50
-	if e1 != 0 {
51
-		err = errnoErr(e1)
52
-	}
53
-	return
54
-}
55
-
56
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
57
-
58
-func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
59
-	var _p0 *byte
60
-	_p0, err = syscall.BytePtrFromString(path)
61
-	if err != nil {
62
-		return
63
-	}
64
-	var _p1 *byte
65
-	_p1, err = syscall.BytePtrFromString(attr)
66
-	if err != nil {
67
-		return
68
-	}
69
-	var _p2 unsafe.Pointer
70
-	if len(data) > 0 {
71
-		_p2 = unsafe.Pointer(&data[0])
72
-	} else {
73
-		_p2 = unsafe.Pointer(&_zero)
74
-	}
75
-	_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
76
-	use(unsafe.Pointer(_p0))
77
-	use(unsafe.Pointer(_p1))
78
-	if e1 != 0 {
79
-		err = errnoErr(e1)
80
-	}
81
-	return
82
-}
83
-
84
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
85
-
86
-func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
87
-	var _p0 *byte
88
-	_p0, err = syscall.BytePtrFromString(path)
89
-	if err != nil {
90
-		return
91
-	}
92
-	var _p1 *byte
93
-	_p1, err = syscall.BytePtrFromString(attr)
94
-	if err != nil {
95
-		return
96
-	}
97
-	var _p2 unsafe.Pointer
98
-	if len(dest) > 0 {
99
-		_p2 = unsafe.Pointer(&dest[0])
100
-	} else {
101
-		_p2 = unsafe.Pointer(&_zero)
102
-	}
103
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
104
-	use(unsafe.Pointer(_p0))
105
-	use(unsafe.Pointer(_p1))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
112 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl xattr_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func llistxattr(path string, dest []byte) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 unsafe.Pointer
20
-	if len(dest) > 0 {
21
-		_p1 = unsafe.Pointer(&dest[0])
22
-	} else {
23
-		_p1 = unsafe.Pointer(&_zero)
24
-	}
25
-	r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
26
-	use(unsafe.Pointer(_p0))
27
-	sz = int(r0)
28
-	if e1 != 0 {
29
-		err = errnoErr(e1)
30
-	}
31
-	return
32
-}
33
-
34
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
35
-
36
-func lremovexattr(path string, attr string) (err error) {
37
-	var _p0 *byte
38
-	_p0, err = syscall.BytePtrFromString(path)
39
-	if err != nil {
40
-		return
41
-	}
42
-	var _p1 *byte
43
-	_p1, err = syscall.BytePtrFromString(attr)
44
-	if err != nil {
45
-		return
46
-	}
47
-	_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
48
-	use(unsafe.Pointer(_p0))
49
-	use(unsafe.Pointer(_p1))
50
-	if e1 != 0 {
51
-		err = errnoErr(e1)
52
-	}
53
-	return
54
-}
55
-
56
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
57
-
58
-func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
59
-	var _p0 *byte
60
-	_p0, err = syscall.BytePtrFromString(path)
61
-	if err != nil {
62
-		return
63
-	}
64
-	var _p1 *byte
65
-	_p1, err = syscall.BytePtrFromString(attr)
66
-	if err != nil {
67
-		return
68
-	}
69
-	var _p2 unsafe.Pointer
70
-	if len(data) > 0 {
71
-		_p2 = unsafe.Pointer(&data[0])
72
-	} else {
73
-		_p2 = unsafe.Pointer(&_zero)
74
-	}
75
-	_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
76
-	use(unsafe.Pointer(_p0))
77
-	use(unsafe.Pointer(_p1))
78
-	if e1 != 0 {
79
-		err = errnoErr(e1)
80
-	}
81
-	return
82
-}
83
-
84
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
85
-
86
-func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
87
-	var _p0 *byte
88
-	_p0, err = syscall.BytePtrFromString(path)
89
-	if err != nil {
90
-		return
91
-	}
92
-	var _p1 *byte
93
-	_p1, err = syscall.BytePtrFromString(attr)
94
-	if err != nil {
95
-		return
96
-	}
97
-	var _p2 unsafe.Pointer
98
-	if len(dest) > 0 {
99
-		_p2 = unsafe.Pointer(&dest[0])
100
-	} else {
101
-		_p2 = unsafe.Pointer(&_zero)
102
-	}
103
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
104
-	use(unsafe.Pointer(_p0))
105
-	use(unsafe.Pointer(_p1))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
112 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl xattr_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func llistxattr(path string, dest []byte) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 unsafe.Pointer
20
-	if len(dest) > 0 {
21
-		_p1 = unsafe.Pointer(&dest[0])
22
-	} else {
23
-		_p1 = unsafe.Pointer(&_zero)
24
-	}
25
-	r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
26
-	use(unsafe.Pointer(_p0))
27
-	sz = int(r0)
28
-	if e1 != 0 {
29
-		err = errnoErr(e1)
30
-	}
31
-	return
32
-}
33
-
34
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
35
-
36
-func lremovexattr(path string, attr string) (err error) {
37
-	var _p0 *byte
38
-	_p0, err = syscall.BytePtrFromString(path)
39
-	if err != nil {
40
-		return
41
-	}
42
-	var _p1 *byte
43
-	_p1, err = syscall.BytePtrFromString(attr)
44
-	if err != nil {
45
-		return
46
-	}
47
-	_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
48
-	use(unsafe.Pointer(_p0))
49
-	use(unsafe.Pointer(_p1))
50
-	if e1 != 0 {
51
-		err = errnoErr(e1)
52
-	}
53
-	return
54
-}
55
-
56
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
57
-
58
-func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
59
-	var _p0 *byte
60
-	_p0, err = syscall.BytePtrFromString(path)
61
-	if err != nil {
62
-		return
63
-	}
64
-	var _p1 *byte
65
-	_p1, err = syscall.BytePtrFromString(attr)
66
-	if err != nil {
67
-		return
68
-	}
69
-	var _p2 unsafe.Pointer
70
-	if len(data) > 0 {
71
-		_p2 = unsafe.Pointer(&data[0])
72
-	} else {
73
-		_p2 = unsafe.Pointer(&_zero)
74
-	}
75
-	_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
76
-	use(unsafe.Pointer(_p0))
77
-	use(unsafe.Pointer(_p1))
78
-	if e1 != 0 {
79
-		err = errnoErr(e1)
80
-	}
81
-	return
82
-}
83
-
84
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
85
-
86
-func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
87
-	var _p0 *byte
88
-	_p0, err = syscall.BytePtrFromString(path)
89
-	if err != nil {
90
-		return
91
-	}
92
-	var _p1 *byte
93
-	_p1, err = syscall.BytePtrFromString(attr)
94
-	if err != nil {
95
-		return
96
-	}
97
-	var _p2 unsafe.Pointer
98
-	if len(dest) > 0 {
99
-		_p2 = unsafe.Pointer(&dest[0])
100
-	} else {
101
-		_p2 = unsafe.Pointer(&_zero)
102
-	}
103
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
104
-	use(unsafe.Pointer(_p0))
105
-	use(unsafe.Pointer(_p1))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
112 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl xattr_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func llistxattr(path string, dest []byte) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 unsafe.Pointer
20
-	if len(dest) > 0 {
21
-		_p1 = unsafe.Pointer(&dest[0])
22
-	} else {
23
-		_p1 = unsafe.Pointer(&_zero)
24
-	}
25
-	r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
26
-	use(unsafe.Pointer(_p0))
27
-	sz = int(r0)
28
-	if e1 != 0 {
29
-		err = errnoErr(e1)
30
-	}
31
-	return
32
-}
33
-
34
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
35
-
36
-func lremovexattr(path string, attr string) (err error) {
37
-	var _p0 *byte
38
-	_p0, err = syscall.BytePtrFromString(path)
39
-	if err != nil {
40
-		return
41
-	}
42
-	var _p1 *byte
43
-	_p1, err = syscall.BytePtrFromString(attr)
44
-	if err != nil {
45
-		return
46
-	}
47
-	_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
48
-	use(unsafe.Pointer(_p0))
49
-	use(unsafe.Pointer(_p1))
50
-	if e1 != 0 {
51
-		err = errnoErr(e1)
52
-	}
53
-	return
54
-}
55
-
56
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
57
-
58
-func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
59
-	var _p0 *byte
60
-	_p0, err = syscall.BytePtrFromString(path)
61
-	if err != nil {
62
-		return
63
-	}
64
-	var _p1 *byte
65
-	_p1, err = syscall.BytePtrFromString(attr)
66
-	if err != nil {
67
-		return
68
-	}
69
-	var _p2 unsafe.Pointer
70
-	if len(data) > 0 {
71
-		_p2 = unsafe.Pointer(&data[0])
72
-	} else {
73
-		_p2 = unsafe.Pointer(&_zero)
74
-	}
75
-	_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
76
-	use(unsafe.Pointer(_p0))
77
-	use(unsafe.Pointer(_p1))
78
-	if e1 != 0 {
79
-		err = errnoErr(e1)
80
-	}
81
-	return
82
-}
83
-
84
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
85
-
86
-func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
87
-	var _p0 *byte
88
-	_p0, err = syscall.BytePtrFromString(path)
89
-	if err != nil {
90
-		return
91
-	}
92
-	var _p1 *byte
93
-	_p1, err = syscall.BytePtrFromString(attr)
94
-	if err != nil {
95
-		return
96
-	}
97
-	var _p2 unsafe.Pointer
98
-	if len(dest) > 0 {
99
-		_p2 = unsafe.Pointer(&dest[0])
100
-	} else {
101
-		_p2 = unsafe.Pointer(&_zero)
102
-	}
103
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
104
-	use(unsafe.Pointer(_p0))
105
-	use(unsafe.Pointer(_p1))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
112 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-// mksyscall.pl xattr_linux.go
2
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
-
4
-package sysx
5
-
6
-import (
7
-	"syscall"
8
-	"unsafe"
9
-)
10
-
11
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
-
13
-func llistxattr(path string, dest []byte) (sz int, err error) {
14
-	var _p0 *byte
15
-	_p0, err = syscall.BytePtrFromString(path)
16
-	if err != nil {
17
-		return
18
-	}
19
-	var _p1 unsafe.Pointer
20
-	if len(dest) > 0 {
21
-		_p1 = unsafe.Pointer(&dest[0])
22
-	} else {
23
-		_p1 = unsafe.Pointer(&_zero)
24
-	}
25
-	r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
26
-	use(unsafe.Pointer(_p0))
27
-	sz = int(r0)
28
-	if e1 != 0 {
29
-		err = errnoErr(e1)
30
-	}
31
-	return
32
-}
33
-
34
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
35
-
36
-func lremovexattr(path string, attr string) (err error) {
37
-	var _p0 *byte
38
-	_p0, err = syscall.BytePtrFromString(path)
39
-	if err != nil {
40
-		return
41
-	}
42
-	var _p1 *byte
43
-	_p1, err = syscall.BytePtrFromString(attr)
44
-	if err != nil {
45
-		return
46
-	}
47
-	_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
48
-	use(unsafe.Pointer(_p0))
49
-	use(unsafe.Pointer(_p1))
50
-	if e1 != 0 {
51
-		err = errnoErr(e1)
52
-	}
53
-	return
54
-}
55
-
56
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
57
-
58
-func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
59
-	var _p0 *byte
60
-	_p0, err = syscall.BytePtrFromString(path)
61
-	if err != nil {
62
-		return
63
-	}
64
-	var _p1 *byte
65
-	_p1, err = syscall.BytePtrFromString(attr)
66
-	if err != nil {
67
-		return
68
-	}
69
-	var _p2 unsafe.Pointer
70
-	if len(data) > 0 {
71
-		_p2 = unsafe.Pointer(&data[0])
72
-	} else {
73
-		_p2 = unsafe.Pointer(&_zero)
74
-	}
75
-	_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
76
-	use(unsafe.Pointer(_p0))
77
-	use(unsafe.Pointer(_p1))
78
-	if e1 != 0 {
79
-		err = errnoErr(e1)
80
-	}
81
-	return
82
-}
83
-
84
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
85
-
86
-func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
87
-	var _p0 *byte
88
-	_p0, err = syscall.BytePtrFromString(path)
89
-	if err != nil {
90
-		return
91
-	}
92
-	var _p1 *byte
93
-	_p1, err = syscall.BytePtrFromString(attr)
94
-	if err != nil {
95
-		return
96
-	}
97
-	var _p2 unsafe.Pointer
98
-	if len(dest) > 0 {
99
-		_p2 = unsafe.Pointer(&dest[0])
100
-	} else {
101
-		_p2 = unsafe.Pointer(&_zero)
102
-	}
103
-	r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
104
-	use(unsafe.Pointer(_p0))
105
-	use(unsafe.Pointer(_p1))
106
-	sz = int(r0)
107
-	if e1 != 0 {
108
-		err = errnoErr(e1)
109
-	}
110
-	return
111
-}
... ...
@@ -4,8 +4,8 @@ import (
4 4
 	"bytes"
5 5
 	"syscall"
6 6
 
7
+	"github.com/containerd/continuity/sysx"
7 8
 	"github.com/pkg/errors"
8
-	"github.com/stevvooe/continuity/sysx"
9 9
 )
10 10
 
11 11
 // compareSysStat returns whether the stats are equivalent,
... ...
@@ -6,8 +6,8 @@ import (
6 6
 	"os"
7 7
 	"syscall"
8 8
 
9
+	"github.com/containerd/continuity/sysx"
9 10
 	"github.com/pkg/errors"
10
-	"github.com/stevvooe/continuity/sysx"
11 11
 )
12 12
 
13 13
 func rewriteMetadata(p string, stat *Stat) error {
... ...
@@ -6,8 +6,8 @@ import (
6 6
 	"os"
7 7
 	"syscall"
8 8
 
9
+	"github.com/containerd/continuity/sysx"
9 10
 	"github.com/pkg/errors"
10
-	"github.com/stevvooe/continuity/sysx"
11 11
 )
12 12
 
13 13
 func loadXattr(origpath string, stat *Stat) error {