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