1
2
3
4
5
6
7 package unix
8
9
131 import "C"
132 import (
133 "syscall"
134 )
135
136
137
138 func callutimes(_p0 uintptr, times uintptr) (r1 uintptr, e1 Errno) {
139 r1 = uintptr(C.utimes(C.uintptr_t(_p0), C.uintptr_t(times)))
140 e1 = syscall.GetErrno()
141 return
142 }
143
144
145
146 func callutimensat(dirfd int, _p0 uintptr, times uintptr, flag int) (r1 uintptr, e1 Errno) {
147 r1 = uintptr(C.utimensat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(times), C.int(flag)))
148 e1 = syscall.GetErrno()
149 return
150 }
151
152
153
154 func callgetcwd(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
155 r1 = uintptr(C.getcwd(C.uintptr_t(_p0), C.size_t(_lenp0)))
156 e1 = syscall.GetErrno()
157 return
158 }
159
160
161
162 func callaccept(s int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
163 r1 = uintptr(C.accept(C.int(s), C.uintptr_t(rsa), C.uintptr_t(addrlen)))
164 e1 = syscall.GetErrno()
165 return
166 }
167
168
169
170 func callgetdirent(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
171 r1 = uintptr(C.getdirent(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0)))
172 e1 = syscall.GetErrno()
173 return
174 }
175
176
177
178 func callwait4(pid int, status uintptr, options int, rusage uintptr) (r1 uintptr, e1 Errno) {
179 r1 = uintptr(C.wait4(C.int(pid), C.uintptr_t(status), C.int(options), C.uintptr_t(rusage)))
180 e1 = syscall.GetErrno()
181 return
182 }
183
184
185
186 func callioctl(fd int, req int, arg uintptr) (r1 uintptr, e1 Errno) {
187 r1 = uintptr(C.ioctl(C.int(fd), C.int(req), C.uintptr_t(arg)))
188 e1 = syscall.GetErrno()
189 return
190 }
191
192
193
194 func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) {
195 r1 = uintptr(C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg)))
196 e1 = syscall.GetErrno()
197 return
198 }
199
200
201
202 func callfsync_range(fd int, how int, start int64, length int64) (r1 uintptr, e1 Errno) {
203 r1 = uintptr(C.fsync_range(C.int(fd), C.int(how), C.longlong(start), C.longlong(length)))
204 e1 = syscall.GetErrno()
205 return
206 }
207
208
209
210 func callacct(_p0 uintptr) (r1 uintptr, e1 Errno) {
211 r1 = uintptr(C.acct(C.uintptr_t(_p0)))
212 e1 = syscall.GetErrno()
213 return
214 }
215
216
217
218 func callchdir(_p0 uintptr) (r1 uintptr, e1 Errno) {
219 r1 = uintptr(C.chdir(C.uintptr_t(_p0)))
220 e1 = syscall.GetErrno()
221 return
222 }
223
224
225
226 func callchroot(_p0 uintptr) (r1 uintptr, e1 Errno) {
227 r1 = uintptr(C.chroot(C.uintptr_t(_p0)))
228 e1 = syscall.GetErrno()
229 return
230 }
231
232
233
234 func callclose(fd int) (r1 uintptr, e1 Errno) {
235 r1 = uintptr(C.close(C.int(fd)))
236 e1 = syscall.GetErrno()
237 return
238 }
239
240
241
242 func calldup(oldfd int) (r1 uintptr, e1 Errno) {
243 r1 = uintptr(C.dup(C.int(oldfd)))
244 e1 = syscall.GetErrno()
245 return
246 }
247
248
249
250 func callexit(code int) (r1 uintptr, e1 Errno) {
251 r1 = uintptr(C.exit(C.int(code)))
252 e1 = syscall.GetErrno()
253 return
254 }
255
256
257
258 func callfaccessat(dirfd int, _p0 uintptr, mode uint32, flags int) (r1 uintptr, e1 Errno) {
259 r1 = uintptr(C.faccessat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags)))
260 e1 = syscall.GetErrno()
261 return
262 }
263
264
265
266 func callfchdir(fd int) (r1 uintptr, e1 Errno) {
267 r1 = uintptr(C.fchdir(C.int(fd)))
268 e1 = syscall.GetErrno()
269 return
270 }
271
272
273
274 func callfchmod(fd int, mode uint32) (r1 uintptr, e1 Errno) {
275 r1 = uintptr(C.fchmod(C.int(fd), C.uint(mode)))
276 e1 = syscall.GetErrno()
277 return
278 }
279
280
281
282 func callfchmodat(dirfd int, _p0 uintptr, mode uint32, flags int) (r1 uintptr, e1 Errno) {
283 r1 = uintptr(C.fchmodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags)))
284 e1 = syscall.GetErrno()
285 return
286 }
287
288
289
290 func callfchownat(dirfd int, _p0 uintptr, uid int, gid int, flags int) (r1 uintptr, e1 Errno) {
291 r1 = uintptr(C.fchownat(C.int(dirfd), C.uintptr_t(_p0), C.int(uid), C.int(gid), C.int(flags)))
292 e1 = syscall.GetErrno()
293 return
294 }
295
296
297
298 func callfdatasync(fd int) (r1 uintptr, e1 Errno) {
299 r1 = uintptr(C.fdatasync(C.int(fd)))
300 e1 = syscall.GetErrno()
301 return
302 }
303
304
305
306 func callgetpgid(pid int) (r1 uintptr, e1 Errno) {
307 r1 = uintptr(C.getpgid(C.int(pid)))
308 e1 = syscall.GetErrno()
309 return
310 }
311
312
313
314 func callgetpgrp() (r1 uintptr, e1 Errno) {
315 r1 = uintptr(C.getpgrp())
316 e1 = syscall.GetErrno()
317 return
318 }
319
320
321
322 func callgetpid() (r1 uintptr, e1 Errno) {
323 r1 = uintptr(C.getpid())
324 e1 = syscall.GetErrno()
325 return
326 }
327
328
329
330 func callgetppid() (r1 uintptr, e1 Errno) {
331 r1 = uintptr(C.getppid())
332 e1 = syscall.GetErrno()
333 return
334 }
335
336
337
338 func callgetpriority(which int, who int) (r1 uintptr, e1 Errno) {
339 r1 = uintptr(C.getpriority(C.int(which), C.int(who)))
340 e1 = syscall.GetErrno()
341 return
342 }
343
344
345
346 func callgetrusage(who int, rusage uintptr) (r1 uintptr, e1 Errno) {
347 r1 = uintptr(C.getrusage(C.int(who), C.uintptr_t(rusage)))
348 e1 = syscall.GetErrno()
349 return
350 }
351
352
353
354 func callgetsid(pid int) (r1 uintptr, e1 Errno) {
355 r1 = uintptr(C.getsid(C.int(pid)))
356 e1 = syscall.GetErrno()
357 return
358 }
359
360
361
362 func callkill(pid int, sig int) (r1 uintptr, e1 Errno) {
363 r1 = uintptr(C.kill(C.int(pid), C.int(sig)))
364 e1 = syscall.GetErrno()
365 return
366 }
367
368
369
370 func callsyslog(typ int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
371 r1 = uintptr(C.syslog(C.int(typ), C.uintptr_t(_p0), C.size_t(_lenp0)))
372 e1 = syscall.GetErrno()
373 return
374 }
375
376
377
378 func callmkdir(dirfd int, _p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) {
379 r1 = uintptr(C.mkdir(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode)))
380 e1 = syscall.GetErrno()
381 return
382 }
383
384
385
386 func callmkdirat(dirfd int, _p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) {
387 r1 = uintptr(C.mkdirat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode)))
388 e1 = syscall.GetErrno()
389 return
390 }
391
392
393
394 func callmkfifo(_p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) {
395 r1 = uintptr(C.mkfifo(C.uintptr_t(_p0), C.uint(mode)))
396 e1 = syscall.GetErrno()
397 return
398 }
399
400
401
402 func callmknod(_p0 uintptr, mode uint32, dev int) (r1 uintptr, e1 Errno) {
403 r1 = uintptr(C.mknod(C.uintptr_t(_p0), C.uint(mode), C.int(dev)))
404 e1 = syscall.GetErrno()
405 return
406 }
407
408
409
410 func callmknodat(dirfd int, _p0 uintptr, mode uint32, dev int) (r1 uintptr, e1 Errno) {
411 r1 = uintptr(C.mknodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(dev)))
412 e1 = syscall.GetErrno()
413 return
414 }
415
416
417
418 func callnanosleep(time uintptr, leftover uintptr) (r1 uintptr, e1 Errno) {
419 r1 = uintptr(C.nanosleep(C.uintptr_t(time), C.uintptr_t(leftover)))
420 e1 = syscall.GetErrno()
421 return
422 }
423
424
425
426 func callopen64(_p0 uintptr, mode int, perm uint32) (r1 uintptr, e1 Errno) {
427 r1 = uintptr(C.open64(C.uintptr_t(_p0), C.int(mode), C.uint(perm)))
428 e1 = syscall.GetErrno()
429 return
430 }
431
432
433
434 func callopenat(dirfd int, _p0 uintptr, flags int, mode uint32) (r1 uintptr, e1 Errno) {
435 r1 = uintptr(C.openat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.uint(mode)))
436 e1 = syscall.GetErrno()
437 return
438 }
439
440
441
442 func callread(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
443 r1 = uintptr(C.read(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0)))
444 e1 = syscall.GetErrno()
445 return
446 }
447
448
449
450 func callreadlink(_p0 uintptr, _p1 uintptr, _lenp1 int) (r1 uintptr, e1 Errno) {
451 r1 = uintptr(C.readlink(C.uintptr_t(_p0), C.uintptr_t(_p1), C.size_t(_lenp1)))
452 e1 = syscall.GetErrno()
453 return
454 }
455
456
457
458 func callrenameat(olddirfd int, _p0 uintptr, newdirfd int, _p1 uintptr) (r1 uintptr, e1 Errno) {
459 r1 = uintptr(C.renameat(C.int(olddirfd), C.uintptr_t(_p0), C.int(newdirfd), C.uintptr_t(_p1)))
460 e1 = syscall.GetErrno()
461 return
462 }
463
464
465
466 func callsetdomainname(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
467 r1 = uintptr(C.setdomainname(C.uintptr_t(_p0), C.size_t(_lenp0)))
468 e1 = syscall.GetErrno()
469 return
470 }
471
472
473
474 func callsethostname(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
475 r1 = uintptr(C.sethostname(C.uintptr_t(_p0), C.size_t(_lenp0)))
476 e1 = syscall.GetErrno()
477 return
478 }
479
480
481
482 func callsetpgid(pid int, pgid int) (r1 uintptr, e1 Errno) {
483 r1 = uintptr(C.setpgid(C.int(pid), C.int(pgid)))
484 e1 = syscall.GetErrno()
485 return
486 }
487
488
489
490 func callsetsid() (r1 uintptr, e1 Errno) {
491 r1 = uintptr(C.setsid())
492 e1 = syscall.GetErrno()
493 return
494 }
495
496
497
498 func callsettimeofday(tv uintptr) (r1 uintptr, e1 Errno) {
499 r1 = uintptr(C.settimeofday(C.uintptr_t(tv)))
500 e1 = syscall.GetErrno()
501 return
502 }
503
504
505
506 func callsetuid(uid int) (r1 uintptr, e1 Errno) {
507 r1 = uintptr(C.setuid(C.int(uid)))
508 e1 = syscall.GetErrno()
509 return
510 }
511
512
513
514 func callsetgid(uid int) (r1 uintptr, e1 Errno) {
515 r1 = uintptr(C.setgid(C.int(uid)))
516 e1 = syscall.GetErrno()
517 return
518 }
519
520
521
522 func callsetpriority(which int, who int, prio int) (r1 uintptr, e1 Errno) {
523 r1 = uintptr(C.setpriority(C.int(which), C.int(who), C.int(prio)))
524 e1 = syscall.GetErrno()
525 return
526 }
527
528
529
530 func callstatx(dirfd int, _p0 uintptr, flags int, mask int, stat uintptr) (r1 uintptr, e1 Errno) {
531 r1 = uintptr(C.statx(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.int(mask), C.uintptr_t(stat)))
532 e1 = syscall.GetErrno()
533 return
534 }
535
536
537
538 func callsync() (r1 uintptr, e1 Errno) {
539 r1 = uintptr(C.sync())
540 e1 = syscall.GetErrno()
541 return
542 }
543
544
545
546 func calltimes(tms uintptr) (r1 uintptr, e1 Errno) {
547 r1 = uintptr(C.times(C.uintptr_t(tms)))
548 e1 = syscall.GetErrno()
549 return
550 }
551
552
553
554 func callumask(mask int) (r1 uintptr, e1 Errno) {
555 r1 = uintptr(C.umask(C.int(mask)))
556 e1 = syscall.GetErrno()
557 return
558 }
559
560
561
562 func calluname(buf uintptr) (r1 uintptr, e1 Errno) {
563 r1 = uintptr(C.uname(C.uintptr_t(buf)))
564 e1 = syscall.GetErrno()
565 return
566 }
567
568
569
570 func callunlink(_p0 uintptr) (r1 uintptr, e1 Errno) {
571 r1 = uintptr(C.unlink(C.uintptr_t(_p0)))
572 e1 = syscall.GetErrno()
573 return
574 }
575
576
577
578 func callunlinkat(dirfd int, _p0 uintptr, flags int) (r1 uintptr, e1 Errno) {
579 r1 = uintptr(C.unlinkat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags)))
580 e1 = syscall.GetErrno()
581 return
582 }
583
584
585
586 func callustat(dev int, ubuf uintptr) (r1 uintptr, e1 Errno) {
587 r1 = uintptr(C.ustat(C.int(dev), C.uintptr_t(ubuf)))
588 e1 = syscall.GetErrno()
589 return
590 }
591
592
593
594 func callwrite(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
595 r1 = uintptr(C.write(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0)))
596 e1 = syscall.GetErrno()
597 return
598 }
599
600
601
602 func calldup2(oldfd int, newfd int) (r1 uintptr, e1 Errno) {
603 r1 = uintptr(C.dup2(C.int(oldfd), C.int(newfd)))
604 e1 = syscall.GetErrno()
605 return
606 }
607
608
609
610 func callposix_fadvise64(fd int, offset int64, length int64, advice int) (r1 uintptr, e1 Errno) {
611 r1 = uintptr(C.posix_fadvise64(C.int(fd), C.longlong(offset), C.longlong(length), C.int(advice)))
612 e1 = syscall.GetErrno()
613 return
614 }
615
616
617
618 func callfchown(fd int, uid int, gid int) (r1 uintptr, e1 Errno) {
619 r1 = uintptr(C.fchown(C.int(fd), C.int(uid), C.int(gid)))
620 e1 = syscall.GetErrno()
621 return
622 }
623
624
625
626 func callfstat(fd int, stat uintptr) (r1 uintptr, e1 Errno) {
627 r1 = uintptr(C.fstat(C.int(fd), C.uintptr_t(stat)))
628 e1 = syscall.GetErrno()
629 return
630 }
631
632
633
634 func callfstatat(dirfd int, _p0 uintptr, stat uintptr, flags int) (r1 uintptr, e1 Errno) {
635 r1 = uintptr(C.fstatat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(stat), C.int(flags)))
636 e1 = syscall.GetErrno()
637 return
638 }
639
640
641
642 func callfstatfs(fd int, buf uintptr) (r1 uintptr, e1 Errno) {
643 r1 = uintptr(C.fstatfs(C.int(fd), C.uintptr_t(buf)))
644 e1 = syscall.GetErrno()
645 return
646 }
647
648
649
650 func callftruncate(fd int, length int64) (r1 uintptr, e1 Errno) {
651 r1 = uintptr(C.ftruncate(C.int(fd), C.longlong(length)))
652 e1 = syscall.GetErrno()
653 return
654 }
655
656
657
658 func callgetegid() (r1 uintptr, e1 Errno) {
659 r1 = uintptr(C.getegid())
660 e1 = syscall.GetErrno()
661 return
662 }
663
664
665
666 func callgeteuid() (r1 uintptr, e1 Errno) {
667 r1 = uintptr(C.geteuid())
668 e1 = syscall.GetErrno()
669 return
670 }
671
672
673
674 func callgetgid() (r1 uintptr, e1 Errno) {
675 r1 = uintptr(C.getgid())
676 e1 = syscall.GetErrno()
677 return
678 }
679
680
681
682 func callgetuid() (r1 uintptr, e1 Errno) {
683 r1 = uintptr(C.getuid())
684 e1 = syscall.GetErrno()
685 return
686 }
687
688
689
690 func calllchown(_p0 uintptr, uid int, gid int) (r1 uintptr, e1 Errno) {
691 r1 = uintptr(C.lchown(C.uintptr_t(_p0), C.int(uid), C.int(gid)))
692 e1 = syscall.GetErrno()
693 return
694 }
695
696
697
698 func calllisten(s int, n int) (r1 uintptr, e1 Errno) {
699 r1 = uintptr(C.listen(C.int(s), C.int(n)))
700 e1 = syscall.GetErrno()
701 return
702 }
703
704
705
706 func calllstat(_p0 uintptr, stat uintptr) (r1 uintptr, e1 Errno) {
707 r1 = uintptr(C.lstat(C.uintptr_t(_p0), C.uintptr_t(stat)))
708 e1 = syscall.GetErrno()
709 return
710 }
711
712
713
714 func callpause() (r1 uintptr, e1 Errno) {
715 r1 = uintptr(C.pause())
716 e1 = syscall.GetErrno()
717 return
718 }
719
720
721
722 func callpread64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1 Errno) {
723 r1 = uintptr(C.pread64(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0), C.longlong(offset)))
724 e1 = syscall.GetErrno()
725 return
726 }
727
728
729
730 func callpwrite64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1 Errno) {
731 r1 = uintptr(C.pwrite64(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0), C.longlong(offset)))
732 e1 = syscall.GetErrno()
733 return
734 }
735
736
737
738 func callselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr) (r1 uintptr, e1 Errno) {
739 r1 = uintptr(C.c_select(C.int(nfd), C.uintptr_t(r), C.uintptr_t(w), C.uintptr_t(e), C.uintptr_t(timeout)))
740 e1 = syscall.GetErrno()
741 return
742 }
743
744
745
746 func callpselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr, sigmask uintptr) (r1 uintptr, e1 Errno) {
747 r1 = uintptr(C.pselect(C.int(nfd), C.uintptr_t(r), C.uintptr_t(w), C.uintptr_t(e), C.uintptr_t(timeout), C.uintptr_t(sigmask)))
748 e1 = syscall.GetErrno()
749 return
750 }
751
752
753
754 func callsetregid(rgid int, egid int) (r1 uintptr, e1 Errno) {
755 r1 = uintptr(C.setregid(C.int(rgid), C.int(egid)))
756 e1 = syscall.GetErrno()
757 return
758 }
759
760
761
762 func callsetreuid(ruid int, euid int) (r1 uintptr, e1 Errno) {
763 r1 = uintptr(C.setreuid(C.int(ruid), C.int(euid)))
764 e1 = syscall.GetErrno()
765 return
766 }
767
768
769
770 func callshutdown(fd int, how int) (r1 uintptr, e1 Errno) {
771 r1 = uintptr(C.shutdown(C.int(fd), C.int(how)))
772 e1 = syscall.GetErrno()
773 return
774 }
775
776
777
778 func callsplice(rfd int, roff uintptr, wfd int, woff uintptr, len int, flags int) (r1 uintptr, e1 Errno) {
779 r1 = uintptr(C.splice(C.int(rfd), C.uintptr_t(roff), C.int(wfd), C.uintptr_t(woff), C.int(len), C.int(flags)))
780 e1 = syscall.GetErrno()
781 return
782 }
783
784
785
786 func callstat(_p0 uintptr, statptr uintptr) (r1 uintptr, e1 Errno) {
787 r1 = uintptr(C.stat(C.uintptr_t(_p0), C.uintptr_t(statptr)))
788 e1 = syscall.GetErrno()
789 return
790 }
791
792
793
794 func callstatfs(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
795 r1 = uintptr(C.statfs(C.uintptr_t(_p0), C.uintptr_t(buf)))
796 e1 = syscall.GetErrno()
797 return
798 }
799
800
801
802 func calltruncate(_p0 uintptr, length int64) (r1 uintptr, e1 Errno) {
803 r1 = uintptr(C.truncate(C.uintptr_t(_p0), C.longlong(length)))
804 e1 = syscall.GetErrno()
805 return
806 }
807
808
809
810 func callbind(s int, addr uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
811 r1 = uintptr(C.bind(C.int(s), C.uintptr_t(addr), C.uintptr_t(addrlen)))
812 e1 = syscall.GetErrno()
813 return
814 }
815
816
817
818 func callconnect(s int, addr uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
819 r1 = uintptr(C.connect(C.int(s), C.uintptr_t(addr), C.uintptr_t(addrlen)))
820 e1 = syscall.GetErrno()
821 return
822 }
823
824
825
826 func callgetgroups(n int, list uintptr) (r1 uintptr, e1 Errno) {
827 r1 = uintptr(C.getgroups(C.int(n), C.uintptr_t(list)))
828 e1 = syscall.GetErrno()
829 return
830 }
831
832
833
834 func callsetgroups(n int, list uintptr) (r1 uintptr, e1 Errno) {
835 r1 = uintptr(C.setgroups(C.int(n), C.uintptr_t(list)))
836 e1 = syscall.GetErrno()
837 return
838 }
839
840
841
842 func callgetsockopt(s int, level int, name int, val uintptr, vallen uintptr) (r1 uintptr, e1 Errno) {
843 r1 = uintptr(C.getsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(val), C.uintptr_t(vallen)))
844 e1 = syscall.GetErrno()
845 return
846 }
847
848
849
850 func callsetsockopt(s int, level int, name int, val uintptr, vallen uintptr) (r1 uintptr, e1 Errno) {
851 r1 = uintptr(C.setsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(val), C.uintptr_t(vallen)))
852 e1 = syscall.GetErrno()
853 return
854 }
855
856
857
858 func callsocket(domain int, typ int, proto int) (r1 uintptr, e1 Errno) {
859 r1 = uintptr(C.socket(C.int(domain), C.int(typ), C.int(proto)))
860 e1 = syscall.GetErrno()
861 return
862 }
863
864
865
866 func callsocketpair(domain int, typ int, proto int, fd uintptr) (r1 uintptr, e1 Errno) {
867 r1 = uintptr(C.socketpair(C.int(domain), C.int(typ), C.int(proto), C.uintptr_t(fd)))
868 e1 = syscall.GetErrno()
869 return
870 }
871
872
873
874 func callgetpeername(fd int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
875 r1 = uintptr(C.getpeername(C.int(fd), C.uintptr_t(rsa), C.uintptr_t(addrlen)))
876 e1 = syscall.GetErrno()
877 return
878 }
879
880
881
882 func callgetsockname(fd int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
883 r1 = uintptr(C.getsockname(C.int(fd), C.uintptr_t(rsa), C.uintptr_t(addrlen)))
884 e1 = syscall.GetErrno()
885 return
886 }
887
888
889
890 func callrecvfrom(fd int, _p0 uintptr, _lenp0 int, flags int, from uintptr, fromlen uintptr) (r1 uintptr, e1 Errno) {
891 r1 = uintptr(C.recvfrom(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0), C.int(flags), C.uintptr_t(from), C.uintptr_t(fromlen)))
892 e1 = syscall.GetErrno()
893 return
894 }
895
896
897
898 func callsendto(s int, _p0 uintptr, _lenp0 int, flags int, to uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) {
899 r1 = uintptr(C.sendto(C.int(s), C.uintptr_t(_p0), C.size_t(_lenp0), C.int(flags), C.uintptr_t(to), C.uintptr_t(addrlen)))
900 e1 = syscall.GetErrno()
901 return
902 }
903
904
905
906 func callnrecvmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
907 r1 = uintptr(C.nrecvmsg(C.int(s), C.uintptr_t(msg), C.int(flags)))
908 e1 = syscall.GetErrno()
909 return
910 }
911
912
913
914 func callnsendmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
915 r1 = uintptr(C.nsendmsg(C.int(s), C.uintptr_t(msg), C.int(flags)))
916 e1 = syscall.GetErrno()
917 return
918 }
919
920
921
922 func callmunmap(addr uintptr, length uintptr) (r1 uintptr, e1 Errno) {
923 r1 = uintptr(C.munmap(C.uintptr_t(addr), C.uintptr_t(length)))
924 e1 = syscall.GetErrno()
925 return
926 }
927
928
929
930 func callmadvise(_p0 uintptr, _lenp0 int, advice int) (r1 uintptr, e1 Errno) {
931 r1 = uintptr(C.madvise(C.uintptr_t(_p0), C.size_t(_lenp0), C.int(advice)))
932 e1 = syscall.GetErrno()
933 return
934 }
935
936
937
938 func callmprotect(_p0 uintptr, _lenp0 int, prot int) (r1 uintptr, e1 Errno) {
939 r1 = uintptr(C.mprotect(C.uintptr_t(_p0), C.size_t(_lenp0), C.int(prot)))
940 e1 = syscall.GetErrno()
941 return
942 }
943
944
945
946 func callmlock(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
947 r1 = uintptr(C.mlock(C.uintptr_t(_p0), C.size_t(_lenp0)))
948 e1 = syscall.GetErrno()
949 return
950 }
951
952
953
954 func callmlockall(flags int) (r1 uintptr, e1 Errno) {
955 r1 = uintptr(C.mlockall(C.int(flags)))
956 e1 = syscall.GetErrno()
957 return
958 }
959
960
961
962 func callmsync(_p0 uintptr, _lenp0 int, flags int) (r1 uintptr, e1 Errno) {
963 r1 = uintptr(C.msync(C.uintptr_t(_p0), C.size_t(_lenp0), C.int(flags)))
964 e1 = syscall.GetErrno()
965 return
966 }
967
968
969
970 func callmunlock(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) {
971 r1 = uintptr(C.munlock(C.uintptr_t(_p0), C.size_t(_lenp0)))
972 e1 = syscall.GetErrno()
973 return
974 }
975
976
977
978 func callmunlockall() (r1 uintptr, e1 Errno) {
979 r1 = uintptr(C.munlockall())
980 e1 = syscall.GetErrno()
981 return
982 }
983
984
985
986 func callpipe(p uintptr) (r1 uintptr, e1 Errno) {
987 r1 = uintptr(C.pipe(C.uintptr_t(p)))
988 e1 = syscall.GetErrno()
989 return
990 }
991
992
993
994 func callpoll(fds uintptr, nfds int, timeout int) (r1 uintptr, e1 Errno) {
995 r1 = uintptr(C.poll(C.uintptr_t(fds), C.int(nfds), C.int(timeout)))
996 e1 = syscall.GetErrno()
997 return
998 }
999
1000
1001
1002 func callgettimeofday(tv uintptr, tzp uintptr) (r1 uintptr, e1 Errno) {
1003 r1 = uintptr(C.gettimeofday(C.uintptr_t(tv), C.uintptr_t(tzp)))
1004 e1 = syscall.GetErrno()
1005 return
1006 }
1007
1008
1009
1010 func calltime(t uintptr) (r1 uintptr, e1 Errno) {
1011 r1 = uintptr(C.time(C.uintptr_t(t)))
1012 e1 = syscall.GetErrno()
1013 return
1014 }
1015
1016
1017
1018 func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
1019 r1 = uintptr(C.utime(C.uintptr_t(_p0), C.uintptr_t(buf)))
1020 e1 = syscall.GetErrno()
1021 return
1022 }
1023
1024
1025
1026 func callgetsystemcfg(label int) (r1 uintptr, e1 Errno) {
1027 r1 = uintptr(C.getsystemcfg(C.int(label)))
1028 e1 = syscall.GetErrno()
1029 return
1030 }
1031
1032
1033
1034 func callumount(_p0 uintptr) (r1 uintptr, e1 Errno) {
1035 r1 = uintptr(C.umount(C.uintptr_t(_p0)))
1036 e1 = syscall.GetErrno()
1037 return
1038 }
1039
1040
1041
1042 func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
1043 r1 = uintptr(C.getrlimit(C.int(resource), C.uintptr_t(rlim)))
1044 e1 = syscall.GetErrno()
1045 return
1046 }
1047
1048
1049
1050 func callsetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
1051 r1 = uintptr(C.setrlimit(C.int(resource), C.uintptr_t(rlim)))
1052 e1 = syscall.GetErrno()
1053 return
1054 }
1055
1056
1057
1058 func calllseek(fd int, offset int64, whence int) (r1 uintptr, e1 Errno) {
1059 r1 = uintptr(C.lseek(C.int(fd), C.longlong(offset), C.int(whence)))
1060 e1 = syscall.GetErrno()
1061 return
1062 }
1063
1064
1065
1066 func callmmap64(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (r1 uintptr, e1 Errno) {
1067 r1 = uintptr(C.mmap64(C.uintptr_t(addr), C.uintptr_t(length), C.int(prot), C.int(flags), C.int(fd), C.longlong(offset)))
1068 e1 = syscall.GetErrno()
1069 return
1070 }
1071
View as plain text