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