1
2
3
4
5
6
7 package unix
8
9 import (
10 "unsafe"
11 )
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249 type syscallFunc uintptr
250
251 var (
252 libc_utimes,
253 libc_utimensat,
254 libc_getcwd,
255 libc_accept,
256 libc_getdirent,
257 libc_wait4,
258 libc_ioctl,
259 libc_fcntl,
260 libc_fsync_range,
261 libc_acct,
262 libc_chdir,
263 libc_chroot,
264 libc_close,
265 libc_dup,
266 libc_exit,
267 libc_faccessat,
268 libc_fchdir,
269 libc_fchmod,
270 libc_fchmodat,
271 libc_fchownat,
272 libc_fdatasync,
273 libc_getpgid,
274 libc_getpgrp,
275 libc_getpid,
276 libc_getppid,
277 libc_getpriority,
278 libc_getrusage,
279 libc_getsid,
280 libc_kill,
281 libc_syslog,
282 libc_mkdir,
283 libc_mkdirat,
284 libc_mkfifo,
285 libc_mknod,
286 libc_mknodat,
287 libc_nanosleep,
288 libc_open64,
289 libc_openat,
290 libc_read,
291 libc_readlink,
292 libc_renameat,
293 libc_setdomainname,
294 libc_sethostname,
295 libc_setpgid,
296 libc_setsid,
297 libc_settimeofday,
298 libc_setuid,
299 libc_setgid,
300 libc_setpriority,
301 libc_statx,
302 libc_sync,
303 libc_times,
304 libc_umask,
305 libc_uname,
306 libc_unlink,
307 libc_unlinkat,
308 libc_ustat,
309 libc_write,
310 libc_dup2,
311 libc_posix_fadvise64,
312 libc_fchown,
313 libc_fstat,
314 libc_fstatat,
315 libc_fstatfs,
316 libc_ftruncate,
317 libc_getegid,
318 libc_geteuid,
319 libc_getgid,
320 libc_getuid,
321 libc_lchown,
322 libc_listen,
323 libc_lstat,
324 libc_pause,
325 libc_pread64,
326 libc_pwrite64,
327 libc_select,
328 libc_pselect,
329 libc_setregid,
330 libc_setreuid,
331 libc_shutdown,
332 libc_splice,
333 libc_stat,
334 libc_statfs,
335 libc_truncate,
336 libc_bind,
337 libc_connect,
338 libc_getgroups,
339 libc_setgroups,
340 libc_getsockopt,
341 libc_setsockopt,
342 libc_socket,
343 libc_socketpair,
344 libc_getpeername,
345 libc_getsockname,
346 libc_recvfrom,
347 libc_sendto,
348 libc_nrecvmsg,
349 libc_nsendmsg,
350 libc_munmap,
351 libc_madvise,
352 libc_mprotect,
353 libc_mlock,
354 libc_mlockall,
355 libc_msync,
356 libc_munlock,
357 libc_munlockall,
358 libc_pipe,
359 libc_poll,
360 libc_gettimeofday,
361 libc_time,
362 libc_utime,
363 libc_getsystemcfg,
364 libc_umount,
365 libc_getrlimit,
366 libc_setrlimit,
367 libc_lseek,
368 libc_mmap64 syscallFunc
369 )
370
371
372 func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
373 func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
374
375
376
377 func callutimes(_p0 uintptr, times uintptr) (r1 uintptr, e1 Errno) {
378 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_utimes)), 2, _p0, times, 0, 0, 0, 0)
379 return
380 }
381
382
383
384 func callutimensat(dirfd int, _p0 uintptr, times uintptr, flag int) (r1 uintptr, e1 Errno) {
385 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_utimensat)), 4, uintptr(dirfd), _p0, times, uintptr(flag), 0, 0)
386 return
387 }
388
389
390
391 func callgetcwd(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
392 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getcwd)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0)
393 return
394 }
395
396
397
398 func callaccept(s int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
399 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_accept)), 3, uintptr(s), rsa, addrlen, 0, 0, 0)
400 return
401 }
402
403
404
405 func callgetdirent(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
406 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getdirent)), 3, uintptr(fd), _p0, uintptr(_lenp0), 0, 0, 0)
407 return
408 }
409
410
411
412 func callwait4(pid int, status uintptr, options int, rusage uintptr) (r1 uintptr, e1 Errno) {
413 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_wait4)), 4, uintptr(pid), status, uintptr(options), rusage, 0, 0)
414 return
415 }
416
417
418
419 func callioctl(fd int, req int, arg uintptr) (r1 uintptr, e1 Errno) {
420 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_ioctl)), 3, uintptr(fd), uintptr(req), arg, 0, 0, 0)
421 return
422 }
423
424
425
426 func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) {
427 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, fd, uintptr(cmd), arg, 0, 0, 0)
428 return
429 }
430
431
432
433 func callfsync_range(fd int, how int, start int64, length int64) (r1 uintptr, e1 Errno) {
434 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fsync_range)), 4, uintptr(fd), uintptr(how), uintptr(start), uintptr(length), 0, 0)
435 return
436 }
437
438
439
440 func callacct(_p0 uintptr) (r1 uintptr, e1 Errno) {
441 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_acct)), 1, _p0, 0, 0, 0, 0, 0)
442 return
443 }
444
445
446
447 func callchdir(_p0 uintptr) (r1 uintptr, e1 Errno) {
448 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_chdir)), 1, _p0, 0, 0, 0, 0, 0)
449 return
450 }
451
452
453
454 func callchroot(_p0 uintptr) (r1 uintptr, e1 Errno) {
455 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_chroot)), 1, _p0, 0, 0, 0, 0, 0)
456 return
457 }
458
459
460
461 func callclose(fd int) (r1 uintptr, e1 Errno) {
462 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_close)), 1, uintptr(fd), 0, 0, 0, 0, 0)
463 return
464 }
465
466
467
468 func calldup(oldfd int) (r1 uintptr, e1 Errno) {
469 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_dup)), 1, uintptr(oldfd), 0, 0, 0, 0, 0)
470 return
471 }
472
473
474
475 func callexit(code int) (r1 uintptr, e1 Errno) {
476 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_exit)), 1, uintptr(code), 0, 0, 0, 0, 0)
477 return
478 }
479
480
481
482 func callfaccessat(dirfd int, _p0 uintptr, mode uint32, flags int) (r1 uintptr, e1 Errno) {
483 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_faccessat)), 4, uintptr(dirfd), _p0, uintptr(mode), uintptr(flags), 0, 0)
484 return
485 }
486
487
488
489 func callfchdir(fd int) (r1 uintptr, e1 Errno) {
490 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
491 return
492 }
493
494
495
496 func callfchmod(fd int, mode uint32) (r1 uintptr, e1 Errno) {
497 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
498 return
499 }
500
501
502
503 func callfchmodat(dirfd int, _p0 uintptr, mode uint32, flags int) (r1 uintptr, e1 Errno) {
504 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchmodat)), 4, uintptr(dirfd), _p0, uintptr(mode), uintptr(flags), 0, 0)
505 return
506 }
507
508
509
510 func callfchownat(dirfd int, _p0 uintptr, uid int, gid int, flags int) (r1 uintptr, e1 Errno) {
511 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchownat)), 5, uintptr(dirfd), _p0, uintptr(uid), uintptr(gid), uintptr(flags), 0)
512 return
513 }
514
515
516
517 func callfdatasync(fd int) (r1 uintptr, e1 Errno) {
518 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
519 return
520 }
521
522
523
524 func callgetpgid(pid int) (r1 uintptr, e1 Errno) {
525 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
526 return
527 }
528
529
530
531 func callgetpgrp() (r1 uintptr, e1 Errno) {
532 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getpgrp)), 0, 0, 0, 0, 0, 0, 0)
533 return
534 }
535
536
537
538 func callgetpid() (r1 uintptr, e1 Errno) {
539 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getpid)), 0, 0, 0, 0, 0, 0, 0)
540 return
541 }
542
543
544
545 func callgetppid() (r1 uintptr, e1 Errno) {
546 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getppid)), 0, 0, 0, 0, 0, 0, 0)
547 return
548 }
549
550
551
552 func callgetpriority(which int, who int) (r1 uintptr, e1 Errno) {
553 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
554 return
555 }
556
557
558
559 func callgetrusage(who int, rusage uintptr) (r1 uintptr, e1 Errno) {
560 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrusage)), 2, uintptr(who), rusage, 0, 0, 0, 0)
561 return
562 }
563
564
565
566 func callgetsid(pid int) (r1 uintptr, e1 Errno) {
567 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getsid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
568 return
569 }
570
571
572
573 func callkill(pid int, sig int) (r1 uintptr, e1 Errno) {
574 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_kill)), 2, uintptr(pid), uintptr(sig), 0, 0, 0, 0)
575 return
576 }
577
578
579
580 func callsyslog(typ int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
581 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_syslog)), 3, uintptr(typ), _p0, uintptr(_lenp0), 0, 0, 0)
582 return
583 }
584
585
586
587 func callmkdir(dirfd int, _p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) {
588 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mkdir)), 3, uintptr(dirfd), _p0, uintptr(mode), 0, 0, 0)
589 return
590 }
591
592
593
594 func callmkdirat(dirfd int, _p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) {
595 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mkdirat)), 3, uintptr(dirfd), _p0, uintptr(mode), 0, 0, 0)
596 return
597 }
598
599
600
601 func callmkfifo(_p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) {
602 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mkfifo)), 2, _p0, uintptr(mode), 0, 0, 0, 0)
603 return
604 }
605
606
607
608 func callmknod(_p0 uintptr, mode uint32, dev int) (r1 uintptr, e1 Errno) {
609 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mknod)), 3, _p0, uintptr(mode), uintptr(dev), 0, 0, 0)
610 return
611 }
612
613
614
615 func callmknodat(dirfd int, _p0 uintptr, mode uint32, dev int) (r1 uintptr, e1 Errno) {
616 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mknodat)), 4, uintptr(dirfd), _p0, uintptr(mode), uintptr(dev), 0, 0)
617 return
618 }
619
620
621
622 func callnanosleep(time uintptr, leftover uintptr) (r1 uintptr, e1 Errno) {
623 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_nanosleep)), 2, time, leftover, 0, 0, 0, 0)
624 return
625 }
626
627
628
629 func callopen64(_p0 uintptr, mode int, perm uint32) (r1 uintptr, e1 Errno) {
630 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_open64)), 3, _p0, uintptr(mode), uintptr(perm), 0, 0, 0)
631 return
632 }
633
634
635
636 func callopenat(dirfd int, _p0 uintptr, flags int, mode uint32) (r1 uintptr, e1 Errno) {
637 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_openat)), 4, uintptr(dirfd), _p0, uintptr(flags), uintptr(mode), 0, 0)
638 return
639 }
640
641
642
643 func callread(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
644 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_read)), 3, uintptr(fd), _p0, uintptr(_lenp0), 0, 0, 0)
645 return
646 }
647
648
649
650 func callreadlink(_p0 uintptr, _p1 uintptr, _lenp1 int) (r1 uintptr, e1 Errno) {
651 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_readlink)), 3, _p0, _p1, uintptr(_lenp1), 0, 0, 0)
652 return
653 }
654
655
656
657 func callrenameat(olddirfd int, _p0 uintptr, newdirfd int, _p1 uintptr) (r1 uintptr, e1 Errno) {
658 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_renameat)), 4, uintptr(olddirfd), _p0, uintptr(newdirfd), _p1, 0, 0)
659 return
660 }
661
662
663
664 func callsetdomainname(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
665 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setdomainname)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0)
666 return
667 }
668
669
670
671 func callsethostname(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
672 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_sethostname)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0)
673 return
674 }
675
676
677
678 func callsetpgid(pid int, pgid int) (r1 uintptr, e1 Errno) {
679 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
680 return
681 }
682
683
684
685 func callsetsid() (r1 uintptr, e1 Errno) {
686 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setsid)), 0, 0, 0, 0, 0, 0, 0)
687 return
688 }
689
690
691
692 func callsettimeofday(tv uintptr) (r1 uintptr, e1 Errno) {
693 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_settimeofday)), 1, tv, 0, 0, 0, 0, 0)
694 return
695 }
696
697
698
699 func callsetuid(uid int) (r1 uintptr, e1 Errno) {
700 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
701 return
702 }
703
704
705
706 func callsetgid(uid int) (r1 uintptr, e1 Errno) {
707 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setgid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
708 return
709 }
710
711
712
713 func callsetpriority(which int, who int, prio int) (r1 uintptr, e1 Errno) {
714 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
715 return
716 }
717
718
719
720 func callstatx(dirfd int, _p0 uintptr, flags int, mask int, stat uintptr) (r1 uintptr, e1 Errno) {
721 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_statx)), 5, uintptr(dirfd), _p0, uintptr(flags), uintptr(mask), stat, 0)
722 return
723 }
724
725
726
727 func callsync() (r1 uintptr, e1 Errno) {
728 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_sync)), 0, 0, 0, 0, 0, 0, 0)
729 return
730 }
731
732
733
734 func calltimes(tms uintptr) (r1 uintptr, e1 Errno) {
735 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_times)), 1, tms, 0, 0, 0, 0, 0)
736 return
737 }
738
739
740
741 func callumask(mask int) (r1 uintptr, e1 Errno) {
742 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_umask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
743 return
744 }
745
746
747
748 func calluname(buf uintptr) (r1 uintptr, e1 Errno) {
749 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_uname)), 1, buf, 0, 0, 0, 0, 0)
750 return
751 }
752
753
754
755 func callunlink(_p0 uintptr) (r1 uintptr, e1 Errno) {
756 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_unlink)), 1, _p0, 0, 0, 0, 0, 0)
757 return
758 }
759
760
761
762 func callunlinkat(dirfd int, _p0 uintptr, flags int) (r1 uintptr, e1 Errno) {
763 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_unlinkat)), 3, uintptr(dirfd), _p0, uintptr(flags), 0, 0, 0)
764 return
765 }
766
767
768
769 func callustat(dev int, ubuf uintptr) (r1 uintptr, e1 Errno) {
770 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_ustat)), 2, uintptr(dev), ubuf, 0, 0, 0, 0)
771 return
772 }
773
774
775
776 func callwrite(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
777 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_write)), 3, uintptr(fd), _p0, uintptr(_lenp0), 0, 0, 0)
778 return
779 }
780
781
782
783 func calldup2(oldfd int, newfd int) (r1 uintptr, e1 Errno) {
784 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_dup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0)
785 return
786 }
787
788
789
790 func callposix_fadvise64(fd int, offset int64, length int64, advice int) (r1 uintptr, e1 Errno) {
791 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_posix_fadvise64)), 4, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
792 return
793 }
794
795
796
797 func callfchown(fd int, uid int, gid int) (r1 uintptr, e1 Errno) {
798 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
799 return
800 }
801
802
803
804 func callfstat(fd int, stat uintptr) (r1 uintptr, e1 Errno) {
805 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fstat)), 2, uintptr(fd), stat, 0, 0, 0, 0)
806 return
807 }
808
809
810
811 func callfstatat(dirfd int, _p0 uintptr, stat uintptr, flags int) (r1 uintptr, e1 Errno) {
812 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fstatat)), 4, uintptr(dirfd), _p0, stat, uintptr(flags), 0, 0)
813 return
814 }
815
816
817
818 func callfstatfs(fd int, buf uintptr) (r1 uintptr, e1 Errno) {
819 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fstatfs)), 2, uintptr(fd), buf, 0, 0, 0, 0)
820 return
821 }
822
823
824
825 func callftruncate(fd int, length int64) (r1 uintptr, e1 Errno) {
826 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_ftruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
827 return
828 }
829
830
831
832 func callgetegid() (r1 uintptr, e1 Errno) {
833 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getegid)), 0, 0, 0, 0, 0, 0, 0)
834 return
835 }
836
837
838
839 func callgeteuid() (r1 uintptr, e1 Errno) {
840 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_geteuid)), 0, 0, 0, 0, 0, 0, 0)
841 return
842 }
843
844
845
846 func callgetgid() (r1 uintptr, e1 Errno) {
847 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getgid)), 0, 0, 0, 0, 0, 0, 0)
848 return
849 }
850
851
852
853 func callgetuid() (r1 uintptr, e1 Errno) {
854 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getuid)), 0, 0, 0, 0, 0, 0, 0)
855 return
856 }
857
858
859
860 func calllchown(_p0 uintptr, uid int, gid int) (r1 uintptr, e1 Errno) {
861 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_lchown)), 3, _p0, uintptr(uid), uintptr(gid), 0, 0, 0)
862 return
863 }
864
865
866
867 func calllisten(s int, n int) (r1 uintptr, e1 Errno) {
868 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_listen)), 2, uintptr(s), uintptr(n), 0, 0, 0, 0)
869 return
870 }
871
872
873
874 func calllstat(_p0 uintptr, stat uintptr) (r1 uintptr, e1 Errno) {
875 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_lstat)), 2, _p0, stat, 0, 0, 0, 0)
876 return
877 }
878
879
880
881 func callpause() (r1 uintptr, e1 Errno) {
882 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pause)), 0, 0, 0, 0, 0, 0, 0)
883 return
884 }
885
886
887
888 func callpread64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1 Errno) {
889 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pread64)), 4, uintptr(fd), _p0, uintptr(_lenp0), uintptr(offset), 0, 0)
890 return
891 }
892
893
894
895 func callpwrite64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1 Errno) {
896 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pwrite64)), 4, uintptr(fd), _p0, uintptr(_lenp0), uintptr(offset), 0, 0)
897 return
898 }
899
900
901
902 func callselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr) (r1 uintptr, e1 Errno) {
903 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_select)), 5, uintptr(nfd), r, w, e, timeout, 0)
904 return
905 }
906
907
908
909 func callpselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr, sigmask uintptr) (r1 uintptr, e1 Errno) {
910 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pselect)), 6, uintptr(nfd), r, w, e, timeout, sigmask)
911 return
912 }
913
914
915
916 func callsetregid(rgid int, egid int) (r1 uintptr, e1 Errno) {
917 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
918 return
919 }
920
921
922
923 func callsetreuid(ruid int, euid int) (r1 uintptr, e1 Errno) {
924 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
925 return
926 }
927
928
929
930 func callshutdown(fd int, how int) (r1 uintptr, e1 Errno) {
931 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_shutdown)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0)
932 return
933 }
934
935
936
937 func callsplice(rfd int, roff uintptr, wfd int, woff uintptr, len int, flags int) (r1 uintptr, e1 Errno) {
938 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_splice)), 6, uintptr(rfd), roff, uintptr(wfd), woff, uintptr(len), uintptr(flags))
939 return
940 }
941
942
943
944 func callstat(_p0 uintptr, statptr uintptr) (r1 uintptr, e1 Errno) {
945 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_stat)), 2, _p0, statptr, 0, 0, 0, 0)
946 return
947 }
948
949
950
951 func callstatfs(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
952 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_statfs)), 2, _p0, buf, 0, 0, 0, 0)
953 return
954 }
955
956
957
958 func calltruncate(_p0 uintptr, length int64) (r1 uintptr, e1 Errno) {
959 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_truncate)), 2, _p0, uintptr(length), 0, 0, 0, 0)
960 return
961 }
962
963
964
965 func callbind(s int, addr uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
966 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_bind)), 3, uintptr(s), addr, addrlen, 0, 0, 0)
967 return
968 }
969
970
971
972 func callconnect(s int, addr uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
973 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_connect)), 3, uintptr(s), addr, addrlen, 0, 0, 0)
974 return
975 }
976
977
978
979 func callgetgroups(n int, list uintptr) (r1 uintptr, e1 Errno) {
980 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getgroups)), 2, uintptr(n), list, 0, 0, 0, 0)
981 return
982 }
983
984
985
986 func callsetgroups(n int, list uintptr) (r1 uintptr, e1 Errno) {
987 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setgroups)), 2, uintptr(n), list, 0, 0, 0, 0)
988 return
989 }
990
991
992
993 func callgetsockopt(s int, level int, name int, val uintptr, vallen uintptr) (r1 uintptr, e1 Errno) {
994 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), val, vallen, 0)
995 return
996 }
997
998
999
1000 func callsetsockopt(s int, level int, name int, val uintptr, vallen uintptr) (r1 uintptr, e1 Errno) {
1001 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), val, vallen, 0)
1002 return
1003 }
1004
1005
1006
1007 func callsocket(domain int, typ int, proto int) (r1 uintptr, e1 Errno) {
1008 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
1009 return
1010 }
1011
1012
1013
1014 func callsocketpair(domain int, typ int, proto int, fd uintptr) (r1 uintptr, e1 Errno) {
1015 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), fd, 0, 0)
1016 return
1017 }
1018
1019
1020
1021 func callgetpeername(fd int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
1022 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getpeername)), 3, uintptr(fd), rsa, addrlen, 0, 0, 0)
1023 return
1024 }
1025
1026
1027
1028 func callgetsockname(fd int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
1029 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getsockname)), 3, uintptr(fd), rsa, addrlen, 0, 0, 0)
1030 return
1031 }
1032
1033
1034
1035 func callrecvfrom(fd int, _p0 uintptr, _lenp0 int, flags int, from uintptr, fromlen uintptr) (r1 uintptr, e1 Errno) {
1036 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_recvfrom)), 6, uintptr(fd), _p0, uintptr(_lenp0), uintptr(flags), from, fromlen)
1037 return
1038 }
1039
1040
1041
1042 func callsendto(s int, _p0 uintptr, _lenp0 int, flags int, to uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
1043 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_sendto)), 6, uintptr(s), _p0, uintptr(_lenp0), uintptr(flags), to, addrlen)
1044 return
1045 }
1046
1047
1048
1049 func callnrecvmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
1050 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_nrecvmsg)), 3, uintptr(s), msg, uintptr(flags), 0, 0, 0)
1051 return
1052 }
1053
1054
1055
1056 func callnsendmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
1057 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_nsendmsg)), 3, uintptr(s), msg, uintptr(flags), 0, 0, 0)
1058 return
1059 }
1060
1061
1062
1063 func callmunmap(addr uintptr, length uintptr) (r1 uintptr, e1 Errno) {
1064 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_munmap)), 2, addr, length, 0, 0, 0, 0)
1065 return
1066 }
1067
1068
1069
1070 func callmadvise(_p0 uintptr, _lenp0 int, advice int) (r1 uintptr, e1 Errno) {
1071 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_madvise)), 3, _p0, uintptr(_lenp0), uintptr(advice), 0, 0, 0)
1072 return
1073 }
1074
1075
1076
1077 func callmprotect(_p0 uintptr, _lenp0 int, prot int) (r1 uintptr, e1 Errno) {
1078 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mprotect)), 3, _p0, uintptr(_lenp0), uintptr(prot), 0, 0, 0)
1079 return
1080 }
1081
1082
1083
1084 func callmlock(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
1085 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mlock)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0)
1086 return
1087 }
1088
1089
1090
1091 func callmlockall(flags int) (r1 uintptr, e1 Errno) {
1092 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0)
1093 return
1094 }
1095
1096
1097
1098 func callmsync(_p0 uintptr, _lenp0 int, flags int) (r1 uintptr, e1 Errno) {
1099 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_msync)), 3, _p0, uintptr(_lenp0), uintptr(flags), 0, 0, 0)
1100 return
1101 }
1102
1103
1104
1105 func callmunlock(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
1106 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_munlock)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0)
1107 return
1108 }
1109
1110
1111
1112 func callmunlockall() (r1 uintptr, e1 Errno) {
1113 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_munlockall)), 0, 0, 0, 0, 0, 0, 0)
1114 return
1115 }
1116
1117
1118
1119 func callpipe(p uintptr) (r1 uintptr, e1 Errno) {
1120 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_pipe)), 1, p, 0, 0, 0, 0, 0)
1121 return
1122 }
1123
1124
1125
1126 func callpoll(fds uintptr, nfds int, timeout int) (r1 uintptr, e1 Errno) {
1127 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_poll)), 3, fds, uintptr(nfds), uintptr(timeout), 0, 0, 0)
1128 return
1129 }
1130
1131
1132
1133 func callgettimeofday(tv uintptr, tzp uintptr) (r1 uintptr, e1 Errno) {
1134 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_gettimeofday)), 2, tv, tzp, 0, 0, 0, 0)
1135 return
1136 }
1137
1138
1139
1140 func calltime(t uintptr) (r1 uintptr, e1 Errno) {
1141 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_time)), 1, t, 0, 0, 0, 0, 0)
1142 return
1143 }
1144
1145
1146
1147 func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
1148 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_utime)), 2, _p0, buf, 0, 0, 0, 0)
1149 return
1150 }
1151
1152
1153
1154 func callgetsystemcfg(label int) (r1 uintptr, e1 Errno) {
1155 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getsystemcfg)), 1, uintptr(label), 0, 0, 0, 0, 0)
1156 return
1157 }
1158
1159
1160
1161 func callumount(_p0 uintptr) (r1 uintptr, e1 Errno) {
1162 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_umount)), 1, _p0, 0, 0, 0, 0, 0)
1163 return
1164 }
1165
1166
1167
1168 func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
1169 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0)
1170 return
1171 }
1172
1173
1174
1175 func callsetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
1176 r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0)
1177 return
1178 }
1179
1180
1181
1182 func calllseek(fd int, offset int64, whence int) (r1 uintptr, e1 Errno) {
1183 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_lseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
1184 return
1185 }
1186
1187
1188
1189 func callmmap64(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (r1 uintptr, e1 Errno) {
1190 r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mmap64)), 6, addr, length, uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
1191 return
1192 }
1193
View as plain text