1 // mksyscall_solaris.pl syscall_solaris.go syscall_solaris_amd64.go
2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
4 // +build amd64,solaris
13 //go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so"
14 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
15 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
16 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
17 //go:cgo_import_dynamic libc_utimes utimes "libc.so"
18 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
19 //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
20 //go:cgo_import_dynamic libc_futimesat futimesat "libc.so"
21 //go:cgo_import_dynamic libc_accept accept "libsocket.so"
22 //go:cgo_import_dynamic libc_recvmsg recvmsg "libsocket.so"
23 //go:cgo_import_dynamic libc_sendmsg sendmsg "libsocket.so"
24 //go:cgo_import_dynamic libc_acct acct "libc.so"
25 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
26 //go:cgo_import_dynamic libc_access access "libc.so"
27 //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
28 //go:cgo_import_dynamic libc_chdir chdir "libc.so"
29 //go:cgo_import_dynamic libc_chmod chmod "libc.so"
30 //go:cgo_import_dynamic libc_chown chown "libc.so"
31 //go:cgo_import_dynamic libc_chroot chroot "libc.so"
32 //go:cgo_import_dynamic libc_close close "libc.so"
33 //go:cgo_import_dynamic libc_creat creat "libc.so"
34 //go:cgo_import_dynamic libc_dup dup "libc.so"
35 //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
36 //go:cgo_import_dynamic libc_exit exit "libc.so"
37 //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
38 //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
39 //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
40 //go:cgo_import_dynamic libc_fchown fchown "libc.so"
41 //go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
42 //go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so"
43 //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
44 //go:cgo_import_dynamic libc_fstat fstat "libc.so"
45 //go:cgo_import_dynamic libc_getdents getdents "libc.so"
46 //go:cgo_import_dynamic libc_getgid getgid "libc.so"
47 //go:cgo_import_dynamic libc_getpid getpid "libc.so"
48 //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
49 //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
50 //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
51 //go:cgo_import_dynamic libc_getegid getegid "libc.so"
52 //go:cgo_import_dynamic libc_getppid getppid "libc.so"
53 //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
54 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
55 //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
56 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
57 //go:cgo_import_dynamic libc_getuid getuid "libc.so"
58 //go:cgo_import_dynamic libc_kill kill "libc.so"
59 //go:cgo_import_dynamic libc_lchown lchown "libc.so"
60 //go:cgo_import_dynamic libc_link link "libc.so"
61 //go:cgo_import_dynamic libc_listen listen "libsocket.so"
62 //go:cgo_import_dynamic libc_lstat lstat "libc.so"
63 //go:cgo_import_dynamic libc_madvise madvise "libc.so"
64 //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
65 //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
66 //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
67 //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
68 //go:cgo_import_dynamic libc_mknod mknod "libc.so"
69 //go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
70 //go:cgo_import_dynamic libc_mlock mlock "libc.so"
71 //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
72 //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
73 //go:cgo_import_dynamic libc_munlock munlock "libc.so"
74 //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
75 //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
76 //go:cgo_import_dynamic libc_open open "libc.so"
77 //go:cgo_import_dynamic libc_openat openat "libc.so"
78 //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
79 //go:cgo_import_dynamic libc_pause pause "libc.so"
80 //go:cgo_import_dynamic libc_pread pread "libc.so"
81 //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
82 //go:cgo_import_dynamic libc_read read "libc.so"
83 //go:cgo_import_dynamic libc_readlink readlink "libc.so"
84 //go:cgo_import_dynamic libc_rename rename "libc.so"
85 //go:cgo_import_dynamic libc_renameat renameat "libc.so"
86 //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
87 //go:cgo_import_dynamic libc_lseek lseek "libc.so"
88 //go:cgo_import_dynamic libc_setegid setegid "libc.so"
89 //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
90 //go:cgo_import_dynamic libc_setgid setgid "libc.so"
91 //go:cgo_import_dynamic libc_sethostname sethostname "libc.so"
92 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
93 //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
94 //go:cgo_import_dynamic libc_setregid setregid "libc.so"
95 //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
96 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
97 //go:cgo_import_dynamic libc_setsid setsid "libc.so"
98 //go:cgo_import_dynamic libc_setuid setuid "libc.so"
99 //go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so"
100 //go:cgo_import_dynamic libc_stat stat "libc.so"
101 //go:cgo_import_dynamic libc_symlink symlink "libc.so"
102 //go:cgo_import_dynamic libc_sync sync "libc.so"
103 //go:cgo_import_dynamic libc_times times "libc.so"
104 //go:cgo_import_dynamic libc_truncate truncate "libc.so"
105 //go:cgo_import_dynamic libc_fsync fsync "libc.so"
106 //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
107 //go:cgo_import_dynamic libc_umask umask "libc.so"
108 //go:cgo_import_dynamic libc_uname uname "libc.so"
109 //go:cgo_import_dynamic libc_umount umount "libc.so"
110 //go:cgo_import_dynamic libc_unlink unlink "libc.so"
111 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
112 //go:cgo_import_dynamic libc_ustat ustat "libc.so"
113 //go:cgo_import_dynamic libc_utime utime "libc.so"
114 //go:cgo_import_dynamic libc_bind bind "libsocket.so"
115 //go:cgo_import_dynamic libc_connect connect "libsocket.so"
116 //go:cgo_import_dynamic libc_mmap mmap "libc.so"
117 //go:cgo_import_dynamic libc_munmap munmap "libc.so"
118 //go:cgo_import_dynamic libc_sendto sendto "libsocket.so"
119 //go:cgo_import_dynamic libc_socket socket "libsocket.so"
120 //go:cgo_import_dynamic libc_socketpair socketpair "libsocket.so"
121 //go:cgo_import_dynamic libc_write write "libc.so"
122 //go:cgo_import_dynamic libc_getsockopt getsockopt "libsocket.so"
123 //go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
124 //go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
125 //go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
126 //go:cgo_import_dynamic libc_sysconf sysconf "libc.so"
128 //go:linkname procgetsockname libc_getsockname
129 //go:linkname procGetcwd libc_getcwd
130 //go:linkname procgetgroups libc_getgroups
131 //go:linkname procsetgroups libc_setgroups
132 //go:linkname procutimes libc_utimes
133 //go:linkname procutimensat libc_utimensat
134 //go:linkname procfcntl libc_fcntl
135 //go:linkname procfutimesat libc_futimesat
136 //go:linkname procaccept libc_accept
137 //go:linkname procrecvmsg libc_recvmsg
138 //go:linkname procsendmsg libc_sendmsg
139 //go:linkname procacct libc_acct
140 //go:linkname procioctl libc_ioctl
141 //go:linkname procAccess libc_access
142 //go:linkname procAdjtime libc_adjtime
143 //go:linkname procChdir libc_chdir
144 //go:linkname procChmod libc_chmod
145 //go:linkname procChown libc_chown
146 //go:linkname procChroot libc_chroot
147 //go:linkname procClose libc_close
148 //go:linkname procCreat libc_creat
149 //go:linkname procDup libc_dup
150 //go:linkname procDup2 libc_dup2
151 //go:linkname procExit libc_exit
152 //go:linkname procFchdir libc_fchdir
153 //go:linkname procFchmod libc_fchmod
154 //go:linkname procFchmodat libc_fchmodat
155 //go:linkname procFchown libc_fchown
156 //go:linkname procFchownat libc_fchownat
157 //go:linkname procFdatasync libc_fdatasync
158 //go:linkname procFpathconf libc_fpathconf
159 //go:linkname procFstat libc_fstat
160 //go:linkname procGetdents libc_getdents
161 //go:linkname procGetgid libc_getgid
162 //go:linkname procGetpid libc_getpid
163 //go:linkname procGetpgid libc_getpgid
164 //go:linkname procGetpgrp libc_getpgrp
165 //go:linkname procGeteuid libc_geteuid
166 //go:linkname procGetegid libc_getegid
167 //go:linkname procGetppid libc_getppid
168 //go:linkname procGetpriority libc_getpriority
169 //go:linkname procGetrlimit libc_getrlimit
170 //go:linkname procGetrusage libc_getrusage
171 //go:linkname procGettimeofday libc_gettimeofday
172 //go:linkname procGetuid libc_getuid
173 //go:linkname procKill libc_kill
174 //go:linkname procLchown libc_lchown
175 //go:linkname procLink libc_link
176 //go:linkname proclisten libc_listen
177 //go:linkname procLstat libc_lstat
178 //go:linkname procMadvise libc_madvise
179 //go:linkname procMkdir libc_mkdir
180 //go:linkname procMkdirat libc_mkdirat
181 //go:linkname procMkfifo libc_mkfifo
182 //go:linkname procMkfifoat libc_mkfifoat
183 //go:linkname procMknod libc_mknod
184 //go:linkname procMknodat libc_mknodat
185 //go:linkname procMlock libc_mlock
186 //go:linkname procMlockall libc_mlockall
187 //go:linkname procMprotect libc_mprotect
188 //go:linkname procMunlock libc_munlock
189 //go:linkname procMunlockall libc_munlockall
190 //go:linkname procNanosleep libc_nanosleep
191 //go:linkname procOpen libc_open
192 //go:linkname procOpenat libc_openat
193 //go:linkname procPathconf libc_pathconf
194 //go:linkname procPause libc_pause
195 //go:linkname procPread libc_pread
196 //go:linkname procPwrite libc_pwrite
197 //go:linkname procread libc_read
198 //go:linkname procReadlink libc_readlink
199 //go:linkname procRename libc_rename
200 //go:linkname procRenameat libc_renameat
201 //go:linkname procRmdir libc_rmdir
202 //go:linkname proclseek libc_lseek
203 //go:linkname procSetegid libc_setegid
204 //go:linkname procSeteuid libc_seteuid
205 //go:linkname procSetgid libc_setgid
206 //go:linkname procSethostname libc_sethostname
207 //go:linkname procSetpgid libc_setpgid
208 //go:linkname procSetpriority libc_setpriority
209 //go:linkname procSetregid libc_setregid
210 //go:linkname procSetreuid libc_setreuid
211 //go:linkname procSetrlimit libc_setrlimit
212 //go:linkname procSetsid libc_setsid
213 //go:linkname procSetuid libc_setuid
214 //go:linkname procshutdown libc_shutdown
215 //go:linkname procStat libc_stat
216 //go:linkname procSymlink libc_symlink
217 //go:linkname procSync libc_sync
218 //go:linkname procTimes libc_times
219 //go:linkname procTruncate libc_truncate
220 //go:linkname procFsync libc_fsync
221 //go:linkname procFtruncate libc_ftruncate
222 //go:linkname procUmask libc_umask
223 //go:linkname procUname libc_uname
224 //go:linkname procumount libc_umount
225 //go:linkname procUnlink libc_unlink
226 //go:linkname procUnlinkat libc_unlinkat
227 //go:linkname procUstat libc_ustat
228 //go:linkname procUtime libc_utime
229 //go:linkname procbind libc_bind
230 //go:linkname procconnect libc_connect
231 //go:linkname procmmap libc_mmap
232 //go:linkname procmunmap libc_munmap
233 //go:linkname procsendto libc_sendto
234 //go:linkname procsocket libc_socket
235 //go:linkname procsocketpair libc_socketpair
236 //go:linkname procwrite libc_write
237 //go:linkname procgetsockopt libc_getsockopt
238 //go:linkname procgetpeername libc_getpeername
239 //go:linkname procsetsockopt libc_setsockopt
240 //go:linkname procrecvfrom libc_recvfrom
241 //go:linkname procsysconf libc_sysconf
357 procsysconf syscallFunc
360 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
361 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
368 func Getcwd(buf []byte) (n int, err error) {
373 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
381 func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
382 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
390 func setgroups(ngid int, gid *_Gid_t) (err error) {
391 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
398 func utimes(path string, times *[2]Timeval) (err error) {
400 _p0, err = BytePtrFromString(path)
404 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
405 use(unsafe.Pointer(_p0))
412 func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) {
414 _p0, err = BytePtrFromString(path)
418 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
419 use(unsafe.Pointer(_p0))
426 func fcntl(fd int, cmd int, arg int) (val int, err error) {
427 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
435 func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) {
436 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0)
443 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
444 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
452 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
453 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
461 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
462 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
470 func acct(path *byte) (err error) {
471 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0)
478 func ioctl(fd int, req int, arg uintptr) (err error) {
479 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
486 func Access(path string, mode uint32) (err error) {
488 _p0, err = BytePtrFromString(path)
492 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
493 use(unsafe.Pointer(_p0))
500 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
501 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0)
508 func Chdir(path string) (err error) {
510 _p0, err = BytePtrFromString(path)
514 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
515 use(unsafe.Pointer(_p0))
522 func Chmod(path string, mode uint32) (err error) {
524 _p0, err = BytePtrFromString(path)
528 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
529 use(unsafe.Pointer(_p0))
536 func Chown(path string, uid int, gid int) (err error) {
538 _p0, err = BytePtrFromString(path)
542 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
543 use(unsafe.Pointer(_p0))
550 func Chroot(path string) (err error) {
552 _p0, err = BytePtrFromString(path)
556 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
557 use(unsafe.Pointer(_p0))
564 func Close(fd int) (err error) {
565 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0)
572 func Creat(path string, mode uint32) (fd int, err error) {
574 _p0, err = BytePtrFromString(path)
578 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
579 use(unsafe.Pointer(_p0))
587 func Dup(fd int) (nfd int, err error) {
588 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
596 func Dup2(oldfd int, newfd int) (err error) {
597 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0)
604 func Exit(code int) {
605 sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0)
609 func Fchdir(fd int) (err error) {
610 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
617 func Fchmod(fd int, mode uint32) (err error) {
618 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
625 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
627 _p0, err = BytePtrFromString(path)
631 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
632 use(unsafe.Pointer(_p0))
639 func Fchown(fd int, uid int, gid int) (err error) {
640 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
647 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
649 _p0, err = BytePtrFromString(path)
653 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
654 use(unsafe.Pointer(_p0))
661 func Fdatasync(fd int) (err error) {
662 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
669 func Fpathconf(fd int, name int) (val int, err error) {
670 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
678 func Fstat(fd int, stat *Stat_t) (err error) {
679 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
686 func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) {
691 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
699 func Getgid() (gid int) {
700 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0)
705 func Getpid() (pid int) {
706 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0)
711 func Getpgid(pid int) (pgid int, err error) {
712 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
720 func Getpgrp() (pgid int, err error) {
721 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0)
729 func Geteuid() (euid int) {
730 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0)
735 func Getegid() (egid int) {
736 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0)
741 func Getppid() (ppid int) {
742 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0)
747 func Getpriority(which int, who int) (n int, err error) {
748 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
756 func Getrlimit(which int, lim *Rlimit) (err error) {
757 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
764 func Getrusage(who int, rusage *Rusage) (err error) {
765 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0)
772 func Gettimeofday(tv *Timeval) (err error) {
773 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0)
780 func Getuid() (uid int) {
781 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0)
786 func Kill(pid int, signum syscall.Signal) (err error) {
787 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
794 func Lchown(path string, uid int, gid int) (err error) {
796 _p0, err = BytePtrFromString(path)
800 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
801 use(unsafe.Pointer(_p0))
808 func Link(path string, link string) (err error) {
810 _p0, err = BytePtrFromString(path)
815 _p1, err = BytePtrFromString(link)
819 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
820 use(unsafe.Pointer(_p0))
821 use(unsafe.Pointer(_p1))
828 func Listen(s int, backlog int) (err error) {
829 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
836 func Lstat(path string, stat *Stat_t) (err error) {
838 _p0, err = BytePtrFromString(path)
842 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
843 use(unsafe.Pointer(_p0))
850 func Madvise(b []byte, advice int) (err error) {
855 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0)
862 func Mkdir(path string, mode uint32) (err error) {
864 _p0, err = BytePtrFromString(path)
868 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
869 use(unsafe.Pointer(_p0))
876 func Mkdirat(dirfd int, path string, mode uint32) (err error) {
878 _p0, err = BytePtrFromString(path)
882 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
883 use(unsafe.Pointer(_p0))
890 func Mkfifo(path string, mode uint32) (err error) {
892 _p0, err = BytePtrFromString(path)
896 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
897 use(unsafe.Pointer(_p0))
904 func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
906 _p0, err = BytePtrFromString(path)
910 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
911 use(unsafe.Pointer(_p0))
918 func Mknod(path string, mode uint32, dev int) (err error) {
920 _p0, err = BytePtrFromString(path)
924 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0)
925 use(unsafe.Pointer(_p0))
932 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
934 _p0, err = BytePtrFromString(path)
938 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
939 use(unsafe.Pointer(_p0))
946 func Mlock(b []byte) (err error) {
951 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
958 func Mlockall(flags int) (err error) {
959 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0)
966 func Mprotect(b []byte, prot int) (err error) {
971 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0)
978 func Munlock(b []byte) (err error) {
983 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
990 func Munlockall() (err error) {
991 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0)
998 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
999 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0)
1006 func Open(path string, mode int, perm uint32) (fd int, err error) {
1008 _p0, err = BytePtrFromString(path)
1012 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
1013 use(unsafe.Pointer(_p0))
1021 func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
1023 _p0, err = BytePtrFromString(path)
1027 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
1028 use(unsafe.Pointer(_p0))
1036 func Pathconf(path string, name int) (val int, err error) {
1038 _p0, err = BytePtrFromString(path)
1042 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0)
1043 use(unsafe.Pointer(_p0))
1051 func Pause() (err error) {
1052 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0)
1059 func Pread(fd int, p []byte, offset int64) (n int, err error) {
1064 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1072 func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1077 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1085 func read(fd int, p []byte) (n int, err error) {
1090 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1098 func Readlink(path string, buf []byte) (n int, err error) {
1100 _p0, err = BytePtrFromString(path)
1108 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0)
1109 use(unsafe.Pointer(_p0))
1117 func Rename(from string, to string) (err error) {
1119 _p0, err = BytePtrFromString(from)
1124 _p1, err = BytePtrFromString(to)
1128 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1129 use(unsafe.Pointer(_p0))
1130 use(unsafe.Pointer(_p1))
1137 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
1139 _p0, err = BytePtrFromString(oldpath)
1144 _p1, err = BytePtrFromString(newpath)
1148 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1149 use(unsafe.Pointer(_p0))
1150 use(unsafe.Pointer(_p1))
1157 func Rmdir(path string) (err error) {
1159 _p0, err = BytePtrFromString(path)
1163 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1164 use(unsafe.Pointer(_p0))
1171 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1172 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
1173 newoffset = int64(r0)
1180 func Setegid(egid int) (err error) {
1181 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
1188 func Seteuid(euid int) (err error) {
1189 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
1196 func Setgid(gid int) (err error) {
1197 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
1204 func Sethostname(p []byte) (err error) {
1209 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0)
1216 func Setpgid(pid int, pgid int) (err error) {
1217 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
1224 func Setpriority(which int, who int, prio int) (err error) {
1225 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
1232 func Setregid(rgid int, egid int) (err error) {
1233 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
1240 func Setreuid(ruid int, euid int) (err error) {
1241 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
1248 func Setrlimit(which int, lim *Rlimit) (err error) {
1249 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
1256 func Setsid() (pid int, err error) {
1257 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0)
1265 func Setuid(uid int) (err error) {
1266 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
1273 func Shutdown(s int, how int) (err error) {
1274 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
1281 func Stat(path string, stat *Stat_t) (err error) {
1283 _p0, err = BytePtrFromString(path)
1287 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
1288 use(unsafe.Pointer(_p0))
1295 func Symlink(path string, link string) (err error) {
1297 _p0, err = BytePtrFromString(path)
1302 _p1, err = BytePtrFromString(link)
1306 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1307 use(unsafe.Pointer(_p0))
1308 use(unsafe.Pointer(_p1))
1315 func Sync() (err error) {
1316 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0)
1323 func Times(tms *Tms) (ticks uintptr, err error) {
1324 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0)
1332 func Truncate(path string, length int64) (err error) {
1334 _p0, err = BytePtrFromString(path)
1338 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
1339 use(unsafe.Pointer(_p0))
1346 func Fsync(fd int) (err error) {
1347 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
1354 func Ftruncate(fd int, length int64) (err error) {
1355 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
1362 func Umask(mask int) (oldmask int) {
1363 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
1368 func Uname(buf *Utsname) (err error) {
1369 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
1376 func Unmount(target string, flags int) (err error) {
1378 _p0, err = BytePtrFromString(target)
1382 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0)
1383 use(unsafe.Pointer(_p0))
1390 func Unlink(path string) (err error) {
1392 _p0, err = BytePtrFromString(path)
1396 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1397 use(unsafe.Pointer(_p0))
1404 func Unlinkat(dirfd int, path string) (err error) {
1406 _p0, err = BytePtrFromString(path)
1410 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0)
1411 use(unsafe.Pointer(_p0))
1418 func Ustat(dev int, ubuf *Ustat_t) (err error) {
1419 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0)
1426 func Utime(path string, buf *Utimbuf) (err error) {
1428 _p0, err = BytePtrFromString(path)
1432 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
1433 use(unsafe.Pointer(_p0))
1440 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1441 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procbind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
1448 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1449 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procconnect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
1456 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1457 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1465 func munmap(addr uintptr, length uintptr) (err error) {
1466 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
1473 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1478 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1485 func socket(domain int, typ int, proto int) (fd int, err error) {
1486 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsocket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
1494 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1495 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsocketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
1502 func write(fd int, p []byte) (n int, err error) {
1507 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1515 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1516 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1523 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1524 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
1531 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1532 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1539 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1544 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
1552 func sysconf(name int) (n int64, err error) {
1553 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsysconf)), 1, uintptr(name), 0, 0, 0, 0, 0)