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