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_sparc64.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_sparc64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go | 2172 |
1 files changed, 2172 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go new file mode 100644 index 0000000..b26aee9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go | |||
@@ -0,0 +1,2172 @@ | |||
1 | // mksyscall.pl -tags linux,sparc64 syscall_linux.go syscall_linux_sparc64.go | ||
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | ||
3 | |||
4 | // +build linux,sparc64 | ||
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 ClockGettime(clockid int32, time *Timespec) (err error) { | ||
421 | _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 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 Close(fd int) (err error) { | ||
431 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 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 CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { | ||
441 | r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) | ||
442 | n = int(r0) | ||
443 | if e1 != 0 { | ||
444 | err = errnoErr(e1) | ||
445 | } | ||
446 | return | ||
447 | } | ||
448 | |||
449 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
450 | |||
451 | func Dup(oldfd int) (fd int, err error) { | ||
452 | r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) | ||
453 | fd = int(r0) | ||
454 | if e1 != 0 { | ||
455 | err = errnoErr(e1) | ||
456 | } | ||
457 | return | ||
458 | } | ||
459 | |||
460 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
461 | |||
462 | func Dup3(oldfd int, newfd int, flags int) (err error) { | ||
463 | _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) | ||
464 | if e1 != 0 { | ||
465 | err = errnoErr(e1) | ||
466 | } | ||
467 | return | ||
468 | } | ||
469 | |||
470 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
471 | |||
472 | func EpollCreate1(flag int) (fd int, err error) { | ||
473 | r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) | ||
474 | fd = int(r0) | ||
475 | if e1 != 0 { | ||
476 | err = errnoErr(e1) | ||
477 | } | ||
478 | return | ||
479 | } | ||
480 | |||
481 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
482 | |||
483 | func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { | ||
484 | _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) | ||
485 | if e1 != 0 { | ||
486 | err = errnoErr(e1) | ||
487 | } | ||
488 | return | ||
489 | } | ||
490 | |||
491 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
492 | |||
493 | func Eventfd(initval uint, flags int) (fd int, err error) { | ||
494 | r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) | ||
495 | fd = int(r0) | ||
496 | if e1 != 0 { | ||
497 | err = errnoErr(e1) | ||
498 | } | ||
499 | return | ||
500 | } | ||
501 | |||
502 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
503 | |||
504 | func Exit(code int) { | ||
505 | SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) | ||
506 | return | ||
507 | } | ||
508 | |||
509 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
510 | |||
511 | func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { | ||
512 | var _p0 *byte | ||
513 | _p0, err = BytePtrFromString(path) | ||
514 | if err != nil { | ||
515 | return | ||
516 | } | ||
517 | _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) | ||
518 | if e1 != 0 { | ||
519 | err = errnoErr(e1) | ||
520 | } | ||
521 | return | ||
522 | } | ||
523 | |||
524 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
525 | |||
526 | func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { | ||
527 | _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) | ||
528 | if e1 != 0 { | ||
529 | err = errnoErr(e1) | ||
530 | } | ||
531 | return | ||
532 | } | ||
533 | |||
534 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
535 | |||
536 | func Fchdir(fd int) (err error) { | ||
537 | _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) | ||
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 Fchmod(fd int, mode uint32) (err error) { | ||
547 | _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { | ||
557 | var _p0 *byte | ||
558 | _p0, err = BytePtrFromString(path) | ||
559 | if err != nil { | ||
560 | return | ||
561 | } | ||
562 | _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) | ||
563 | if e1 != 0 { | ||
564 | err = errnoErr(e1) | ||
565 | } | ||
566 | return | ||
567 | } | ||
568 | |||
569 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
570 | |||
571 | func fcntl(fd int, cmd int, arg int) (val int, err error) { | ||
572 | r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) | ||
573 | val = int(r0) | ||
574 | if e1 != 0 { | ||
575 | err = errnoErr(e1) | ||
576 | } | ||
577 | return | ||
578 | } | ||
579 | |||
580 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
581 | |||
582 | func Fdatasync(fd int) (err error) { | ||
583 | _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) | ||
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 Flock(fd int, how int) (err error) { | ||
593 | _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 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 Fsync(fd int) (err error) { | ||
603 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) | ||
604 | if e1 != 0 { | ||
605 | err = errnoErr(e1) | ||
606 | } | ||
607 | return | ||
608 | } | ||
609 | |||
610 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
611 | |||
612 | func Getdents(fd int, buf []byte) (n int, err error) { | ||
613 | var _p0 unsafe.Pointer | ||
614 | if len(buf) > 0 { | ||
615 | _p0 = unsafe.Pointer(&buf[0]) | ||
616 | } else { | ||
617 | _p0 = unsafe.Pointer(&_zero) | ||
618 | } | ||
619 | r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) | ||
620 | n = int(r0) | ||
621 | if e1 != 0 { | ||
622 | err = errnoErr(e1) | ||
623 | } | ||
624 | return | ||
625 | } | ||
626 | |||
627 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
628 | |||
629 | func Getpgid(pid int) (pgid int, err error) { | ||
630 | r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) | ||
631 | pgid = int(r0) | ||
632 | if e1 != 0 { | ||
633 | err = errnoErr(e1) | ||
634 | } | ||
635 | return | ||
636 | } | ||
637 | |||
638 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
639 | |||
640 | func Getpid() (pid int) { | ||
641 | r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) | ||
642 | pid = int(r0) | ||
643 | return | ||
644 | } | ||
645 | |||
646 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
647 | |||
648 | func Getppid() (ppid int) { | ||
649 | r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) | ||
650 | ppid = int(r0) | ||
651 | return | ||
652 | } | ||
653 | |||
654 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
655 | |||
656 | func Getpriority(which int, who int) (prio int, err error) { | ||
657 | r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) | ||
658 | prio = int(r0) | ||
659 | if e1 != 0 { | ||
660 | err = errnoErr(e1) | ||
661 | } | ||
662 | return | ||
663 | } | ||
664 | |||
665 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
666 | |||
667 | func Getrandom(buf []byte, flags int) (n int, err error) { | ||
668 | var _p0 unsafe.Pointer | ||
669 | if len(buf) > 0 { | ||
670 | _p0 = unsafe.Pointer(&buf[0]) | ||
671 | } else { | ||
672 | _p0 = unsafe.Pointer(&_zero) | ||
673 | } | ||
674 | r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) | ||
675 | n = int(r0) | ||
676 | if e1 != 0 { | ||
677 | err = errnoErr(e1) | ||
678 | } | ||
679 | return | ||
680 | } | ||
681 | |||
682 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
683 | |||
684 | func Getrusage(who int, rusage *Rusage) (err error) { | ||
685 | _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) | ||
686 | if e1 != 0 { | ||
687 | err = errnoErr(e1) | ||
688 | } | ||
689 | return | ||
690 | } | ||
691 | |||
692 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
693 | |||
694 | func Getsid(pid int) (sid int, err error) { | ||
695 | r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) | ||
696 | sid = int(r0) | ||
697 | if e1 != 0 { | ||
698 | err = errnoErr(e1) | ||
699 | } | ||
700 | return | ||
701 | } | ||
702 | |||
703 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
704 | |||
705 | func Gettid() (tid int) { | ||
706 | r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) | ||
707 | tid = int(r0) | ||
708 | return | ||
709 | } | ||
710 | |||
711 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
712 | |||
713 | func Getxattr(path string, attr string, dest []byte) (sz int, err error) { | ||
714 | var _p0 *byte | ||
715 | _p0, err = BytePtrFromString(path) | ||
716 | if err != nil { | ||
717 | return | ||
718 | } | ||
719 | var _p1 *byte | ||
720 | _p1, err = BytePtrFromString(attr) | ||
721 | if err != nil { | ||
722 | return | ||
723 | } | ||
724 | var _p2 unsafe.Pointer | ||
725 | if len(dest) > 0 { | ||
726 | _p2 = unsafe.Pointer(&dest[0]) | ||
727 | } else { | ||
728 | _p2 = unsafe.Pointer(&_zero) | ||
729 | } | ||
730 | r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) | ||
731 | sz = 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 InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { | ||
741 | var _p0 *byte | ||
742 | _p0, err = BytePtrFromString(pathname) | ||
743 | if err != nil { | ||
744 | return | ||
745 | } | ||
746 | r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) | ||
747 | watchdesc = int(r0) | ||
748 | if e1 != 0 { | ||
749 | err = errnoErr(e1) | ||
750 | } | ||
751 | return | ||
752 | } | ||
753 | |||
754 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
755 | |||
756 | func InotifyInit1(flags int) (fd int, err error) { | ||
757 | r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) | ||
758 | fd = 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 InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { | ||
768 | r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) | ||
769 | success = int(r0) | ||
770 | if e1 != 0 { | ||
771 | err = errnoErr(e1) | ||
772 | } | ||
773 | return | ||
774 | } | ||
775 | |||
776 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
777 | |||
778 | func Kill(pid int, sig syscall.Signal) (err error) { | ||
779 | _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) | ||
780 | if e1 != 0 { | ||
781 | err = errnoErr(e1) | ||
782 | } | ||
783 | return | ||
784 | } | ||
785 | |||
786 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
787 | |||
788 | func Klogctl(typ int, buf []byte) (n int, err error) { | ||
789 | var _p0 unsafe.Pointer | ||
790 | if len(buf) > 0 { | ||
791 | _p0 = unsafe.Pointer(&buf[0]) | ||
792 | } else { | ||
793 | _p0 = unsafe.Pointer(&_zero) | ||
794 | } | ||
795 | r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) | ||
796 | n = 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 Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { | ||
806 | var _p0 *byte | ||
807 | _p0, err = BytePtrFromString(path) | ||
808 | if err != nil { | ||
809 | return | ||
810 | } | ||
811 | var _p1 *byte | ||
812 | _p1, err = BytePtrFromString(attr) | ||
813 | if err != nil { | ||
814 | return | ||
815 | } | ||
816 | var _p2 unsafe.Pointer | ||
817 | if len(dest) > 0 { | ||
818 | _p2 = unsafe.Pointer(&dest[0]) | ||
819 | } else { | ||
820 | _p2 = unsafe.Pointer(&_zero) | ||
821 | } | ||
822 | r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) | ||
823 | sz = int(r0) | ||
824 | if e1 != 0 { | ||
825 | err = errnoErr(e1) | ||
826 | } | ||
827 | return | ||
828 | } | ||
829 | |||
830 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
831 | |||
832 | func Listxattr(path string, dest []byte) (sz int, err error) { | ||
833 | var _p0 *byte | ||
834 | _p0, err = BytePtrFromString(path) | ||
835 | if err != nil { | ||
836 | return | ||
837 | } | ||
838 | var _p1 unsafe.Pointer | ||
839 | if len(dest) > 0 { | ||
840 | _p1 = unsafe.Pointer(&dest[0]) | ||
841 | } else { | ||
842 | _p1 = unsafe.Pointer(&_zero) | ||
843 | } | ||
844 | r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) | ||
845 | sz = int(r0) | ||
846 | if e1 != 0 { | ||
847 | err = errnoErr(e1) | ||
848 | } | ||
849 | return | ||
850 | } | ||
851 | |||
852 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
853 | |||
854 | func Llistxattr(path string, dest []byte) (sz int, err error) { | ||
855 | var _p0 *byte | ||
856 | _p0, err = BytePtrFromString(path) | ||
857 | if err != nil { | ||
858 | return | ||
859 | } | ||
860 | var _p1 unsafe.Pointer | ||
861 | if len(dest) > 0 { | ||
862 | _p1 = unsafe.Pointer(&dest[0]) | ||
863 | } else { | ||
864 | _p1 = unsafe.Pointer(&_zero) | ||
865 | } | ||
866 | r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) | ||
867 | sz = int(r0) | ||
868 | if e1 != 0 { | ||
869 | err = errnoErr(e1) | ||
870 | } | ||
871 | return | ||
872 | } | ||
873 | |||
874 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
875 | |||
876 | func Lremovexattr(path string, attr string) (err error) { | ||
877 | var _p0 *byte | ||
878 | _p0, err = BytePtrFromString(path) | ||
879 | if err != nil { | ||
880 | return | ||
881 | } | ||
882 | var _p1 *byte | ||
883 | _p1, err = BytePtrFromString(attr) | ||
884 | if err != nil { | ||
885 | return | ||
886 | } | ||
887 | _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
888 | if e1 != 0 { | ||
889 | err = errnoErr(e1) | ||
890 | } | ||
891 | return | ||
892 | } | ||
893 | |||
894 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
895 | |||
896 | func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { | ||
897 | var _p0 *byte | ||
898 | _p0, err = BytePtrFromString(path) | ||
899 | if err != nil { | ||
900 | return | ||
901 | } | ||
902 | var _p1 *byte | ||
903 | _p1, err = BytePtrFromString(attr) | ||
904 | if err != nil { | ||
905 | return | ||
906 | } | ||
907 | var _p2 unsafe.Pointer | ||
908 | if len(data) > 0 { | ||
909 | _p2 = unsafe.Pointer(&data[0]) | ||
910 | } else { | ||
911 | _p2 = unsafe.Pointer(&_zero) | ||
912 | } | ||
913 | _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) | ||
914 | if e1 != 0 { | ||
915 | err = errnoErr(e1) | ||
916 | } | ||
917 | return | ||
918 | } | ||
919 | |||
920 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
921 | |||
922 | func Mkdirat(dirfd int, path string, mode uint32) (err error) { | ||
923 | var _p0 *byte | ||
924 | _p0, err = BytePtrFromString(path) | ||
925 | if err != nil { | ||
926 | return | ||
927 | } | ||
928 | _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) | ||
929 | if e1 != 0 { | ||
930 | err = errnoErr(e1) | ||
931 | } | ||
932 | return | ||
933 | } | ||
934 | |||
935 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
936 | |||
937 | func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { | ||
938 | var _p0 *byte | ||
939 | _p0, err = BytePtrFromString(path) | ||
940 | if err != nil { | ||
941 | return | ||
942 | } | ||
943 | _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) | ||
944 | if e1 != 0 { | ||
945 | err = errnoErr(e1) | ||
946 | } | ||
947 | return | ||
948 | } | ||
949 | |||
950 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
951 | |||
952 | func Nanosleep(time *Timespec, leftover *Timespec) (err error) { | ||
953 | _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) | ||
954 | if e1 != 0 { | ||
955 | err = errnoErr(e1) | ||
956 | } | ||
957 | return | ||
958 | } | ||
959 | |||
960 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
961 | |||
962 | func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { | ||
963 | r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) | ||
964 | fd = int(r0) | ||
965 | if e1 != 0 { | ||
966 | err = errnoErr(e1) | ||
967 | } | ||
968 | return | ||
969 | } | ||
970 | |||
971 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
972 | |||
973 | func PivotRoot(newroot string, putold string) (err error) { | ||
974 | var _p0 *byte | ||
975 | _p0, err = BytePtrFromString(newroot) | ||
976 | if err != nil { | ||
977 | return | ||
978 | } | ||
979 | var _p1 *byte | ||
980 | _p1, err = BytePtrFromString(putold) | ||
981 | if err != nil { | ||
982 | return | ||
983 | } | ||
984 | _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
985 | if e1 != 0 { | ||
986 | err = errnoErr(e1) | ||
987 | } | ||
988 | return | ||
989 | } | ||
990 | |||
991 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
992 | |||
993 | func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { | ||
994 | _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) | ||
995 | if e1 != 0 { | ||
996 | err = errnoErr(e1) | ||
997 | } | ||
998 | return | ||
999 | } | ||
1000 | |||
1001 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1002 | |||
1003 | func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { | ||
1004 | _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) | ||
1005 | if e1 != 0 { | ||
1006 | err = errnoErr(e1) | ||
1007 | } | ||
1008 | return | ||
1009 | } | ||
1010 | |||
1011 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1012 | |||
1013 | func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | ||
1014 | 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))) | ||
1015 | n = int(r0) | ||
1016 | if e1 != 0 { | ||
1017 | err = errnoErr(e1) | ||
1018 | } | ||
1019 | return | ||
1020 | } | ||
1021 | |||
1022 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1023 | |||
1024 | func read(fd int, p []byte) (n int, err error) { | ||
1025 | var _p0 unsafe.Pointer | ||
1026 | if len(p) > 0 { | ||
1027 | _p0 = unsafe.Pointer(&p[0]) | ||
1028 | } else { | ||
1029 | _p0 = unsafe.Pointer(&_zero) | ||
1030 | } | ||
1031 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1032 | n = int(r0) | ||
1033 | if e1 != 0 { | ||
1034 | err = errnoErr(e1) | ||
1035 | } | ||
1036 | return | ||
1037 | } | ||
1038 | |||
1039 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1040 | |||
1041 | func Removexattr(path string, attr string) (err error) { | ||
1042 | var _p0 *byte | ||
1043 | _p0, err = BytePtrFromString(path) | ||
1044 | if err != nil { | ||
1045 | return | ||
1046 | } | ||
1047 | var _p1 *byte | ||
1048 | _p1, err = BytePtrFromString(attr) | ||
1049 | if err != nil { | ||
1050 | return | ||
1051 | } | ||
1052 | _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1053 | if e1 != 0 { | ||
1054 | err = errnoErr(e1) | ||
1055 | } | ||
1056 | return | ||
1057 | } | ||
1058 | |||
1059 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1060 | |||
1061 | func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { | ||
1062 | var _p0 *byte | ||
1063 | _p0, err = BytePtrFromString(oldpath) | ||
1064 | if err != nil { | ||
1065 | return | ||
1066 | } | ||
1067 | var _p1 *byte | ||
1068 | _p1, err = BytePtrFromString(newpath) | ||
1069 | if err != nil { | ||
1070 | return | ||
1071 | } | ||
1072 | _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) | ||
1073 | if e1 != 0 { | ||
1074 | err = errnoErr(e1) | ||
1075 | } | ||
1076 | return | ||
1077 | } | ||
1078 | |||
1079 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1080 | |||
1081 | func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { | ||
1082 | var _p0 *byte | ||
1083 | _p0, err = BytePtrFromString(keyType) | ||
1084 | if err != nil { | ||
1085 | return | ||
1086 | } | ||
1087 | var _p1 *byte | ||
1088 | _p1, err = BytePtrFromString(description) | ||
1089 | if err != nil { | ||
1090 | return | ||
1091 | } | ||
1092 | var _p2 *byte | ||
1093 | _p2, err = BytePtrFromString(callback) | ||
1094 | if err != nil { | ||
1095 | return | ||
1096 | } | ||
1097 | r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) | ||
1098 | id = int(r0) | ||
1099 | if e1 != 0 { | ||
1100 | err = errnoErr(e1) | ||
1101 | } | ||
1102 | return | ||
1103 | } | ||
1104 | |||
1105 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1106 | |||
1107 | func Setdomainname(p []byte) (err error) { | ||
1108 | var _p0 unsafe.Pointer | ||
1109 | if len(p) > 0 { | ||
1110 | _p0 = unsafe.Pointer(&p[0]) | ||
1111 | } else { | ||
1112 | _p0 = unsafe.Pointer(&_zero) | ||
1113 | } | ||
1114 | _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) | ||
1115 | if e1 != 0 { | ||
1116 | err = errnoErr(e1) | ||
1117 | } | ||
1118 | return | ||
1119 | } | ||
1120 | |||
1121 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1122 | |||
1123 | func Sethostname(p []byte) (err error) { | ||
1124 | var _p0 unsafe.Pointer | ||
1125 | if len(p) > 0 { | ||
1126 | _p0 = unsafe.Pointer(&p[0]) | ||
1127 | } else { | ||
1128 | _p0 = unsafe.Pointer(&_zero) | ||
1129 | } | ||
1130 | _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) | ||
1131 | if e1 != 0 { | ||
1132 | err = errnoErr(e1) | ||
1133 | } | ||
1134 | return | ||
1135 | } | ||
1136 | |||
1137 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1138 | |||
1139 | func Setpgid(pid int, pgid int) (err error) { | ||
1140 | _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) | ||
1141 | if e1 != 0 { | ||
1142 | err = errnoErr(e1) | ||
1143 | } | ||
1144 | return | ||
1145 | } | ||
1146 | |||
1147 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1148 | |||
1149 | func Setsid() (pid int, err error) { | ||
1150 | r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) | ||
1151 | pid = int(r0) | ||
1152 | if e1 != 0 { | ||
1153 | err = errnoErr(e1) | ||
1154 | } | ||
1155 | return | ||
1156 | } | ||
1157 | |||
1158 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1159 | |||
1160 | func Settimeofday(tv *Timeval) (err error) { | ||
1161 | _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) | ||
1162 | if e1 != 0 { | ||
1163 | err = errnoErr(e1) | ||
1164 | } | ||
1165 | return | ||
1166 | } | ||
1167 | |||
1168 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1169 | |||
1170 | func Setns(fd int, nstype int) (err error) { | ||
1171 | _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) | ||
1172 | if e1 != 0 { | ||
1173 | err = errnoErr(e1) | ||
1174 | } | ||
1175 | return | ||
1176 | } | ||
1177 | |||
1178 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1179 | |||
1180 | func Setpriority(which int, who int, prio int) (err error) { | ||
1181 | _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) | ||
1182 | if e1 != 0 { | ||
1183 | err = errnoErr(e1) | ||
1184 | } | ||
1185 | return | ||
1186 | } | ||
1187 | |||
1188 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1189 | |||
1190 | func Setxattr(path string, attr string, data []byte, flags int) (err error) { | ||
1191 | var _p0 *byte | ||
1192 | _p0, err = BytePtrFromString(path) | ||
1193 | if err != nil { | ||
1194 | return | ||
1195 | } | ||
1196 | var _p1 *byte | ||
1197 | _p1, err = BytePtrFromString(attr) | ||
1198 | if err != nil { | ||
1199 | return | ||
1200 | } | ||
1201 | var _p2 unsafe.Pointer | ||
1202 | if len(data) > 0 { | ||
1203 | _p2 = unsafe.Pointer(&data[0]) | ||
1204 | } else { | ||
1205 | _p2 = unsafe.Pointer(&_zero) | ||
1206 | } | ||
1207 | _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) | ||
1208 | if e1 != 0 { | ||
1209 | err = errnoErr(e1) | ||
1210 | } | ||
1211 | return | ||
1212 | } | ||
1213 | |||
1214 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1215 | |||
1216 | func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { | ||
1217 | var _p0 *byte | ||
1218 | _p0, err = BytePtrFromString(path) | ||
1219 | if err != nil { | ||
1220 | return | ||
1221 | } | ||
1222 | _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) | ||
1223 | if e1 != 0 { | ||
1224 | err = errnoErr(e1) | ||
1225 | } | ||
1226 | return | ||
1227 | } | ||
1228 | |||
1229 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1230 | |||
1231 | func Sync() { | ||
1232 | SyscallNoError(SYS_SYNC, 0, 0, 0) | ||
1233 | return | ||
1234 | } | ||
1235 | |||
1236 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1237 | |||
1238 | func Syncfs(fd int) (err error) { | ||
1239 | _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) | ||
1240 | if e1 != 0 { | ||
1241 | err = errnoErr(e1) | ||
1242 | } | ||
1243 | return | ||
1244 | } | ||
1245 | |||
1246 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1247 | |||
1248 | func Sysinfo(info *Sysinfo_t) (err error) { | ||
1249 | _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) | ||
1250 | if e1 != 0 { | ||
1251 | err = errnoErr(e1) | ||
1252 | } | ||
1253 | return | ||
1254 | } | ||
1255 | |||
1256 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1257 | |||
1258 | func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { | ||
1259 | r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) | ||
1260 | n = int64(r0) | ||
1261 | if e1 != 0 { | ||
1262 | err = errnoErr(e1) | ||
1263 | } | ||
1264 | return | ||
1265 | } | ||
1266 | |||
1267 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1268 | |||
1269 | func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { | ||
1270 | _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) | ||
1271 | if e1 != 0 { | ||
1272 | err = errnoErr(e1) | ||
1273 | } | ||
1274 | return | ||
1275 | } | ||
1276 | |||
1277 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1278 | |||
1279 | func Times(tms *Tms) (ticks uintptr, err error) { | ||
1280 | r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) | ||
1281 | ticks = uintptr(r0) | ||
1282 | if e1 != 0 { | ||
1283 | err = errnoErr(e1) | ||
1284 | } | ||
1285 | return | ||
1286 | } | ||
1287 | |||
1288 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1289 | |||
1290 | func Umask(mask int) (oldmask int) { | ||
1291 | r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) | ||
1292 | oldmask = int(r0) | ||
1293 | return | ||
1294 | } | ||
1295 | |||
1296 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1297 | |||
1298 | func Uname(buf *Utsname) (err error) { | ||
1299 | _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) | ||
1300 | if e1 != 0 { | ||
1301 | err = errnoErr(e1) | ||
1302 | } | ||
1303 | return | ||
1304 | } | ||
1305 | |||
1306 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1307 | |||
1308 | func Unmount(target string, flags int) (err error) { | ||
1309 | var _p0 *byte | ||
1310 | _p0, err = BytePtrFromString(target) | ||
1311 | if err != nil { | ||
1312 | return | ||
1313 | } | ||
1314 | _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
1315 | if e1 != 0 { | ||
1316 | err = errnoErr(e1) | ||
1317 | } | ||
1318 | return | ||
1319 | } | ||
1320 | |||
1321 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1322 | |||
1323 | func Unshare(flags int) (err error) { | ||
1324 | _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) | ||
1325 | if e1 != 0 { | ||
1326 | err = errnoErr(e1) | ||
1327 | } | ||
1328 | return | ||
1329 | } | ||
1330 | |||
1331 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1332 | |||
1333 | func write(fd int, p []byte) (n int, err error) { | ||
1334 | var _p0 unsafe.Pointer | ||
1335 | if len(p) > 0 { | ||
1336 | _p0 = unsafe.Pointer(&p[0]) | ||
1337 | } else { | ||
1338 | _p0 = unsafe.Pointer(&_zero) | ||
1339 | } | ||
1340 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1341 | n = int(r0) | ||
1342 | if e1 != 0 { | ||
1343 | err = errnoErr(e1) | ||
1344 | } | ||
1345 | return | ||
1346 | } | ||
1347 | |||
1348 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1349 | |||
1350 | func exitThread(code int) (err error) { | ||
1351 | _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) | ||
1352 | if e1 != 0 { | ||
1353 | err = errnoErr(e1) | ||
1354 | } | ||
1355 | return | ||
1356 | } | ||
1357 | |||
1358 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1359 | |||
1360 | func readlen(fd int, p *byte, np int) (n int, err error) { | ||
1361 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) | ||
1362 | n = int(r0) | ||
1363 | if e1 != 0 { | ||
1364 | err = errnoErr(e1) | ||
1365 | } | ||
1366 | return | ||
1367 | } | ||
1368 | |||
1369 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1370 | |||
1371 | func writelen(fd int, p *byte, np int) (n int, err error) { | ||
1372 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) | ||
1373 | n = int(r0) | ||
1374 | if e1 != 0 { | ||
1375 | err = errnoErr(e1) | ||
1376 | } | ||
1377 | return | ||
1378 | } | ||
1379 | |||
1380 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1381 | |||
1382 | func munmap(addr uintptr, length uintptr) (err error) { | ||
1383 | _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) | ||
1384 | if e1 != 0 { | ||
1385 | err = errnoErr(e1) | ||
1386 | } | ||
1387 | return | ||
1388 | } | ||
1389 | |||
1390 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1391 | |||
1392 | func Madvise(b []byte, advice int) (err error) { | ||
1393 | var _p0 unsafe.Pointer | ||
1394 | if len(b) > 0 { | ||
1395 | _p0 = unsafe.Pointer(&b[0]) | ||
1396 | } else { | ||
1397 | _p0 = unsafe.Pointer(&_zero) | ||
1398 | } | ||
1399 | _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) | ||
1400 | if e1 != 0 { | ||
1401 | err = errnoErr(e1) | ||
1402 | } | ||
1403 | return | ||
1404 | } | ||
1405 | |||
1406 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1407 | |||
1408 | func Mprotect(b []byte, prot int) (err error) { | ||
1409 | var _p0 unsafe.Pointer | ||
1410 | if len(b) > 0 { | ||
1411 | _p0 = unsafe.Pointer(&b[0]) | ||
1412 | } else { | ||
1413 | _p0 = unsafe.Pointer(&_zero) | ||
1414 | } | ||
1415 | _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) | ||
1416 | if e1 != 0 { | ||
1417 | err = errnoErr(e1) | ||
1418 | } | ||
1419 | return | ||
1420 | } | ||
1421 | |||
1422 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1423 | |||
1424 | func Mlock(b []byte) (err error) { | ||
1425 | var _p0 unsafe.Pointer | ||
1426 | if len(b) > 0 { | ||
1427 | _p0 = unsafe.Pointer(&b[0]) | ||
1428 | } else { | ||
1429 | _p0 = unsafe.Pointer(&_zero) | ||
1430 | } | ||
1431 | _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) | ||
1432 | if e1 != 0 { | ||
1433 | err = errnoErr(e1) | ||
1434 | } | ||
1435 | return | ||
1436 | } | ||
1437 | |||
1438 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1439 | |||
1440 | func Mlockall(flags int) (err error) { | ||
1441 | _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) | ||
1442 | if e1 != 0 { | ||
1443 | err = errnoErr(e1) | ||
1444 | } | ||
1445 | return | ||
1446 | } | ||
1447 | |||
1448 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1449 | |||
1450 | func Msync(b []byte, flags int) (err error) { | ||
1451 | var _p0 unsafe.Pointer | ||
1452 | if len(b) > 0 { | ||
1453 | _p0 = unsafe.Pointer(&b[0]) | ||
1454 | } else { | ||
1455 | _p0 = unsafe.Pointer(&_zero) | ||
1456 | } | ||
1457 | _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) | ||
1458 | if e1 != 0 { | ||
1459 | err = errnoErr(e1) | ||
1460 | } | ||
1461 | return | ||
1462 | } | ||
1463 | |||
1464 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1465 | |||
1466 | func Munlock(b []byte) (err error) { | ||
1467 | var _p0 unsafe.Pointer | ||
1468 | if len(b) > 0 { | ||
1469 | _p0 = unsafe.Pointer(&b[0]) | ||
1470 | } else { | ||
1471 | _p0 = unsafe.Pointer(&_zero) | ||
1472 | } | ||
1473 | _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) | ||
1474 | if e1 != 0 { | ||
1475 | err = errnoErr(e1) | ||
1476 | } | ||
1477 | return | ||
1478 | } | ||
1479 | |||
1480 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1481 | |||
1482 | func Munlockall() (err error) { | ||
1483 | _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) | ||
1484 | if e1 != 0 { | ||
1485 | err = errnoErr(e1) | ||
1486 | } | ||
1487 | return | ||
1488 | } | ||
1489 | |||
1490 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1491 | |||
1492 | func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { | ||
1493 | var _p0 unsafe.Pointer | ||
1494 | if len(events) > 0 { | ||
1495 | _p0 = unsafe.Pointer(&events[0]) | ||
1496 | } else { | ||
1497 | _p0 = unsafe.Pointer(&_zero) | ||
1498 | } | ||
1499 | r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) | ||
1500 | n = int(r0) | ||
1501 | if e1 != 0 { | ||
1502 | err = errnoErr(e1) | ||
1503 | } | ||
1504 | return | ||
1505 | } | ||
1506 | |||
1507 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1508 | |||
1509 | func Fadvise(fd int, offset int64, length int64, advice int) (err error) { | ||
1510 | _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) | ||
1511 | if e1 != 0 { | ||
1512 | err = errnoErr(e1) | ||
1513 | } | ||
1514 | return | ||
1515 | } | ||
1516 | |||
1517 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1518 | |||
1519 | func Dup2(oldfd int, newfd int) (err error) { | ||
1520 | _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) | ||
1521 | if e1 != 0 { | ||
1522 | err = errnoErr(e1) | ||
1523 | } | ||
1524 | return | ||
1525 | } | ||
1526 | |||
1527 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1528 | |||
1529 | func Fchown(fd int, uid int, gid int) (err error) { | ||
1530 | _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) | ||
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 Fstat(fd int, stat *Stat_t) (err error) { | ||
1540 | _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 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 Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { | ||
1550 | var _p0 *byte | ||
1551 | _p0, err = BytePtrFromString(path) | ||
1552 | if err != nil { | ||
1553 | return | ||
1554 | } | ||
1555 | _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) | ||
1556 | if e1 != 0 { | ||
1557 | err = errnoErr(e1) | ||
1558 | } | ||
1559 | return | ||
1560 | } | ||
1561 | |||
1562 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1563 | |||
1564 | func Fstatfs(fd int, buf *Statfs_t) (err error) { | ||
1565 | _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) | ||
1566 | if e1 != 0 { | ||
1567 | err = errnoErr(e1) | ||
1568 | } | ||
1569 | return | ||
1570 | } | ||
1571 | |||
1572 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1573 | |||
1574 | func Ftruncate(fd int, length int64) (err error) { | ||
1575 | _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) | ||
1576 | if e1 != 0 { | ||
1577 | err = errnoErr(e1) | ||
1578 | } | ||
1579 | return | ||
1580 | } | ||
1581 | |||
1582 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1583 | |||
1584 | func Getegid() (egid int) { | ||
1585 | r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) | ||
1586 | egid = int(r0) | ||
1587 | return | ||
1588 | } | ||
1589 | |||
1590 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1591 | |||
1592 | func Geteuid() (euid int) { | ||
1593 | r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) | ||
1594 | euid = int(r0) | ||
1595 | return | ||
1596 | } | ||
1597 | |||
1598 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1599 | |||
1600 | func Getgid() (gid int) { | ||
1601 | r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) | ||
1602 | gid = int(r0) | ||
1603 | return | ||
1604 | } | ||
1605 | |||
1606 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1607 | |||
1608 | func Getrlimit(resource int, rlim *Rlimit) (err error) { | ||
1609 | _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) | ||
1610 | if e1 != 0 { | ||
1611 | err = errnoErr(e1) | ||
1612 | } | ||
1613 | return | ||
1614 | } | ||
1615 | |||
1616 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1617 | |||
1618 | func Getuid() (uid int) { | ||
1619 | r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) | ||
1620 | uid = int(r0) | ||
1621 | return | ||
1622 | } | ||
1623 | |||
1624 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1625 | |||
1626 | func InotifyInit() (fd int, err error) { | ||
1627 | r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) | ||
1628 | fd = int(r0) | ||
1629 | if e1 != 0 { | ||
1630 | err = errnoErr(e1) | ||
1631 | } | ||
1632 | return | ||
1633 | } | ||
1634 | |||
1635 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1636 | |||
1637 | func Lchown(path string, uid int, gid int) (err error) { | ||
1638 | var _p0 *byte | ||
1639 | _p0, err = BytePtrFromString(path) | ||
1640 | if err != nil { | ||
1641 | return | ||
1642 | } | ||
1643 | _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | ||
1644 | if e1 != 0 { | ||
1645 | err = errnoErr(e1) | ||
1646 | } | ||
1647 | return | ||
1648 | } | ||
1649 | |||
1650 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1651 | |||
1652 | func Listen(s int, n int) (err error) { | ||
1653 | _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) | ||
1654 | if e1 != 0 { | ||
1655 | err = errnoErr(e1) | ||
1656 | } | ||
1657 | return | ||
1658 | } | ||
1659 | |||
1660 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1661 | |||
1662 | func Lstat(path string, stat *Stat_t) (err error) { | ||
1663 | var _p0 *byte | ||
1664 | _p0, err = BytePtrFromString(path) | ||
1665 | if err != nil { | ||
1666 | return | ||
1667 | } | ||
1668 | _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1669 | if e1 != 0 { | ||
1670 | err = errnoErr(e1) | ||
1671 | } | ||
1672 | return | ||
1673 | } | ||
1674 | |||
1675 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1676 | |||
1677 | func Pause() (err error) { | ||
1678 | _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) | ||
1679 | if e1 != 0 { | ||
1680 | err = errnoErr(e1) | ||
1681 | } | ||
1682 | return | ||
1683 | } | ||
1684 | |||
1685 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1686 | |||
1687 | func Pread(fd int, p []byte, offset int64) (n int, err error) { | ||
1688 | var _p0 unsafe.Pointer | ||
1689 | if len(p) > 0 { | ||
1690 | _p0 = unsafe.Pointer(&p[0]) | ||
1691 | } else { | ||
1692 | _p0 = unsafe.Pointer(&_zero) | ||
1693 | } | ||
1694 | r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) | ||
1695 | n = int(r0) | ||
1696 | if e1 != 0 { | ||
1697 | err = errnoErr(e1) | ||
1698 | } | ||
1699 | return | ||
1700 | } | ||
1701 | |||
1702 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1703 | |||
1704 | func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | ||
1705 | var _p0 unsafe.Pointer | ||
1706 | if len(p) > 0 { | ||
1707 | _p0 = unsafe.Pointer(&p[0]) | ||
1708 | } else { | ||
1709 | _p0 = unsafe.Pointer(&_zero) | ||
1710 | } | ||
1711 | r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) | ||
1712 | n = int(r0) | ||
1713 | if e1 != 0 { | ||
1714 | err = errnoErr(e1) | ||
1715 | } | ||
1716 | return | ||
1717 | } | ||
1718 | |||
1719 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1720 | |||
1721 | func Seek(fd int, offset int64, whence int) (off int64, err error) { | ||
1722 | r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) | ||
1723 | off = int64(r0) | ||
1724 | if e1 != 0 { | ||
1725 | err = errnoErr(e1) | ||
1726 | } | ||
1727 | return | ||
1728 | } | ||
1729 | |||
1730 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1731 | |||
1732 | func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { | ||
1733 | r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | ||
1734 | n = int(r0) | ||
1735 | if e1 != 0 { | ||
1736 | err = errnoErr(e1) | ||
1737 | } | ||
1738 | return | ||
1739 | } | ||
1740 | |||
1741 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1742 | |||
1743 | func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { | ||
1744 | r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) | ||
1745 | written = int(r0) | ||
1746 | if e1 != 0 { | ||
1747 | err = errnoErr(e1) | ||
1748 | } | ||
1749 | return | ||
1750 | } | ||
1751 | |||
1752 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1753 | |||
1754 | func Setfsgid(gid int) (err error) { | ||
1755 | _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) | ||
1756 | if e1 != 0 { | ||
1757 | err = errnoErr(e1) | ||
1758 | } | ||
1759 | return | ||
1760 | } | ||
1761 | |||
1762 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1763 | |||
1764 | func Setfsuid(uid int) (err error) { | ||
1765 | _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) | ||
1766 | if e1 != 0 { | ||
1767 | err = errnoErr(e1) | ||
1768 | } | ||
1769 | return | ||
1770 | } | ||
1771 | |||
1772 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1773 | |||
1774 | func Setregid(rgid int, egid int) (err error) { | ||
1775 | _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) | ||
1776 | if e1 != 0 { | ||
1777 | err = errnoErr(e1) | ||
1778 | } | ||
1779 | return | ||
1780 | } | ||
1781 | |||
1782 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1783 | |||
1784 | func Setresgid(rgid int, egid int, sgid int) (err error) { | ||
1785 | _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) | ||
1786 | if e1 != 0 { | ||
1787 | err = errnoErr(e1) | ||
1788 | } | ||
1789 | return | ||
1790 | } | ||
1791 | |||
1792 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1793 | |||
1794 | func Setresuid(ruid int, euid int, suid int) (err error) { | ||
1795 | _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) | ||
1796 | if e1 != 0 { | ||
1797 | err = errnoErr(e1) | ||
1798 | } | ||
1799 | return | ||
1800 | } | ||
1801 | |||
1802 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1803 | |||
1804 | func Setrlimit(resource int, rlim *Rlimit) (err error) { | ||
1805 | _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) | ||
1806 | if e1 != 0 { | ||
1807 | err = errnoErr(e1) | ||
1808 | } | ||
1809 | return | ||
1810 | } | ||
1811 | |||
1812 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1813 | |||
1814 | func Setreuid(ruid int, euid int) (err error) { | ||
1815 | _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) | ||
1816 | if e1 != 0 { | ||
1817 | err = errnoErr(e1) | ||
1818 | } | ||
1819 | return | ||
1820 | } | ||
1821 | |||
1822 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1823 | |||
1824 | func Shutdown(fd int, how int) (err error) { | ||
1825 | _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) | ||
1826 | if e1 != 0 { | ||
1827 | err = errnoErr(e1) | ||
1828 | } | ||
1829 | return | ||
1830 | } | ||
1831 | |||
1832 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1833 | |||
1834 | func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { | ||
1835 | r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) | ||
1836 | n = int64(r0) | ||
1837 | if e1 != 0 { | ||
1838 | err = errnoErr(e1) | ||
1839 | } | ||
1840 | return | ||
1841 | } | ||
1842 | |||
1843 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1844 | |||
1845 | func Stat(path string, stat *Stat_t) (err error) { | ||
1846 | var _p0 *byte | ||
1847 | _p0, err = BytePtrFromString(path) | ||
1848 | if err != nil { | ||
1849 | return | ||
1850 | } | ||
1851 | _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1852 | if e1 != 0 { | ||
1853 | err = errnoErr(e1) | ||
1854 | } | ||
1855 | return | ||
1856 | } | ||
1857 | |||
1858 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1859 | |||
1860 | func Statfs(path string, buf *Statfs_t) (err error) { | ||
1861 | var _p0 *byte | ||
1862 | _p0, err = BytePtrFromString(path) | ||
1863 | if err != nil { | ||
1864 | return | ||
1865 | } | ||
1866 | _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) | ||
1867 | if e1 != 0 { | ||
1868 | err = errnoErr(e1) | ||
1869 | } | ||
1870 | return | ||
1871 | } | ||
1872 | |||
1873 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1874 | |||
1875 | func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { | ||
1876 | _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) | ||
1877 | if e1 != 0 { | ||
1878 | err = errnoErr(e1) | ||
1879 | } | ||
1880 | return | ||
1881 | } | ||
1882 | |||
1883 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1884 | |||
1885 | func Truncate(path string, length int64) (err error) { | ||
1886 | var _p0 *byte | ||
1887 | _p0, err = BytePtrFromString(path) | ||
1888 | if err != nil { | ||
1889 | return | ||
1890 | } | ||
1891 | _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) | ||
1892 | if e1 != 0 { | ||
1893 | err = errnoErr(e1) | ||
1894 | } | ||
1895 | return | ||
1896 | } | ||
1897 | |||
1898 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1899 | |||
1900 | func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { | ||
1901 | r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
1902 | fd = int(r0) | ||
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 accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { | ||
1912 | r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) | ||
1913 | fd = int(r0) | ||
1914 | if e1 != 0 { | ||
1915 | err = errnoErr(e1) | ||
1916 | } | ||
1917 | return | ||
1918 | } | ||
1919 | |||
1920 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1921 | |||
1922 | func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | ||
1923 | _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) | ||
1924 | if e1 != 0 { | ||
1925 | err = errnoErr(e1) | ||
1926 | } | ||
1927 | return | ||
1928 | } | ||
1929 | |||
1930 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1931 | |||
1932 | func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | ||
1933 | _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) | ||
1934 | if e1 != 0 { | ||
1935 | err = errnoErr(e1) | ||
1936 | } | ||
1937 | return | ||
1938 | } | ||
1939 | |||
1940 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1941 | |||
1942 | func getgroups(n int, list *_Gid_t) (nn int, err error) { | ||
1943 | r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) | ||
1944 | nn = int(r0) | ||
1945 | if e1 != 0 { | ||
1946 | err = errnoErr(e1) | ||
1947 | } | ||
1948 | return | ||
1949 | } | ||
1950 | |||
1951 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1952 | |||
1953 | func setgroups(n int, list *_Gid_t) (err error) { | ||
1954 | _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) | ||
1955 | if e1 != 0 { | ||
1956 | err = errnoErr(e1) | ||
1957 | } | ||
1958 | return | ||
1959 | } | ||
1960 | |||
1961 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1962 | |||
1963 | func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { | ||
1964 | _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) | ||
1965 | if e1 != 0 { | ||
1966 | err = errnoErr(e1) | ||
1967 | } | ||
1968 | return | ||
1969 | } | ||
1970 | |||
1971 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1972 | |||
1973 | func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { | ||
1974 | _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) | ||
1975 | if e1 != 0 { | ||
1976 | err = errnoErr(e1) | ||
1977 | } | ||
1978 | return | ||
1979 | } | ||
1980 | |||
1981 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1982 | |||
1983 | func socket(domain int, typ int, proto int) (fd int, err error) { | ||
1984 | r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) | ||
1985 | fd = int(r0) | ||
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 socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { | ||
1995 | _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) | ||
1996 | if e1 != 0 { | ||
1997 | err = errnoErr(e1) | ||
1998 | } | ||
1999 | return | ||
2000 | } | ||
2001 | |||
2002 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2003 | |||
2004 | func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | ||
2005 | _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
2006 | if e1 != 0 { | ||
2007 | err = errnoErr(e1) | ||
2008 | } | ||
2009 | return | ||
2010 | } | ||
2011 | |||
2012 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2013 | |||
2014 | func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | ||
2015 | _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
2016 | if e1 != 0 { | ||
2017 | err = errnoErr(e1) | ||
2018 | } | ||
2019 | return | ||
2020 | } | ||
2021 | |||
2022 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2023 | |||
2024 | func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { | ||
2025 | var _p0 unsafe.Pointer | ||
2026 | if len(p) > 0 { | ||
2027 | _p0 = unsafe.Pointer(&p[0]) | ||
2028 | } else { | ||
2029 | _p0 = unsafe.Pointer(&_zero) | ||
2030 | } | ||
2031 | r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) | ||
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 sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { | ||
2042 | var _p0 unsafe.Pointer | ||
2043 | if len(buf) > 0 { | ||
2044 | _p0 = unsafe.Pointer(&buf[0]) | ||
2045 | } else { | ||
2046 | _p0 = unsafe.Pointer(&_zero) | ||
2047 | } | ||
2048 | _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) | ||
2049 | if e1 != 0 { | ||
2050 | err = errnoErr(e1) | ||
2051 | } | ||
2052 | return | ||
2053 | } | ||
2054 | |||
2055 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2056 | |||
2057 | func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { | ||
2058 | r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | ||
2059 | n = int(r0) | ||
2060 | if e1 != 0 { | ||
2061 | err = errnoErr(e1) | ||
2062 | } | ||
2063 | return | ||
2064 | } | ||
2065 | |||
2066 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2067 | |||
2068 | func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { | ||
2069 | r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | ||
2070 | n = int(r0) | ||
2071 | if e1 != 0 { | ||
2072 | err = errnoErr(e1) | ||
2073 | } | ||
2074 | return | ||
2075 | } | ||
2076 | |||
2077 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2078 | |||
2079 | func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { | ||
2080 | r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) | ||
2081 | xaddr = uintptr(r0) | ||
2082 | if e1 != 0 { | ||
2083 | err = errnoErr(e1) | ||
2084 | } | ||
2085 | return | ||
2086 | } | ||
2087 | |||
2088 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2089 | |||
2090 | func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { | ||
2091 | var _p0 *byte | ||
2092 | _p0, err = BytePtrFromString(path) | ||
2093 | if err != nil { | ||
2094 | return | ||
2095 | } | ||
2096 | _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) | ||
2097 | if e1 != 0 { | ||
2098 | err = errnoErr(e1) | ||
2099 | } | ||
2100 | return | ||
2101 | } | ||
2102 | |||
2103 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2104 | |||
2105 | func Gettimeofday(tv *Timeval) (err error) { | ||
2106 | _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) | ||
2107 | if e1 != 0 { | ||
2108 | err = errnoErr(e1) | ||
2109 | } | ||
2110 | return | ||
2111 | } | ||
2112 | |||
2113 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2114 | |||
2115 | func Utime(path string, buf *Utimbuf) (err error) { | ||
2116 | var _p0 *byte | ||
2117 | _p0, err = BytePtrFromString(path) | ||
2118 | if err != nil { | ||
2119 | return | ||
2120 | } | ||
2121 | _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) | ||
2122 | if e1 != 0 { | ||
2123 | err = errnoErr(e1) | ||
2124 | } | ||
2125 | return | ||
2126 | } | ||
2127 | |||
2128 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2129 | |||
2130 | func utimes(path string, times *[2]Timeval) (err error) { | ||
2131 | var _p0 *byte | ||
2132 | _p0, err = BytePtrFromString(path) | ||
2133 | if err != nil { | ||
2134 | return | ||
2135 | } | ||
2136 | _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) | ||
2137 | if e1 != 0 { | ||
2138 | err = errnoErr(e1) | ||
2139 | } | ||
2140 | return | ||
2141 | } | ||
2142 | |||
2143 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2144 | |||
2145 | func pipe(p *[2]_C_int) (err error) { | ||
2146 | _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) | ||
2147 | if e1 != 0 { | ||
2148 | err = errnoErr(e1) | ||
2149 | } | ||
2150 | return | ||
2151 | } | ||
2152 | |||
2153 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2154 | |||
2155 | func pipe2(p *[2]_C_int, flags int) (err error) { | ||
2156 | _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) | ||
2157 | if e1 != 0 { | ||
2158 | err = errnoErr(e1) | ||
2159 | } | ||
2160 | return | ||
2161 | } | ||
2162 | |||
2163 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2164 | |||
2165 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | ||
2166 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | ||
2167 | n = int(r0) | ||
2168 | if e1 != 0 { | ||
2169 | err = errnoErr(e1) | ||
2170 | } | ||
2171 | return | ||
2172 | } | ||