diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
commit | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go | |
parent | 07971ca38143c5faf951d152fba370ddcbe26ad5 (diff) | |
download | terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.gz terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.zst terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.zip |
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go | 2284 |
1 files changed, 2284 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go new file mode 100644 index 0000000..e8d82d1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go | |||
@@ -0,0 +1,2284 @@ | |||
1 | // mksyscall.pl -l32 -arm -tags linux,arm syscall_linux.go syscall_linux_arm.go | ||
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | ||
3 | |||
4 | // +build linux,arm | ||
5 | |||
6 | package unix | ||
7 | |||
8 | import ( | ||
9 | "syscall" | ||
10 | "unsafe" | ||
11 | ) | ||
12 | |||
13 | var _ syscall.Errno | ||
14 | |||
15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
16 | |||
17 | func fchmodat(dirfd int, path string, mode uint32) (err error) { | ||
18 | var _p0 *byte | ||
19 | _p0, err = BytePtrFromString(path) | ||
20 | if err != nil { | ||
21 | return | ||
22 | } | ||
23 | _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) | ||
24 | if e1 != 0 { | ||
25 | err = errnoErr(e1) | ||
26 | } | ||
27 | return | ||
28 | } | ||
29 | |||
30 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
31 | |||
32 | func ioctl(fd int, req uint, arg uintptr) (err error) { | ||
33 | _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) | ||
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 Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { | ||
43 | var _p0 *byte | ||
44 | _p0, err = BytePtrFromString(oldpath) | ||
45 | if err != nil { | ||
46 | return | ||
47 | } | ||
48 | var _p1 *byte | ||
49 | _p1, err = BytePtrFromString(newpath) | ||
50 | if err != nil { | ||
51 | return | ||
52 | } | ||
53 | _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) | ||
54 | if e1 != 0 { | ||
55 | err = errnoErr(e1) | ||
56 | } | ||
57 | return | ||
58 | } | ||
59 | |||
60 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
61 | |||
62 | func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { | ||
63 | var _p0 *byte | ||
64 | _p0, err = BytePtrFromString(path) | ||
65 | if err != nil { | ||
66 | return | ||
67 | } | ||
68 | r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) | ||
69 | fd = int(r0) | ||
70 | if e1 != 0 { | ||
71 | err = errnoErr(e1) | ||
72 | } | ||
73 | return | ||
74 | } | ||
75 | |||
76 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
77 | |||
78 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | ||
79 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | ||
80 | n = int(r0) | ||
81 | if e1 != 0 { | ||
82 | err = errnoErr(e1) | ||
83 | } | ||
84 | return | ||
85 | } | ||
86 | |||
87 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
88 | |||
89 | func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { | ||
90 | var _p0 *byte | ||
91 | _p0, err = BytePtrFromString(path) | ||
92 | if err != nil { | ||
93 | return | ||
94 | } | ||
95 | var _p1 unsafe.Pointer | ||
96 | if len(buf) > 0 { | ||
97 | _p1 = unsafe.Pointer(&buf[0]) | ||
98 | } else { | ||
99 | _p1 = unsafe.Pointer(&_zero) | ||
100 | } | ||
101 | r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) | ||
102 | n = int(r0) | ||
103 | if e1 != 0 { | ||
104 | err = errnoErr(e1) | ||
105 | } | ||
106 | return | ||
107 | } | ||
108 | |||
109 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
110 | |||
111 | func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { | ||
112 | var _p0 *byte | ||
113 | _p0, err = BytePtrFromString(oldpath) | ||
114 | if err != nil { | ||
115 | return | ||
116 | } | ||
117 | var _p1 *byte | ||
118 | _p1, err = BytePtrFromString(newpath) | ||
119 | if err != nil { | ||
120 | return | ||
121 | } | ||
122 | _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) | ||
123 | if e1 != 0 { | ||
124 | err = errnoErr(e1) | ||
125 | } | ||
126 | return | ||
127 | } | ||
128 | |||
129 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
130 | |||
131 | func Unlinkat(dirfd int, path string, flags int) (err error) { | ||
132 | var _p0 *byte | ||
133 | _p0, err = BytePtrFromString(path) | ||
134 | if err != nil { | ||
135 | return | ||
136 | } | ||
137 | _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) | ||
138 | if e1 != 0 { | ||
139 | err = errnoErr(e1) | ||
140 | } | ||
141 | return | ||
142 | } | ||
143 | |||
144 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
145 | |||
146 | func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { | ||
147 | var _p0 *byte | ||
148 | _p0, err = BytePtrFromString(path) | ||
149 | if err != nil { | ||
150 | return | ||
151 | } | ||
152 | _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) | ||
153 | if e1 != 0 { | ||
154 | err = errnoErr(e1) | ||
155 | } | ||
156 | return | ||
157 | } | ||
158 | |||
159 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
160 | |||
161 | func Getcwd(buf []byte) (n int, err error) { | ||
162 | var _p0 unsafe.Pointer | ||
163 | if len(buf) > 0 { | ||
164 | _p0 = unsafe.Pointer(&buf[0]) | ||
165 | } else { | ||
166 | _p0 = unsafe.Pointer(&_zero) | ||
167 | } | ||
168 | r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) | ||
169 | n = int(r0) | ||
170 | if e1 != 0 { | ||
171 | err = errnoErr(e1) | ||
172 | } | ||
173 | return | ||
174 | } | ||
175 | |||
176 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
177 | |||
178 | func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { | ||
179 | r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) | ||
180 | wpid = int(r0) | ||
181 | if e1 != 0 { | ||
182 | err = errnoErr(e1) | ||
183 | } | ||
184 | return | ||
185 | } | ||
186 | |||
187 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
188 | |||
189 | func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { | ||
190 | r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) | ||
191 | ret = int(r0) | ||
192 | if e1 != 0 { | ||
193 | err = errnoErr(e1) | ||
194 | } | ||
195 | return | ||
196 | } | ||
197 | |||
198 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
199 | |||
200 | func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { | ||
201 | var _p0 unsafe.Pointer | ||
202 | if len(buf) > 0 { | ||
203 | _p0 = unsafe.Pointer(&buf[0]) | ||
204 | } else { | ||
205 | _p0 = unsafe.Pointer(&_zero) | ||
206 | } | ||
207 | r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) | ||
208 | ret = int(r0) | ||
209 | if e1 != 0 { | ||
210 | err = errnoErr(e1) | ||
211 | } | ||
212 | return | ||
213 | } | ||
214 | |||
215 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
216 | |||
217 | func keyctlJoin(cmd int, arg2 string) (ret int, err error) { | ||
218 | var _p0 *byte | ||
219 | _p0, err = BytePtrFromString(arg2) | ||
220 | if err != nil { | ||
221 | return | ||
222 | } | ||
223 | r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) | ||
224 | ret = int(r0) | ||
225 | if e1 != 0 { | ||
226 | err = errnoErr(e1) | ||
227 | } | ||
228 | return | ||
229 | } | ||
230 | |||
231 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
232 | |||
233 | func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { | ||
234 | var _p0 *byte | ||
235 | _p0, err = BytePtrFromString(arg3) | ||
236 | if err != nil { | ||
237 | return | ||
238 | } | ||
239 | var _p1 *byte | ||
240 | _p1, err = BytePtrFromString(arg4) | ||
241 | if err != nil { | ||
242 | return | ||
243 | } | ||
244 | r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) | ||
245 | ret = int(r0) | ||
246 | if e1 != 0 { | ||
247 | err = errnoErr(e1) | ||
248 | } | ||
249 | return | ||
250 | } | ||
251 | |||
252 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
253 | |||
254 | func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { | ||
255 | var _p0 unsafe.Pointer | ||
256 | if len(payload) > 0 { | ||
257 | _p0 = unsafe.Pointer(&payload[0]) | ||
258 | } else { | ||
259 | _p0 = unsafe.Pointer(&_zero) | ||
260 | } | ||
261 | _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) | ||
262 | if e1 != 0 { | ||
263 | err = errnoErr(e1) | ||
264 | } | ||
265 | return | ||
266 | } | ||
267 | |||
268 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
269 | |||
270 | func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { | ||
271 | var _p0 unsafe.Pointer | ||
272 | if len(buf) > 0 { | ||
273 | _p0 = unsafe.Pointer(&buf[0]) | ||
274 | } else { | ||
275 | _p0 = unsafe.Pointer(&_zero) | ||
276 | } | ||
277 | r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) | ||
278 | ret = int(r0) | ||
279 | if e1 != 0 { | ||
280 | err = errnoErr(e1) | ||
281 | } | ||
282 | return | ||
283 | } | ||
284 | |||
285 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
286 | |||
287 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { | ||
288 | _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) | ||
289 | if e1 != 0 { | ||
290 | err = errnoErr(e1) | ||
291 | } | ||
292 | return | ||
293 | } | ||
294 | |||
295 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
296 | |||
297 | func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { | ||
298 | var _p0 *byte | ||
299 | _p0, err = BytePtrFromString(arg) | ||
300 | if err != nil { | ||
301 | return | ||
302 | } | ||
303 | _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
304 | if e1 != 0 { | ||
305 | err = errnoErr(e1) | ||
306 | } | ||
307 | return | ||
308 | } | ||
309 | |||
310 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
311 | |||
312 | func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { | ||
313 | var _p0 *byte | ||
314 | _p0, err = BytePtrFromString(source) | ||
315 | if err != nil { | ||
316 | return | ||
317 | } | ||
318 | var _p1 *byte | ||
319 | _p1, err = BytePtrFromString(target) | ||
320 | if err != nil { | ||
321 | return | ||
322 | } | ||
323 | var _p2 *byte | ||
324 | _p2, err = BytePtrFromString(fstype) | ||
325 | if err != nil { | ||
326 | return | ||
327 | } | ||
328 | _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) | ||
329 | if e1 != 0 { | ||
330 | err = errnoErr(e1) | ||
331 | } | ||
332 | return | ||
333 | } | ||
334 | |||
335 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
336 | |||
337 | func Acct(path string) (err error) { | ||
338 | var _p0 *byte | ||
339 | _p0, err = BytePtrFromString(path) | ||
340 | if err != nil { | ||
341 | return | ||
342 | } | ||
343 | _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
344 | if e1 != 0 { | ||
345 | err = errnoErr(e1) | ||
346 | } | ||
347 | return | ||
348 | } | ||
349 | |||
350 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
351 | |||
352 | func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { | ||
353 | var _p0 *byte | ||
354 | _p0, err = BytePtrFromString(keyType) | ||
355 | if err != nil { | ||
356 | return | ||
357 | } | ||
358 | var _p1 *byte | ||
359 | _p1, err = BytePtrFromString(description) | ||
360 | if err != nil { | ||
361 | return | ||
362 | } | ||
363 | var _p2 unsafe.Pointer | ||
364 | if len(payload) > 0 { | ||
365 | _p2 = unsafe.Pointer(&payload[0]) | ||
366 | } else { | ||
367 | _p2 = unsafe.Pointer(&_zero) | ||
368 | } | ||
369 | r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) | ||
370 | id = int(r0) | ||
371 | if e1 != 0 { | ||
372 | err = errnoErr(e1) | ||
373 | } | ||
374 | return | ||
375 | } | ||
376 | |||
377 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
378 | |||
379 | func Adjtimex(buf *Timex) (state int, err error) { | ||
380 | r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) | ||
381 | state = int(r0) | ||
382 | if e1 != 0 { | ||
383 | err = errnoErr(e1) | ||
384 | } | ||
385 | return | ||
386 | } | ||
387 | |||
388 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
389 | |||
390 | func Chdir(path string) (err error) { | ||
391 | var _p0 *byte | ||
392 | _p0, err = BytePtrFromString(path) | ||
393 | if err != nil { | ||
394 | return | ||
395 | } | ||
396 | _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
397 | if e1 != 0 { | ||
398 | err = errnoErr(e1) | ||
399 | } | ||
400 | return | ||
401 | } | ||
402 | |||
403 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
404 | |||
405 | func Chroot(path string) (err error) { | ||
406 | var _p0 *byte | ||
407 | _p0, err = BytePtrFromString(path) | ||
408 | if err != nil { | ||
409 | return | ||
410 | } | ||
411 | _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
412 | if e1 != 0 { | ||
413 | err = errnoErr(e1) | ||
414 | } | ||
415 | return | ||
416 | } | ||
417 | |||
418 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
419 | |||
420 | func ClockGetres(clockid int32, res *Timespec) (err error) { | ||
421 | _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) | ||
422 | if e1 != 0 { | ||
423 | err = errnoErr(e1) | ||
424 | } | ||
425 | return | ||
426 | } | ||
427 | |||
428 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
429 | |||
430 | func ClockGettime(clockid int32, time *Timespec) (err error) { | ||
431 | _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) | ||
432 | if e1 != 0 { | ||
433 | err = errnoErr(e1) | ||
434 | } | ||
435 | return | ||
436 | } | ||
437 | |||
438 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
439 | |||
440 | func Close(fd int) (err error) { | ||
441 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) | ||
442 | if e1 != 0 { | ||
443 | err = errnoErr(e1) | ||
444 | } | ||
445 | return | ||
446 | } | ||
447 | |||
448 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
449 | |||
450 | func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { | ||
451 | r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) | ||
452 | n = int(r0) | ||
453 | if e1 != 0 { | ||
454 | err = errnoErr(e1) | ||
455 | } | ||
456 | return | ||
457 | } | ||
458 | |||
459 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
460 | |||
461 | func DeleteModule(name string, flags int) (err error) { | ||
462 | var _p0 *byte | ||
463 | _p0, err = BytePtrFromString(name) | ||
464 | if err != nil { | ||
465 | return | ||
466 | } | ||
467 | _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
468 | if e1 != 0 { | ||
469 | err = errnoErr(e1) | ||
470 | } | ||
471 | return | ||
472 | } | ||
473 | |||
474 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
475 | |||
476 | func Dup(oldfd int) (fd int, err error) { | ||
477 | r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) | ||
478 | fd = int(r0) | ||
479 | if e1 != 0 { | ||
480 | err = errnoErr(e1) | ||
481 | } | ||
482 | return | ||
483 | } | ||
484 | |||
485 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
486 | |||
487 | func Dup3(oldfd int, newfd int, flags int) (err error) { | ||
488 | _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) | ||
489 | if e1 != 0 { | ||
490 | err = errnoErr(e1) | ||
491 | } | ||
492 | return | ||
493 | } | ||
494 | |||
495 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
496 | |||
497 | func EpollCreate1(flag int) (fd int, err error) { | ||
498 | r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) | ||
499 | fd = int(r0) | ||
500 | if e1 != 0 { | ||
501 | err = errnoErr(e1) | ||
502 | } | ||
503 | return | ||
504 | } | ||
505 | |||
506 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
507 | |||
508 | func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { | ||
509 | _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) | ||
510 | if e1 != 0 { | ||
511 | err = errnoErr(e1) | ||
512 | } | ||
513 | return | ||
514 | } | ||
515 | |||
516 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
517 | |||
518 | func Eventfd(initval uint, flags int) (fd int, err error) { | ||
519 | r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) | ||
520 | fd = int(r0) | ||
521 | if e1 != 0 { | ||
522 | err = errnoErr(e1) | ||
523 | } | ||
524 | return | ||
525 | } | ||
526 | |||
527 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
528 | |||
529 | func Exit(code int) { | ||
530 | SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) | ||
531 | return | ||
532 | } | ||
533 | |||
534 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
535 | |||
536 | func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { | ||
537 | _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) | ||
538 | if e1 != 0 { | ||
539 | err = errnoErr(e1) | ||
540 | } | ||
541 | return | ||
542 | } | ||
543 | |||
544 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
545 | |||
546 | func Fchdir(fd int) (err error) { | ||
547 | _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) | ||
548 | if e1 != 0 { | ||
549 | err = errnoErr(e1) | ||
550 | } | ||
551 | return | ||
552 | } | ||
553 | |||
554 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
555 | |||
556 | func Fchmod(fd int, mode uint32) (err error) { | ||
557 | _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) | ||
558 | if e1 != 0 { | ||
559 | err = errnoErr(e1) | ||
560 | } | ||
561 | return | ||
562 | } | ||
563 | |||
564 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
565 | |||
566 | func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { | ||
567 | var _p0 *byte | ||
568 | _p0, err = BytePtrFromString(path) | ||
569 | if err != nil { | ||
570 | return | ||
571 | } | ||
572 | _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) | ||
573 | if e1 != 0 { | ||
574 | err = errnoErr(e1) | ||
575 | } | ||
576 | return | ||
577 | } | ||
578 | |||
579 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
580 | |||
581 | func fcntl(fd int, cmd int, arg int) (val int, err error) { | ||
582 | r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) | ||
583 | val = int(r0) | ||
584 | if e1 != 0 { | ||
585 | err = errnoErr(e1) | ||
586 | } | ||
587 | return | ||
588 | } | ||
589 | |||
590 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
591 | |||
592 | func Fdatasync(fd int) (err error) { | ||
593 | _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) | ||
594 | if e1 != 0 { | ||
595 | err = errnoErr(e1) | ||
596 | } | ||
597 | return | ||
598 | } | ||
599 | |||
600 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
601 | |||
602 | func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { | ||
603 | var _p0 *byte | ||
604 | _p0, err = BytePtrFromString(attr) | ||
605 | if err != nil { | ||
606 | return | ||
607 | } | ||
608 | var _p1 unsafe.Pointer | ||
609 | if len(dest) > 0 { | ||
610 | _p1 = unsafe.Pointer(&dest[0]) | ||
611 | } else { | ||
612 | _p1 = unsafe.Pointer(&_zero) | ||
613 | } | ||
614 | r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) | ||
615 | sz = int(r0) | ||
616 | if e1 != 0 { | ||
617 | err = errnoErr(e1) | ||
618 | } | ||
619 | return | ||
620 | } | ||
621 | |||
622 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
623 | |||
624 | func FinitModule(fd int, params string, flags int) (err error) { | ||
625 | var _p0 *byte | ||
626 | _p0, err = BytePtrFromString(params) | ||
627 | if err != nil { | ||
628 | return | ||
629 | } | ||
630 | _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) | ||
631 | if e1 != 0 { | ||
632 | err = errnoErr(e1) | ||
633 | } | ||
634 | return | ||
635 | } | ||
636 | |||
637 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
638 | |||
639 | func Flistxattr(fd int, dest []byte) (sz int, err error) { | ||
640 | var _p0 unsafe.Pointer | ||
641 | if len(dest) > 0 { | ||
642 | _p0 = unsafe.Pointer(&dest[0]) | ||
643 | } else { | ||
644 | _p0 = unsafe.Pointer(&_zero) | ||
645 | } | ||
646 | r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) | ||
647 | sz = int(r0) | ||
648 | if e1 != 0 { | ||
649 | err = errnoErr(e1) | ||
650 | } | ||
651 | return | ||
652 | } | ||
653 | |||
654 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
655 | |||
656 | func Flock(fd int, how int) (err error) { | ||
657 | _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) | ||
658 | if e1 != 0 { | ||
659 | err = errnoErr(e1) | ||
660 | } | ||
661 | return | ||
662 | } | ||
663 | |||
664 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
665 | |||
666 | func Fremovexattr(fd int, attr string) (err error) { | ||
667 | var _p0 *byte | ||
668 | _p0, err = BytePtrFromString(attr) | ||
669 | if err != nil { | ||
670 | return | ||
671 | } | ||
672 | _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) | ||
673 | if e1 != 0 { | ||
674 | err = errnoErr(e1) | ||
675 | } | ||
676 | return | ||
677 | } | ||
678 | |||
679 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
680 | |||
681 | func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { | ||
682 | var _p0 *byte | ||
683 | _p0, err = BytePtrFromString(attr) | ||
684 | if err != nil { | ||
685 | return | ||
686 | } | ||
687 | var _p1 unsafe.Pointer | ||
688 | if len(dest) > 0 { | ||
689 | _p1 = unsafe.Pointer(&dest[0]) | ||
690 | } else { | ||
691 | _p1 = unsafe.Pointer(&_zero) | ||
692 | } | ||
693 | _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) | ||
694 | if e1 != 0 { | ||
695 | err = errnoErr(e1) | ||
696 | } | ||
697 | return | ||
698 | } | ||
699 | |||
700 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
701 | |||
702 | func Fsync(fd int) (err error) { | ||
703 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) | ||
704 | if e1 != 0 { | ||
705 | err = errnoErr(e1) | ||
706 | } | ||
707 | return | ||
708 | } | ||
709 | |||
710 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
711 | |||
712 | func Getdents(fd int, buf []byte) (n int, err error) { | ||
713 | var _p0 unsafe.Pointer | ||
714 | if len(buf) > 0 { | ||
715 | _p0 = unsafe.Pointer(&buf[0]) | ||
716 | } else { | ||
717 | _p0 = unsafe.Pointer(&_zero) | ||
718 | } | ||
719 | r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) | ||
720 | n = int(r0) | ||
721 | if e1 != 0 { | ||
722 | err = errnoErr(e1) | ||
723 | } | ||
724 | return | ||
725 | } | ||
726 | |||
727 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
728 | |||
729 | func Getpgid(pid int) (pgid int, err error) { | ||
730 | r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) | ||
731 | pgid = int(r0) | ||
732 | if e1 != 0 { | ||
733 | err = errnoErr(e1) | ||
734 | } | ||
735 | return | ||
736 | } | ||
737 | |||
738 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
739 | |||
740 | func Getpid() (pid int) { | ||
741 | r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) | ||
742 | pid = int(r0) | ||
743 | return | ||
744 | } | ||
745 | |||
746 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
747 | |||
748 | func Getppid() (ppid int) { | ||
749 | r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) | ||
750 | ppid = int(r0) | ||
751 | return | ||
752 | } | ||
753 | |||
754 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
755 | |||
756 | func Getpriority(which int, who int) (prio int, err error) { | ||
757 | r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) | ||
758 | prio = int(r0) | ||
759 | if e1 != 0 { | ||
760 | err = errnoErr(e1) | ||
761 | } | ||
762 | return | ||
763 | } | ||
764 | |||
765 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
766 | |||
767 | func Getrandom(buf []byte, flags int) (n int, err error) { | ||
768 | var _p0 unsafe.Pointer | ||
769 | if len(buf) > 0 { | ||
770 | _p0 = unsafe.Pointer(&buf[0]) | ||
771 | } else { | ||
772 | _p0 = unsafe.Pointer(&_zero) | ||
773 | } | ||
774 | r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) | ||
775 | n = int(r0) | ||
776 | if e1 != 0 { | ||
777 | err = errnoErr(e1) | ||
778 | } | ||
779 | return | ||
780 | } | ||
781 | |||
782 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
783 | |||
784 | func Getrusage(who int, rusage *Rusage) (err error) { | ||
785 | _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) | ||
786 | if e1 != 0 { | ||
787 | err = errnoErr(e1) | ||
788 | } | ||
789 | return | ||
790 | } | ||
791 | |||
792 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
793 | |||
794 | func Getsid(pid int) (sid int, err error) { | ||
795 | r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) | ||
796 | sid = int(r0) | ||
797 | if e1 != 0 { | ||
798 | err = errnoErr(e1) | ||
799 | } | ||
800 | return | ||
801 | } | ||
802 | |||
803 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
804 | |||
805 | func Gettid() (tid int) { | ||
806 | r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) | ||
807 | tid = int(r0) | ||
808 | return | ||
809 | } | ||
810 | |||
811 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
812 | |||
813 | func Getxattr(path string, attr string, dest []byte) (sz int, err error) { | ||
814 | var _p0 *byte | ||
815 | _p0, err = BytePtrFromString(path) | ||
816 | if err != nil { | ||
817 | return | ||
818 | } | ||
819 | var _p1 *byte | ||
820 | _p1, err = BytePtrFromString(attr) | ||
821 | if err != nil { | ||
822 | return | ||
823 | } | ||
824 | var _p2 unsafe.Pointer | ||
825 | if len(dest) > 0 { | ||
826 | _p2 = unsafe.Pointer(&dest[0]) | ||
827 | } else { | ||
828 | _p2 = unsafe.Pointer(&_zero) | ||
829 | } | ||
830 | r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) | ||
831 | sz = int(r0) | ||
832 | if e1 != 0 { | ||
833 | err = errnoErr(e1) | ||
834 | } | ||
835 | return | ||
836 | } | ||
837 | |||
838 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
839 | |||
840 | func InitModule(moduleImage []byte, params string) (err error) { | ||
841 | var _p0 unsafe.Pointer | ||
842 | if len(moduleImage) > 0 { | ||
843 | _p0 = unsafe.Pointer(&moduleImage[0]) | ||
844 | } else { | ||
845 | _p0 = unsafe.Pointer(&_zero) | ||
846 | } | ||
847 | var _p1 *byte | ||
848 | _p1, err = BytePtrFromString(params) | ||
849 | if err != nil { | ||
850 | return | ||
851 | } | ||
852 | _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) | ||
853 | if e1 != 0 { | ||
854 | err = errnoErr(e1) | ||
855 | } | ||
856 | return | ||
857 | } | ||
858 | |||
859 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
860 | |||
861 | func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { | ||
862 | var _p0 *byte | ||
863 | _p0, err = BytePtrFromString(pathname) | ||
864 | if err != nil { | ||
865 | return | ||
866 | } | ||
867 | r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) | ||
868 | watchdesc = int(r0) | ||
869 | if e1 != 0 { | ||
870 | err = errnoErr(e1) | ||
871 | } | ||
872 | return | ||
873 | } | ||
874 | |||
875 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
876 | |||
877 | func InotifyInit1(flags int) (fd int, err error) { | ||
878 | r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) | ||
879 | fd = int(r0) | ||
880 | if e1 != 0 { | ||
881 | err = errnoErr(e1) | ||
882 | } | ||
883 | return | ||
884 | } | ||
885 | |||
886 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
887 | |||
888 | func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { | ||
889 | r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) | ||
890 | success = int(r0) | ||
891 | if e1 != 0 { | ||
892 | err = errnoErr(e1) | ||
893 | } | ||
894 | return | ||
895 | } | ||
896 | |||
897 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
898 | |||
899 | func Kill(pid int, sig syscall.Signal) (err error) { | ||
900 | _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) | ||
901 | if e1 != 0 { | ||
902 | err = errnoErr(e1) | ||
903 | } | ||
904 | return | ||
905 | } | ||
906 | |||
907 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
908 | |||
909 | func Klogctl(typ int, buf []byte) (n int, err error) { | ||
910 | var _p0 unsafe.Pointer | ||
911 | if len(buf) > 0 { | ||
912 | _p0 = unsafe.Pointer(&buf[0]) | ||
913 | } else { | ||
914 | _p0 = unsafe.Pointer(&_zero) | ||
915 | } | ||
916 | r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) | ||
917 | n = int(r0) | ||
918 | if e1 != 0 { | ||
919 | err = errnoErr(e1) | ||
920 | } | ||
921 | return | ||
922 | } | ||
923 | |||
924 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
925 | |||
926 | func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { | ||
927 | var _p0 *byte | ||
928 | _p0, err = BytePtrFromString(path) | ||
929 | if err != nil { | ||
930 | return | ||
931 | } | ||
932 | var _p1 *byte | ||
933 | _p1, err = BytePtrFromString(attr) | ||
934 | if err != nil { | ||
935 | return | ||
936 | } | ||
937 | var _p2 unsafe.Pointer | ||
938 | if len(dest) > 0 { | ||
939 | _p2 = unsafe.Pointer(&dest[0]) | ||
940 | } else { | ||
941 | _p2 = unsafe.Pointer(&_zero) | ||
942 | } | ||
943 | r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) | ||
944 | sz = int(r0) | ||
945 | if e1 != 0 { | ||
946 | err = errnoErr(e1) | ||
947 | } | ||
948 | return | ||
949 | } | ||
950 | |||
951 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
952 | |||
953 | func Listxattr(path string, dest []byte) (sz int, err error) { | ||
954 | var _p0 *byte | ||
955 | _p0, err = BytePtrFromString(path) | ||
956 | if err != nil { | ||
957 | return | ||
958 | } | ||
959 | var _p1 unsafe.Pointer | ||
960 | if len(dest) > 0 { | ||
961 | _p1 = unsafe.Pointer(&dest[0]) | ||
962 | } else { | ||
963 | _p1 = unsafe.Pointer(&_zero) | ||
964 | } | ||
965 | r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) | ||
966 | sz = int(r0) | ||
967 | if e1 != 0 { | ||
968 | err = errnoErr(e1) | ||
969 | } | ||
970 | return | ||
971 | } | ||
972 | |||
973 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
974 | |||
975 | func Llistxattr(path string, dest []byte) (sz int, err error) { | ||
976 | var _p0 *byte | ||
977 | _p0, err = BytePtrFromString(path) | ||
978 | if err != nil { | ||
979 | return | ||
980 | } | ||
981 | var _p1 unsafe.Pointer | ||
982 | if len(dest) > 0 { | ||
983 | _p1 = unsafe.Pointer(&dest[0]) | ||
984 | } else { | ||
985 | _p1 = unsafe.Pointer(&_zero) | ||
986 | } | ||
987 | r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) | ||
988 | sz = int(r0) | ||
989 | if e1 != 0 { | ||
990 | err = errnoErr(e1) | ||
991 | } | ||
992 | return | ||
993 | } | ||
994 | |||
995 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
996 | |||
997 | func Lremovexattr(path string, attr string) (err error) { | ||
998 | var _p0 *byte | ||
999 | _p0, err = BytePtrFromString(path) | ||
1000 | if err != nil { | ||
1001 | return | ||
1002 | } | ||
1003 | var _p1 *byte | ||
1004 | _p1, err = BytePtrFromString(attr) | ||
1005 | if err != nil { | ||
1006 | return | ||
1007 | } | ||
1008 | _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1009 | if e1 != 0 { | ||
1010 | err = errnoErr(e1) | ||
1011 | } | ||
1012 | return | ||
1013 | } | ||
1014 | |||
1015 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1016 | |||
1017 | func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { | ||
1018 | var _p0 *byte | ||
1019 | _p0, err = BytePtrFromString(path) | ||
1020 | if err != nil { | ||
1021 | return | ||
1022 | } | ||
1023 | var _p1 *byte | ||
1024 | _p1, err = BytePtrFromString(attr) | ||
1025 | if err != nil { | ||
1026 | return | ||
1027 | } | ||
1028 | var _p2 unsafe.Pointer | ||
1029 | if len(data) > 0 { | ||
1030 | _p2 = unsafe.Pointer(&data[0]) | ||
1031 | } else { | ||
1032 | _p2 = unsafe.Pointer(&_zero) | ||
1033 | } | ||
1034 | _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) | ||
1035 | if e1 != 0 { | ||
1036 | err = errnoErr(e1) | ||
1037 | } | ||
1038 | return | ||
1039 | } | ||
1040 | |||
1041 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1042 | |||
1043 | func MemfdCreate(name string, flags int) (fd int, err error) { | ||
1044 | var _p0 *byte | ||
1045 | _p0, err = BytePtrFromString(name) | ||
1046 | if err != nil { | ||
1047 | return | ||
1048 | } | ||
1049 | r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
1050 | fd = int(r0) | ||
1051 | if e1 != 0 { | ||
1052 | err = errnoErr(e1) | ||
1053 | } | ||
1054 | return | ||
1055 | } | ||
1056 | |||
1057 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1058 | |||
1059 | func Mkdirat(dirfd int, path string, mode uint32) (err error) { | ||
1060 | var _p0 *byte | ||
1061 | _p0, err = BytePtrFromString(path) | ||
1062 | if err != nil { | ||
1063 | return | ||
1064 | } | ||
1065 | _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) | ||
1066 | if e1 != 0 { | ||
1067 | err = errnoErr(e1) | ||
1068 | } | ||
1069 | return | ||
1070 | } | ||
1071 | |||
1072 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1073 | |||
1074 | func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { | ||
1075 | var _p0 *byte | ||
1076 | _p0, err = BytePtrFromString(path) | ||
1077 | if err != nil { | ||
1078 | return | ||
1079 | } | ||
1080 | _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) | ||
1081 | if e1 != 0 { | ||
1082 | err = errnoErr(e1) | ||
1083 | } | ||
1084 | return | ||
1085 | } | ||
1086 | |||
1087 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1088 | |||
1089 | func Nanosleep(time *Timespec, leftover *Timespec) (err error) { | ||
1090 | _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) | ||
1091 | if e1 != 0 { | ||
1092 | err = errnoErr(e1) | ||
1093 | } | ||
1094 | return | ||
1095 | } | ||
1096 | |||
1097 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1098 | |||
1099 | func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { | ||
1100 | r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) | ||
1101 | fd = int(r0) | ||
1102 | if e1 != 0 { | ||
1103 | err = errnoErr(e1) | ||
1104 | } | ||
1105 | return | ||
1106 | } | ||
1107 | |||
1108 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1109 | |||
1110 | func PivotRoot(newroot string, putold string) (err error) { | ||
1111 | var _p0 *byte | ||
1112 | _p0, err = BytePtrFromString(newroot) | ||
1113 | if err != nil { | ||
1114 | return | ||
1115 | } | ||
1116 | var _p1 *byte | ||
1117 | _p1, err = BytePtrFromString(putold) | ||
1118 | if err != nil { | ||
1119 | return | ||
1120 | } | ||
1121 | _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1122 | if e1 != 0 { | ||
1123 | err = errnoErr(e1) | ||
1124 | } | ||
1125 | return | ||
1126 | } | ||
1127 | |||
1128 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1129 | |||
1130 | func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { | ||
1131 | _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) | ||
1132 | if e1 != 0 { | ||
1133 | err = errnoErr(e1) | ||
1134 | } | ||
1135 | return | ||
1136 | } | ||
1137 | |||
1138 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1139 | |||
1140 | func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { | ||
1141 | _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) | ||
1142 | if e1 != 0 { | ||
1143 | err = errnoErr(e1) | ||
1144 | } | ||
1145 | return | ||
1146 | } | ||
1147 | |||
1148 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1149 | |||
1150 | func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | ||
1151 | r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) | ||
1152 | n = int(r0) | ||
1153 | if e1 != 0 { | ||
1154 | err = errnoErr(e1) | ||
1155 | } | ||
1156 | return | ||
1157 | } | ||
1158 | |||
1159 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1160 | |||
1161 | func read(fd int, p []byte) (n int, err error) { | ||
1162 | var _p0 unsafe.Pointer | ||
1163 | if len(p) > 0 { | ||
1164 | _p0 = unsafe.Pointer(&p[0]) | ||
1165 | } else { | ||
1166 | _p0 = unsafe.Pointer(&_zero) | ||
1167 | } | ||
1168 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1169 | n = int(r0) | ||
1170 | if e1 != 0 { | ||
1171 | err = errnoErr(e1) | ||
1172 | } | ||
1173 | return | ||
1174 | } | ||
1175 | |||
1176 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1177 | |||
1178 | func Removexattr(path string, attr string) (err error) { | ||
1179 | var _p0 *byte | ||
1180 | _p0, err = BytePtrFromString(path) | ||
1181 | if err != nil { | ||
1182 | return | ||
1183 | } | ||
1184 | var _p1 *byte | ||
1185 | _p1, err = BytePtrFromString(attr) | ||
1186 | if err != nil { | ||
1187 | return | ||
1188 | } | ||
1189 | _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1190 | if e1 != 0 { | ||
1191 | err = errnoErr(e1) | ||
1192 | } | ||
1193 | return | ||
1194 | } | ||
1195 | |||
1196 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1197 | |||
1198 | func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { | ||
1199 | var _p0 *byte | ||
1200 | _p0, err = BytePtrFromString(oldpath) | ||
1201 | if err != nil { | ||
1202 | return | ||
1203 | } | ||
1204 | var _p1 *byte | ||
1205 | _p1, err = BytePtrFromString(newpath) | ||
1206 | if err != nil { | ||
1207 | return | ||
1208 | } | ||
1209 | _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) | ||
1210 | if e1 != 0 { | ||
1211 | err = errnoErr(e1) | ||
1212 | } | ||
1213 | return | ||
1214 | } | ||
1215 | |||
1216 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1217 | |||
1218 | func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { | ||
1219 | var _p0 *byte | ||
1220 | _p0, err = BytePtrFromString(oldpath) | ||
1221 | if err != nil { | ||
1222 | return | ||
1223 | } | ||
1224 | var _p1 *byte | ||
1225 | _p1, err = BytePtrFromString(newpath) | ||
1226 | if err != nil { | ||
1227 | return | ||
1228 | } | ||
1229 | _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) | ||
1230 | if e1 != 0 { | ||
1231 | err = errnoErr(e1) | ||
1232 | } | ||
1233 | return | ||
1234 | } | ||
1235 | |||
1236 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1237 | |||
1238 | func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { | ||
1239 | var _p0 *byte | ||
1240 | _p0, err = BytePtrFromString(keyType) | ||
1241 | if err != nil { | ||
1242 | return | ||
1243 | } | ||
1244 | var _p1 *byte | ||
1245 | _p1, err = BytePtrFromString(description) | ||
1246 | if err != nil { | ||
1247 | return | ||
1248 | } | ||
1249 | var _p2 *byte | ||
1250 | _p2, err = BytePtrFromString(callback) | ||
1251 | if err != nil { | ||
1252 | return | ||
1253 | } | ||
1254 | r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) | ||
1255 | id = int(r0) | ||
1256 | if e1 != 0 { | ||
1257 | err = errnoErr(e1) | ||
1258 | } | ||
1259 | return | ||
1260 | } | ||
1261 | |||
1262 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1263 | |||
1264 | func Setdomainname(p []byte) (err error) { | ||
1265 | var _p0 unsafe.Pointer | ||
1266 | if len(p) > 0 { | ||
1267 | _p0 = unsafe.Pointer(&p[0]) | ||
1268 | } else { | ||
1269 | _p0 = unsafe.Pointer(&_zero) | ||
1270 | } | ||
1271 | _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) | ||
1272 | if e1 != 0 { | ||
1273 | err = errnoErr(e1) | ||
1274 | } | ||
1275 | return | ||
1276 | } | ||
1277 | |||
1278 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1279 | |||
1280 | func Sethostname(p []byte) (err error) { | ||
1281 | var _p0 unsafe.Pointer | ||
1282 | if len(p) > 0 { | ||
1283 | _p0 = unsafe.Pointer(&p[0]) | ||
1284 | } else { | ||
1285 | _p0 = unsafe.Pointer(&_zero) | ||
1286 | } | ||
1287 | _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) | ||
1288 | if e1 != 0 { | ||
1289 | err = errnoErr(e1) | ||
1290 | } | ||
1291 | return | ||
1292 | } | ||
1293 | |||
1294 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1295 | |||
1296 | func Setpgid(pid int, pgid int) (err error) { | ||
1297 | _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) | ||
1298 | if e1 != 0 { | ||
1299 | err = errnoErr(e1) | ||
1300 | } | ||
1301 | return | ||
1302 | } | ||
1303 | |||
1304 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1305 | |||
1306 | func Setsid() (pid int, err error) { | ||
1307 | r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) | ||
1308 | pid = int(r0) | ||
1309 | if e1 != 0 { | ||
1310 | err = errnoErr(e1) | ||
1311 | } | ||
1312 | return | ||
1313 | } | ||
1314 | |||
1315 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1316 | |||
1317 | func Settimeofday(tv *Timeval) (err error) { | ||
1318 | _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) | ||
1319 | if e1 != 0 { | ||
1320 | err = errnoErr(e1) | ||
1321 | } | ||
1322 | return | ||
1323 | } | ||
1324 | |||
1325 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1326 | |||
1327 | func Setns(fd int, nstype int) (err error) { | ||
1328 | _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) | ||
1329 | if e1 != 0 { | ||
1330 | err = errnoErr(e1) | ||
1331 | } | ||
1332 | return | ||
1333 | } | ||
1334 | |||
1335 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1336 | |||
1337 | func Setpriority(which int, who int, prio int) (err error) { | ||
1338 | _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) | ||
1339 | if e1 != 0 { | ||
1340 | err = errnoErr(e1) | ||
1341 | } | ||
1342 | return | ||
1343 | } | ||
1344 | |||
1345 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1346 | |||
1347 | func Setxattr(path string, attr string, data []byte, flags int) (err error) { | ||
1348 | var _p0 *byte | ||
1349 | _p0, err = BytePtrFromString(path) | ||
1350 | if err != nil { | ||
1351 | return | ||
1352 | } | ||
1353 | var _p1 *byte | ||
1354 | _p1, err = BytePtrFromString(attr) | ||
1355 | if err != nil { | ||
1356 | return | ||
1357 | } | ||
1358 | var _p2 unsafe.Pointer | ||
1359 | if len(data) > 0 { | ||
1360 | _p2 = unsafe.Pointer(&data[0]) | ||
1361 | } else { | ||
1362 | _p2 = unsafe.Pointer(&_zero) | ||
1363 | } | ||
1364 | _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) | ||
1365 | if e1 != 0 { | ||
1366 | err = errnoErr(e1) | ||
1367 | } | ||
1368 | return | ||
1369 | } | ||
1370 | |||
1371 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1372 | |||
1373 | func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { | ||
1374 | var _p0 *byte | ||
1375 | _p0, err = BytePtrFromString(path) | ||
1376 | if err != nil { | ||
1377 | return | ||
1378 | } | ||
1379 | _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) | ||
1380 | if e1 != 0 { | ||
1381 | err = errnoErr(e1) | ||
1382 | } | ||
1383 | return | ||
1384 | } | ||
1385 | |||
1386 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1387 | |||
1388 | func Sync() { | ||
1389 | SyscallNoError(SYS_SYNC, 0, 0, 0) | ||
1390 | return | ||
1391 | } | ||
1392 | |||
1393 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1394 | |||
1395 | func Syncfs(fd int) (err error) { | ||
1396 | _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) | ||
1397 | if e1 != 0 { | ||
1398 | err = errnoErr(e1) | ||
1399 | } | ||
1400 | return | ||
1401 | } | ||
1402 | |||
1403 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1404 | |||
1405 | func Sysinfo(info *Sysinfo_t) (err error) { | ||
1406 | _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) | ||
1407 | if e1 != 0 { | ||
1408 | err = errnoErr(e1) | ||
1409 | } | ||
1410 | return | ||
1411 | } | ||
1412 | |||
1413 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1414 | |||
1415 | func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { | ||
1416 | r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) | ||
1417 | n = int64(int64(r1)<<32 | int64(r0)) | ||
1418 | if e1 != 0 { | ||
1419 | err = errnoErr(e1) | ||
1420 | } | ||
1421 | return | ||
1422 | } | ||
1423 | |||
1424 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1425 | |||
1426 | func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { | ||
1427 | _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) | ||
1428 | if e1 != 0 { | ||
1429 | err = errnoErr(e1) | ||
1430 | } | ||
1431 | return | ||
1432 | } | ||
1433 | |||
1434 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1435 | |||
1436 | func Times(tms *Tms) (ticks uintptr, err error) { | ||
1437 | r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) | ||
1438 | ticks = uintptr(r0) | ||
1439 | if e1 != 0 { | ||
1440 | err = errnoErr(e1) | ||
1441 | } | ||
1442 | return | ||
1443 | } | ||
1444 | |||
1445 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1446 | |||
1447 | func Umask(mask int) (oldmask int) { | ||
1448 | r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) | ||
1449 | oldmask = int(r0) | ||
1450 | return | ||
1451 | } | ||
1452 | |||
1453 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1454 | |||
1455 | func Uname(buf *Utsname) (err error) { | ||
1456 | _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) | ||
1457 | if e1 != 0 { | ||
1458 | err = errnoErr(e1) | ||
1459 | } | ||
1460 | return | ||
1461 | } | ||
1462 | |||
1463 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1464 | |||
1465 | func Unmount(target string, flags int) (err error) { | ||
1466 | var _p0 *byte | ||
1467 | _p0, err = BytePtrFromString(target) | ||
1468 | if err != nil { | ||
1469 | return | ||
1470 | } | ||
1471 | _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
1472 | if e1 != 0 { | ||
1473 | err = errnoErr(e1) | ||
1474 | } | ||
1475 | return | ||
1476 | } | ||
1477 | |||
1478 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1479 | |||
1480 | func Unshare(flags int) (err error) { | ||
1481 | _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) | ||
1482 | if e1 != 0 { | ||
1483 | err = errnoErr(e1) | ||
1484 | } | ||
1485 | return | ||
1486 | } | ||
1487 | |||
1488 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1489 | |||
1490 | func write(fd int, p []byte) (n int, err error) { | ||
1491 | var _p0 unsafe.Pointer | ||
1492 | if len(p) > 0 { | ||
1493 | _p0 = unsafe.Pointer(&p[0]) | ||
1494 | } else { | ||
1495 | _p0 = unsafe.Pointer(&_zero) | ||
1496 | } | ||
1497 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1498 | n = int(r0) | ||
1499 | if e1 != 0 { | ||
1500 | err = errnoErr(e1) | ||
1501 | } | ||
1502 | return | ||
1503 | } | ||
1504 | |||
1505 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1506 | |||
1507 | func exitThread(code int) (err error) { | ||
1508 | _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) | ||
1509 | if e1 != 0 { | ||
1510 | err = errnoErr(e1) | ||
1511 | } | ||
1512 | return | ||
1513 | } | ||
1514 | |||
1515 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1516 | |||
1517 | func readlen(fd int, p *byte, np int) (n int, err error) { | ||
1518 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) | ||
1519 | n = int(r0) | ||
1520 | if e1 != 0 { | ||
1521 | err = errnoErr(e1) | ||
1522 | } | ||
1523 | return | ||
1524 | } | ||
1525 | |||
1526 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1527 | |||
1528 | func writelen(fd int, p *byte, np int) (n int, err error) { | ||
1529 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) | ||
1530 | n = int(r0) | ||
1531 | if e1 != 0 { | ||
1532 | err = errnoErr(e1) | ||
1533 | } | ||
1534 | return | ||
1535 | } | ||
1536 | |||
1537 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1538 | |||
1539 | func munmap(addr uintptr, length uintptr) (err error) { | ||
1540 | _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) | ||
1541 | if e1 != 0 { | ||
1542 | err = errnoErr(e1) | ||
1543 | } | ||
1544 | return | ||
1545 | } | ||
1546 | |||
1547 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1548 | |||
1549 | func Madvise(b []byte, advice int) (err error) { | ||
1550 | var _p0 unsafe.Pointer | ||
1551 | if len(b) > 0 { | ||
1552 | _p0 = unsafe.Pointer(&b[0]) | ||
1553 | } else { | ||
1554 | _p0 = unsafe.Pointer(&_zero) | ||
1555 | } | ||
1556 | _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) | ||
1557 | if e1 != 0 { | ||
1558 | err = errnoErr(e1) | ||
1559 | } | ||
1560 | return | ||
1561 | } | ||
1562 | |||
1563 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1564 | |||
1565 | func Mprotect(b []byte, prot int) (err error) { | ||
1566 | var _p0 unsafe.Pointer | ||
1567 | if len(b) > 0 { | ||
1568 | _p0 = unsafe.Pointer(&b[0]) | ||
1569 | } else { | ||
1570 | _p0 = unsafe.Pointer(&_zero) | ||
1571 | } | ||
1572 | _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) | ||
1573 | if e1 != 0 { | ||
1574 | err = errnoErr(e1) | ||
1575 | } | ||
1576 | return | ||
1577 | } | ||
1578 | |||
1579 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1580 | |||
1581 | func Mlock(b []byte) (err error) { | ||
1582 | var _p0 unsafe.Pointer | ||
1583 | if len(b) > 0 { | ||
1584 | _p0 = unsafe.Pointer(&b[0]) | ||
1585 | } else { | ||
1586 | _p0 = unsafe.Pointer(&_zero) | ||
1587 | } | ||
1588 | _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) | ||
1589 | if e1 != 0 { | ||
1590 | err = errnoErr(e1) | ||
1591 | } | ||
1592 | return | ||
1593 | } | ||
1594 | |||
1595 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1596 | |||
1597 | func Mlockall(flags int) (err error) { | ||
1598 | _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) | ||
1599 | if e1 != 0 { | ||
1600 | err = errnoErr(e1) | ||
1601 | } | ||
1602 | return | ||
1603 | } | ||
1604 | |||
1605 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1606 | |||
1607 | func Msync(b []byte, flags int) (err error) { | ||
1608 | var _p0 unsafe.Pointer | ||
1609 | if len(b) > 0 { | ||
1610 | _p0 = unsafe.Pointer(&b[0]) | ||
1611 | } else { | ||
1612 | _p0 = unsafe.Pointer(&_zero) | ||
1613 | } | ||
1614 | _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) | ||
1615 | if e1 != 0 { | ||
1616 | err = errnoErr(e1) | ||
1617 | } | ||
1618 | return | ||
1619 | } | ||
1620 | |||
1621 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1622 | |||
1623 | func Munlock(b []byte) (err error) { | ||
1624 | var _p0 unsafe.Pointer | ||
1625 | if len(b) > 0 { | ||
1626 | _p0 = unsafe.Pointer(&b[0]) | ||
1627 | } else { | ||
1628 | _p0 = unsafe.Pointer(&_zero) | ||
1629 | } | ||
1630 | _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) | ||
1631 | if e1 != 0 { | ||
1632 | err = errnoErr(e1) | ||
1633 | } | ||
1634 | return | ||
1635 | } | ||
1636 | |||
1637 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1638 | |||
1639 | func Munlockall() (err error) { | ||
1640 | _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) | ||
1641 | if e1 != 0 { | ||
1642 | err = errnoErr(e1) | ||
1643 | } | ||
1644 | return | ||
1645 | } | ||
1646 | |||
1647 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1648 | |||
1649 | func faccessat(dirfd int, path string, mode uint32) (err error) { | ||
1650 | var _p0 *byte | ||
1651 | _p0, err = BytePtrFromString(path) | ||
1652 | if err != nil { | ||
1653 | return | ||
1654 | } | ||
1655 | _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) | ||
1656 | if e1 != 0 { | ||
1657 | err = errnoErr(e1) | ||
1658 | } | ||
1659 | return | ||
1660 | } | ||
1661 | |||
1662 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1663 | |||
1664 | func pipe2(p *[2]_C_int, flags int) (err error) { | ||
1665 | _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) | ||
1666 | if e1 != 0 { | ||
1667 | err = errnoErr(e1) | ||
1668 | } | ||
1669 | return | ||
1670 | } | ||
1671 | |||
1672 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1673 | |||
1674 | func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { | ||
1675 | r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
1676 | fd = int(r0) | ||
1677 | if e1 != 0 { | ||
1678 | err = errnoErr(e1) | ||
1679 | } | ||
1680 | return | ||
1681 | } | ||
1682 | |||
1683 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1684 | |||
1685 | func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { | ||
1686 | r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) | ||
1687 | fd = int(r0) | ||
1688 | if e1 != 0 { | ||
1689 | err = errnoErr(e1) | ||
1690 | } | ||
1691 | return | ||
1692 | } | ||
1693 | |||
1694 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1695 | |||
1696 | func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | ||
1697 | _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) | ||
1698 | if e1 != 0 { | ||
1699 | err = errnoErr(e1) | ||
1700 | } | ||
1701 | return | ||
1702 | } | ||
1703 | |||
1704 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1705 | |||
1706 | func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | ||
1707 | _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) | ||
1708 | if e1 != 0 { | ||
1709 | err = errnoErr(e1) | ||
1710 | } | ||
1711 | return | ||
1712 | } | ||
1713 | |||
1714 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1715 | |||
1716 | func getgroups(n int, list *_Gid_t) (nn int, err error) { | ||
1717 | r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) | ||
1718 | nn = int(r0) | ||
1719 | if e1 != 0 { | ||
1720 | err = errnoErr(e1) | ||
1721 | } | ||
1722 | return | ||
1723 | } | ||
1724 | |||
1725 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1726 | |||
1727 | func setgroups(n int, list *_Gid_t) (err error) { | ||
1728 | _, _, e1 := RawSyscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) | ||
1729 | if e1 != 0 { | ||
1730 | err = errnoErr(e1) | ||
1731 | } | ||
1732 | return | ||
1733 | } | ||
1734 | |||
1735 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1736 | |||
1737 | func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { | ||
1738 | _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) | ||
1739 | if e1 != 0 { | ||
1740 | err = errnoErr(e1) | ||
1741 | } | ||
1742 | return | ||
1743 | } | ||
1744 | |||
1745 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1746 | |||
1747 | func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { | ||
1748 | _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) | ||
1749 | if e1 != 0 { | ||
1750 | err = errnoErr(e1) | ||
1751 | } | ||
1752 | return | ||
1753 | } | ||
1754 | |||
1755 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1756 | |||
1757 | func socket(domain int, typ int, proto int) (fd int, err error) { | ||
1758 | r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) | ||
1759 | fd = int(r0) | ||
1760 | if e1 != 0 { | ||
1761 | err = errnoErr(e1) | ||
1762 | } | ||
1763 | return | ||
1764 | } | ||
1765 | |||
1766 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1767 | |||
1768 | func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | ||
1769 | _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
1770 | if e1 != 0 { | ||
1771 | err = errnoErr(e1) | ||
1772 | } | ||
1773 | return | ||
1774 | } | ||
1775 | |||
1776 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1777 | |||
1778 | func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | ||
1779 | _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
1780 | if e1 != 0 { | ||
1781 | err = errnoErr(e1) | ||
1782 | } | ||
1783 | return | ||
1784 | } | ||
1785 | |||
1786 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1787 | |||
1788 | func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { | ||
1789 | var _p0 unsafe.Pointer | ||
1790 | if len(p) > 0 { | ||
1791 | _p0 = unsafe.Pointer(&p[0]) | ||
1792 | } else { | ||
1793 | _p0 = unsafe.Pointer(&_zero) | ||
1794 | } | ||
1795 | r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) | ||
1796 | n = int(r0) | ||
1797 | if e1 != 0 { | ||
1798 | err = errnoErr(e1) | ||
1799 | } | ||
1800 | return | ||
1801 | } | ||
1802 | |||
1803 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1804 | |||
1805 | func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { | ||
1806 | var _p0 unsafe.Pointer | ||
1807 | if len(buf) > 0 { | ||
1808 | _p0 = unsafe.Pointer(&buf[0]) | ||
1809 | } else { | ||
1810 | _p0 = unsafe.Pointer(&_zero) | ||
1811 | } | ||
1812 | _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) | ||
1813 | if e1 != 0 { | ||
1814 | err = errnoErr(e1) | ||
1815 | } | ||
1816 | return | ||
1817 | } | ||
1818 | |||
1819 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1820 | |||
1821 | func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) { | ||
1822 | _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0) | ||
1823 | if e1 != 0 { | ||
1824 | err = errnoErr(e1) | ||
1825 | } | ||
1826 | return | ||
1827 | } | ||
1828 | |||
1829 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1830 | |||
1831 | func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { | ||
1832 | r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | ||
1833 | n = int(r0) | ||
1834 | if e1 != 0 { | ||
1835 | err = errnoErr(e1) | ||
1836 | } | ||
1837 | return | ||
1838 | } | ||
1839 | |||
1840 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1841 | |||
1842 | func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { | ||
1843 | r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | ||
1844 | n = int(r0) | ||
1845 | if e1 != 0 { | ||
1846 | err = errnoErr(e1) | ||
1847 | } | ||
1848 | return | ||
1849 | } | ||
1850 | |||
1851 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1852 | |||
1853 | func Dup2(oldfd int, newfd int) (err error) { | ||
1854 | _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) | ||
1855 | if e1 != 0 { | ||
1856 | err = errnoErr(e1) | ||
1857 | } | ||
1858 | return | ||
1859 | } | ||
1860 | |||
1861 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1862 | |||
1863 | func EpollCreate(size int) (fd int, err error) { | ||
1864 | r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) | ||
1865 | fd = int(r0) | ||
1866 | if e1 != 0 { | ||
1867 | err = errnoErr(e1) | ||
1868 | } | ||
1869 | return | ||
1870 | } | ||
1871 | |||
1872 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1873 | |||
1874 | func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { | ||
1875 | var _p0 unsafe.Pointer | ||
1876 | if len(events) > 0 { | ||
1877 | _p0 = unsafe.Pointer(&events[0]) | ||
1878 | } else { | ||
1879 | _p0 = unsafe.Pointer(&_zero) | ||
1880 | } | ||
1881 | r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) | ||
1882 | n = int(r0) | ||
1883 | if e1 != 0 { | ||
1884 | err = errnoErr(e1) | ||
1885 | } | ||
1886 | return | ||
1887 | } | ||
1888 | |||
1889 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1890 | |||
1891 | func Fchown(fd int, uid int, gid int) (err error) { | ||
1892 | _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid)) | ||
1893 | if e1 != 0 { | ||
1894 | err = errnoErr(e1) | ||
1895 | } | ||
1896 | return | ||
1897 | } | ||
1898 | |||
1899 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1900 | |||
1901 | func Fstat(fd int, stat *Stat_t) (err error) { | ||
1902 | _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | ||
1903 | if e1 != 0 { | ||
1904 | err = errnoErr(e1) | ||
1905 | } | ||
1906 | return | ||
1907 | } | ||
1908 | |||
1909 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1910 | |||
1911 | func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { | ||
1912 | var _p0 *byte | ||
1913 | _p0, err = BytePtrFromString(path) | ||
1914 | if err != nil { | ||
1915 | return | ||
1916 | } | ||
1917 | _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) | ||
1918 | if e1 != 0 { | ||
1919 | err = errnoErr(e1) | ||
1920 | } | ||
1921 | return | ||
1922 | } | ||
1923 | |||
1924 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1925 | |||
1926 | func Getegid() (egid int) { | ||
1927 | r0, _ := RawSyscallNoError(SYS_GETEGID32, 0, 0, 0) | ||
1928 | egid = int(r0) | ||
1929 | return | ||
1930 | } | ||
1931 | |||
1932 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1933 | |||
1934 | func Geteuid() (euid int) { | ||
1935 | r0, _ := RawSyscallNoError(SYS_GETEUID32, 0, 0, 0) | ||
1936 | euid = int(r0) | ||
1937 | return | ||
1938 | } | ||
1939 | |||
1940 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1941 | |||
1942 | func Getgid() (gid int) { | ||
1943 | r0, _ := RawSyscallNoError(SYS_GETGID32, 0, 0, 0) | ||
1944 | gid = int(r0) | ||
1945 | return | ||
1946 | } | ||
1947 | |||
1948 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1949 | |||
1950 | func Getuid() (uid int) { | ||
1951 | r0, _ := RawSyscallNoError(SYS_GETUID32, 0, 0, 0) | ||
1952 | uid = int(r0) | ||
1953 | return | ||
1954 | } | ||
1955 | |||
1956 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1957 | |||
1958 | func InotifyInit() (fd int, err error) { | ||
1959 | r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) | ||
1960 | fd = int(r0) | ||
1961 | if e1 != 0 { | ||
1962 | err = errnoErr(e1) | ||
1963 | } | ||
1964 | return | ||
1965 | } | ||
1966 | |||
1967 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1968 | |||
1969 | func Lchown(path string, uid int, gid int) (err error) { | ||
1970 | var _p0 *byte | ||
1971 | _p0, err = BytePtrFromString(path) | ||
1972 | if err != nil { | ||
1973 | return | ||
1974 | } | ||
1975 | _, _, e1 := Syscall(SYS_LCHOWN32, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | ||
1976 | if e1 != 0 { | ||
1977 | err = errnoErr(e1) | ||
1978 | } | ||
1979 | return | ||
1980 | } | ||
1981 | |||
1982 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1983 | |||
1984 | func Listen(s int, n int) (err error) { | ||
1985 | _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) | ||
1986 | if e1 != 0 { | ||
1987 | err = errnoErr(e1) | ||
1988 | } | ||
1989 | return | ||
1990 | } | ||
1991 | |||
1992 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1993 | |||
1994 | func Lstat(path string, stat *Stat_t) (err error) { | ||
1995 | var _p0 *byte | ||
1996 | _p0, err = BytePtrFromString(path) | ||
1997 | if err != nil { | ||
1998 | return | ||
1999 | } | ||
2000 | _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
2001 | if e1 != 0 { | ||
2002 | err = errnoErr(e1) | ||
2003 | } | ||
2004 | return | ||
2005 | } | ||
2006 | |||
2007 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2008 | |||
2009 | func Pause() (err error) { | ||
2010 | _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) | ||
2011 | if e1 != 0 { | ||
2012 | err = errnoErr(e1) | ||
2013 | } | ||
2014 | return | ||
2015 | } | ||
2016 | |||
2017 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2018 | |||
2019 | func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { | ||
2020 | r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) | ||
2021 | written = int(r0) | ||
2022 | if e1 != 0 { | ||
2023 | err = errnoErr(e1) | ||
2024 | } | ||
2025 | return | ||
2026 | } | ||
2027 | |||
2028 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2029 | |||
2030 | func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { | ||
2031 | r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | ||
2032 | n = int(r0) | ||
2033 | if e1 != 0 { | ||
2034 | err = errnoErr(e1) | ||
2035 | } | ||
2036 | return | ||
2037 | } | ||
2038 | |||
2039 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2040 | |||
2041 | func Setfsgid(gid int) (err error) { | ||
2042 | _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) | ||
2043 | if e1 != 0 { | ||
2044 | err = errnoErr(e1) | ||
2045 | } | ||
2046 | return | ||
2047 | } | ||
2048 | |||
2049 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2050 | |||
2051 | func Setfsuid(uid int) (err error) { | ||
2052 | _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) | ||
2053 | if e1 != 0 { | ||
2054 | err = errnoErr(e1) | ||
2055 | } | ||
2056 | return | ||
2057 | } | ||
2058 | |||
2059 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2060 | |||
2061 | func Setregid(rgid int, egid int) (err error) { | ||
2062 | _, _, e1 := RawSyscall(SYS_SETREGID32, uintptr(rgid), uintptr(egid), 0) | ||
2063 | if e1 != 0 { | ||
2064 | err = errnoErr(e1) | ||
2065 | } | ||
2066 | return | ||
2067 | } | ||
2068 | |||
2069 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2070 | |||
2071 | func Setresgid(rgid int, egid int, sgid int) (err error) { | ||
2072 | _, _, e1 := RawSyscall(SYS_SETRESGID32, uintptr(rgid), uintptr(egid), uintptr(sgid)) | ||
2073 | if e1 != 0 { | ||
2074 | err = errnoErr(e1) | ||
2075 | } | ||
2076 | return | ||
2077 | } | ||
2078 | |||
2079 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2080 | |||
2081 | func Setresuid(ruid int, euid int, suid int) (err error) { | ||
2082 | _, _, e1 := RawSyscall(SYS_SETRESUID32, uintptr(ruid), uintptr(euid), uintptr(suid)) | ||
2083 | if e1 != 0 { | ||
2084 | err = errnoErr(e1) | ||
2085 | } | ||
2086 | return | ||
2087 | } | ||
2088 | |||
2089 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2090 | |||
2091 | func Setreuid(ruid int, euid int) (err error) { | ||
2092 | _, _, e1 := RawSyscall(SYS_SETREUID32, uintptr(ruid), uintptr(euid), 0) | ||
2093 | if e1 != 0 { | ||
2094 | err = errnoErr(e1) | ||
2095 | } | ||
2096 | return | ||
2097 | } | ||
2098 | |||
2099 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2100 | |||
2101 | func Shutdown(fd int, how int) (err error) { | ||
2102 | _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) | ||
2103 | if e1 != 0 { | ||
2104 | err = errnoErr(e1) | ||
2105 | } | ||
2106 | return | ||
2107 | } | ||
2108 | |||
2109 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2110 | |||
2111 | func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { | ||
2112 | r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) | ||
2113 | n = int(r0) | ||
2114 | if e1 != 0 { | ||
2115 | err = errnoErr(e1) | ||
2116 | } | ||
2117 | return | ||
2118 | } | ||
2119 | |||
2120 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2121 | |||
2122 | func Stat(path string, stat *Stat_t) (err error) { | ||
2123 | var _p0 *byte | ||
2124 | _p0, err = BytePtrFromString(path) | ||
2125 | if err != nil { | ||
2126 | return | ||
2127 | } | ||
2128 | _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
2129 | if e1 != 0 { | ||
2130 | err = errnoErr(e1) | ||
2131 | } | ||
2132 | return | ||
2133 | } | ||
2134 | |||
2135 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2136 | |||
2137 | func Ustat(dev int, ubuf *Ustat_t) (err error) { | ||
2138 | _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) | ||
2139 | if e1 != 0 { | ||
2140 | err = errnoErr(e1) | ||
2141 | } | ||
2142 | return | ||
2143 | } | ||
2144 | |||
2145 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2146 | |||
2147 | func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { | ||
2148 | var _p0 *byte | ||
2149 | _p0, err = BytePtrFromString(path) | ||
2150 | if err != nil { | ||
2151 | return | ||
2152 | } | ||
2153 | _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) | ||
2154 | if e1 != 0 { | ||
2155 | err = errnoErr(e1) | ||
2156 | } | ||
2157 | return | ||
2158 | } | ||
2159 | |||
2160 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2161 | |||
2162 | func Gettimeofday(tv *Timeval) (err error) { | ||
2163 | _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) | ||
2164 | if e1 != 0 { | ||
2165 | err = errnoErr(e1) | ||
2166 | } | ||
2167 | return | ||
2168 | } | ||
2169 | |||
2170 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2171 | |||
2172 | func utimes(path string, times *[2]Timeval) (err error) { | ||
2173 | var _p0 *byte | ||
2174 | _p0, err = BytePtrFromString(path) | ||
2175 | if err != nil { | ||
2176 | return | ||
2177 | } | ||
2178 | _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) | ||
2179 | if e1 != 0 { | ||
2180 | err = errnoErr(e1) | ||
2181 | } | ||
2182 | return | ||
2183 | } | ||
2184 | |||
2185 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2186 | |||
2187 | func Pread(fd int, p []byte, offset int64) (n int, err error) { | ||
2188 | var _p0 unsafe.Pointer | ||
2189 | if len(p) > 0 { | ||
2190 | _p0 = unsafe.Pointer(&p[0]) | ||
2191 | } else { | ||
2192 | _p0 = unsafe.Pointer(&_zero) | ||
2193 | } | ||
2194 | r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) | ||
2195 | n = int(r0) | ||
2196 | if e1 != 0 { | ||
2197 | err = errnoErr(e1) | ||
2198 | } | ||
2199 | return | ||
2200 | } | ||
2201 | |||
2202 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2203 | |||
2204 | func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | ||
2205 | var _p0 unsafe.Pointer | ||
2206 | if len(p) > 0 { | ||
2207 | _p0 = unsafe.Pointer(&p[0]) | ||
2208 | } else { | ||
2209 | _p0 = unsafe.Pointer(&_zero) | ||
2210 | } | ||
2211 | r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) | ||
2212 | n = int(r0) | ||
2213 | if e1 != 0 { | ||
2214 | err = errnoErr(e1) | ||
2215 | } | ||
2216 | return | ||
2217 | } | ||
2218 | |||
2219 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2220 | |||
2221 | func Truncate(path string, length int64) (err error) { | ||
2222 | var _p0 *byte | ||
2223 | _p0, err = BytePtrFromString(path) | ||
2224 | if err != nil { | ||
2225 | return | ||
2226 | } | ||
2227 | _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) | ||
2228 | if e1 != 0 { | ||
2229 | err = errnoErr(e1) | ||
2230 | } | ||
2231 | return | ||
2232 | } | ||
2233 | |||
2234 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2235 | |||
2236 | func Ftruncate(fd int, length int64) (err error) { | ||
2237 | _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) | ||
2238 | if e1 != 0 { | ||
2239 | err = errnoErr(e1) | ||
2240 | } | ||
2241 | return | ||
2242 | } | ||
2243 | |||
2244 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2245 | |||
2246 | func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { | ||
2247 | r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) | ||
2248 | xaddr = uintptr(r0) | ||
2249 | if e1 != 0 { | ||
2250 | err = errnoErr(e1) | ||
2251 | } | ||
2252 | return | ||
2253 | } | ||
2254 | |||
2255 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2256 | |||
2257 | func getrlimit(resource int, rlim *rlimit32) (err error) { | ||
2258 | _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) | ||
2259 | if e1 != 0 { | ||
2260 | err = errnoErr(e1) | ||
2261 | } | ||
2262 | return | ||
2263 | } | ||
2264 | |||
2265 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2266 | |||
2267 | func setrlimit(resource int, rlim *rlimit32) (err error) { | ||
2268 | _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) | ||
2269 | if e1 != 0 { | ||
2270 | err = errnoErr(e1) | ||
2271 | } | ||
2272 | return | ||
2273 | } | ||
2274 | |||
2275 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2276 | |||
2277 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | ||
2278 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | ||
2279 | n = int(r0) | ||
2280 | if e1 != 0 { | ||
2281 | err = errnoErr(e1) | ||
2282 | } | ||
2283 | return | ||
2284 | } | ||