1 // mksyscall_solaris.pl -tags solaris,amd64 syscall_solaris.go syscall_solaris_amd64.go
2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
4 // +build solaris,amd64
13 //go:cgo_import_dynamic libc_pipe pipe "libc.so"
14 //go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so"
15 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
16 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
17 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
18 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
19 //go:cgo_import_dynamic libc_gethostname gethostname "libc.so"
20 //go:cgo_import_dynamic libc_utimes utimes "libc.so"
21 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
22 //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
23 //go:cgo_import_dynamic libc_futimesat futimesat "libc.so"
24 //go:cgo_import_dynamic libc_accept accept "libsocket.so"
25 //go:cgo_import_dynamic libc_recvmsg recvmsg "libsocket.so"
26 //go:cgo_import_dynamic libc_sendmsg sendmsg "libsocket.so"
27 //go:cgo_import_dynamic libc_acct acct "libc.so"
28 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
29 //go:cgo_import_dynamic libc_access access "libc.so"
30 //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
31 //go:cgo_import_dynamic libc_chdir chdir "libc.so"
32 //go:cgo_import_dynamic libc_chmod chmod "libc.so"
33 //go:cgo_import_dynamic libc_chown chown "libc.so"
34 //go:cgo_import_dynamic libc_chroot chroot "libc.so"
35 //go:cgo_import_dynamic libc_close close "libc.so"
36 //go:cgo_import_dynamic libc_creat creat "libc.so"
37 //go:cgo_import_dynamic libc_dup dup "libc.so"
38 //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
39 //go:cgo_import_dynamic libc_exit exit "libc.so"
40 //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
41 //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
42 //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
43 //go:cgo_import_dynamic libc_fchown fchown "libc.so"
44 //go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
45 //go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so"
46 //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
47 //go:cgo_import_dynamic libc_fstat fstat "libc.so"
48 //go:cgo_import_dynamic libc_getdents getdents "libc.so"
49 //go:cgo_import_dynamic libc_getgid getgid "libc.so"
50 //go:cgo_import_dynamic libc_getpid getpid "libc.so"
51 //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
52 //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
53 //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
54 //go:cgo_import_dynamic libc_getegid getegid "libc.so"
55 //go:cgo_import_dynamic libc_getppid getppid "libc.so"
56 //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
57 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
58 //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
59 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
60 //go:cgo_import_dynamic libc_getuid getuid "libc.so"
61 //go:cgo_import_dynamic libc_kill kill "libc.so"
62 //go:cgo_import_dynamic libc_lchown lchown "libc.so"
63 //go:cgo_import_dynamic libc_link link "libc.so"
64 //go:cgo_import_dynamic libc_listen listen "libsocket.so"
65 //go:cgo_import_dynamic libc_lstat lstat "libc.so"
66 //go:cgo_import_dynamic libc_madvise madvise "libc.so"
67 //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
68 //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
69 //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
70 //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
71 //go:cgo_import_dynamic libc_mknod mknod "libc.so"
72 //go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
73 //go:cgo_import_dynamic libc_mlock mlock "libc.so"
74 //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
75 //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
76 //go:cgo_import_dynamic libc_munlock munlock "libc.so"
77 //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
78 //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
79 //go:cgo_import_dynamic libc_open open "libc.so"
80 //go:cgo_import_dynamic libc_openat openat "libc.so"
81 //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
82 //go:cgo_import_dynamic libc_pause pause "libc.so"
83 //go:cgo_import_dynamic libc_pread pread "libc.so"
84 //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
85 //go:cgo_import_dynamic libc_read read "libc.so"
86 //go:cgo_import_dynamic libc_readlink readlink "libc.so"
87 //go:cgo_import_dynamic libc_rename rename "libc.so"
88 //go:cgo_import_dynamic libc_renameat renameat "libc.so"
89 //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
90 //go:cgo_import_dynamic libc_lseek lseek "libc.so"
91 //go:cgo_import_dynamic libc_setegid setegid "libc.so"
92 //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
93 //go:cgo_import_dynamic libc_setgid setgid "libc.so"
94 //go:cgo_import_dynamic libc_sethostname sethostname "libc.so"
95 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
96 //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
97 //go:cgo_import_dynamic libc_setregid setregid "libc.so"
98 //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
99 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
100 //go:cgo_import_dynamic libc_setsid setsid "libc.so"
101 //go:cgo_import_dynamic libc_setuid setuid "libc.so"
102 //go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so"
103 //go:cgo_import_dynamic libc_stat stat "libc.so"
104 //go:cgo_import_dynamic libc_symlink symlink "libc.so"
105 //go:cgo_import_dynamic libc_sync sync "libc.so"
106 //go:cgo_import_dynamic libc_times times "libc.so"
107 //go:cgo_import_dynamic libc_truncate truncate "libc.so"
108 //go:cgo_import_dynamic libc_fsync fsync "libc.so"
109 //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
110 //go:cgo_import_dynamic libc_umask umask "libc.so"
111 //go:cgo_import_dynamic libc_uname uname "libc.so"
112 //go:cgo_import_dynamic libc_umount umount "libc.so"
113 //go:cgo_import_dynamic libc_unlink unlink "libc.so"
114 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
115 //go:cgo_import_dynamic libc_ustat ustat "libc.so"
116 //go:cgo_import_dynamic libc_utime utime "libc.so"
117 //go:cgo_import_dynamic libc_bind bind "libsocket.so"
118 //go:cgo_import_dynamic libc_connect connect "libsocket.so"
119 //go:cgo_import_dynamic libc_mmap mmap "libc.so"
120 //go:cgo_import_dynamic libc_munmap munmap "libc.so"
121 //go:cgo_import_dynamic libc_sendto sendto "libsocket.so"
122 //go:cgo_import_dynamic libc_socket socket "libsocket.so"
123 //go:cgo_import_dynamic libc_socketpair socketpair "libsocket.so"
124 //go:cgo_import_dynamic libc_write write "libc.so"
125 //go:cgo_import_dynamic libc_getsockopt getsockopt "libsocket.so"
126 //go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
127 //go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
128 //go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
129 //go:cgo_import_dynamic libc_sysconf sysconf "libc.so"
131 //go:linkname procpipe libc_pipe
132 //go:linkname procgetsockname libc_getsockname
133 //go:linkname procGetcwd libc_getcwd
134 //go:linkname procgetgroups libc_getgroups
135 //go:linkname procsetgroups libc_setgroups
136 //go:linkname procwait4 libc_wait4
137 //go:linkname procgethostname libc_gethostname
138 //go:linkname procutimes libc_utimes
139 //go:linkname procutimensat libc_utimensat
140 //go:linkname procfcntl libc_fcntl
141 //go:linkname procfutimesat libc_futimesat
142 //go:linkname procaccept libc_accept
143 //go:linkname procrecvmsg libc_recvmsg
144 //go:linkname procsendmsg libc_sendmsg
145 //go:linkname procacct libc_acct
146 //go:linkname procioctl libc_ioctl
147 //go:linkname procAccess libc_access
148 //go:linkname procAdjtime libc_adjtime
149 //go:linkname procChdir libc_chdir
150 //go:linkname procChmod libc_chmod
151 //go:linkname procChown libc_chown
152 //go:linkname procChroot libc_chroot
153 //go:linkname procClose libc_close
154 //go:linkname procCreat libc_creat
155 //go:linkname procDup libc_dup
156 //go:linkname procDup2 libc_dup2
157 //go:linkname procExit libc_exit
158 //go:linkname procFchdir libc_fchdir
159 //go:linkname procFchmod libc_fchmod
160 //go:linkname procFchmodat libc_fchmodat
161 //go:linkname procFchown libc_fchown
162 //go:linkname procFchownat libc_fchownat
163 //go:linkname procFdatasync libc_fdatasync
164 //go:linkname procFpathconf libc_fpathconf
165 //go:linkname procFstat libc_fstat
166 //go:linkname procGetdents libc_getdents
167 //go:linkname procGetgid libc_getgid
168 //go:linkname procGetpid libc_getpid
169 //go:linkname procGetpgid libc_getpgid
170 //go:linkname procGetpgrp libc_getpgrp
171 //go:linkname procGeteuid libc_geteuid
172 //go:linkname procGetegid libc_getegid
173 //go:linkname procGetppid libc_getppid
174 //go:linkname procGetpriority libc_getpriority
175 //go:linkname procGetrlimit libc_getrlimit
176 //go:linkname procGetrusage libc_getrusage
177 //go:linkname procGettimeofday libc_gettimeofday
178 //go:linkname procGetuid libc_getuid
179 //go:linkname procKill libc_kill
180 //go:linkname procLchown libc_lchown
181 //go:linkname procLink libc_link
182 //go:linkname proclisten libc_listen
183 //go:linkname procLstat libc_lstat
184 //go:linkname procMadvise libc_madvise
185 //go:linkname procMkdir libc_mkdir
186 //go:linkname procMkdirat libc_mkdirat
187 //go:linkname procMkfifo libc_mkfifo
188 //go:linkname procMkfifoat libc_mkfifoat
189 //go:linkname procMknod libc_mknod
190 //go:linkname procMknodat libc_mknodat
191 //go:linkname procMlock libc_mlock
192 //go:linkname procMlockall libc_mlockall
193 //go:linkname procMprotect libc_mprotect
194 //go:linkname procMunlock libc_munlock
195 //go:linkname procMunlockall libc_munlockall
196 //go:linkname procNanosleep libc_nanosleep
197 //go:linkname procOpen libc_open
198 //go:linkname procOpenat libc_openat
199 //go:linkname procPathconf libc_pathconf
200 //go:linkname procPause libc_pause
201 //go:linkname procPread libc_pread
202 //go:linkname procPwrite libc_pwrite
203 //go:linkname procread libc_read
204 //go:linkname procReadlink libc_readlink
205 //go:linkname procRename libc_rename
206 //go:linkname procRenameat libc_renameat
207 //go:linkname procRmdir libc_rmdir
208 //go:linkname proclseek libc_lseek
209 //go:linkname procSetegid libc_setegid
210 //go:linkname procSeteuid libc_seteuid
211 //go:linkname procSetgid libc_setgid
212 //go:linkname procSethostname libc_sethostname
213 //go:linkname procSetpgid libc_setpgid
214 //go:linkname procSetpriority libc_setpriority
215 //go:linkname procSetregid libc_setregid
216 //go:linkname procSetreuid libc_setreuid
217 //go:linkname procSetrlimit libc_setrlimit
218 //go:linkname procSetsid libc_setsid
219 //go:linkname procSetuid libc_setuid
220 //go:linkname procshutdown libc_shutdown
221 //go:linkname procStat libc_stat
222 //go:linkname procSymlink libc_symlink
223 //go:linkname procSync libc_sync
224 //go:linkname procTimes libc_times
225 //go:linkname procTruncate libc_truncate
226 //go:linkname procFsync libc_fsync
227 //go:linkname procFtruncate libc_ftruncate
228 //go:linkname procUmask libc_umask
229 //go:linkname procUname libc_uname
230 //go:linkname procumount libc_umount
231 //go:linkname procUnlink libc_unlink
232 //go:linkname procUnlinkat libc_unlinkat
233 //go:linkname procUstat libc_ustat
234 //go:linkname procUtime libc_utime
235 //go:linkname procbind libc_bind
236 //go:linkname procconnect libc_connect
237 //go:linkname procmmap libc_mmap
238 //go:linkname procmunmap libc_munmap
239 //go:linkname procsendto libc_sendto
240 //go:linkname procsocket libc_socket
241 //go:linkname procsocketpair libc_socketpair
242 //go:linkname procwrite libc_write
243 //go:linkname procgetsockopt libc_getsockopt
244 //go:linkname procgetpeername libc_getpeername
245 //go:linkname procsetsockopt libc_setsockopt
246 //go:linkname procrecvfrom libc_recvfrom
247 //go:linkname procsysconf libc_sysconf
366 procsysconf syscallFunc
369 func pipe(p *[2]_C_int) (n int, err error) {
370 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe)), 1, uintptr(unsafe.Pointer(p)), 0, 0, 0, 0, 0)
378 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
379 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
386 func Getcwd(buf []byte) (n int, err error) {
391 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
399 func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
400 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
408 func setgroups(ngid int, gid *_Gid_t) (err error) {
409 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
416 func wait4(pid int32, statusp *_C_int, options int, rusage *Rusage) (wpid int32, err error) {
417 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwait4)), 4, uintptr(pid), uintptr(unsafe.Pointer(statusp)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
425 func gethostname(buf []byte) (n int, err error) {
430 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
438 func utimes(path string, times *[2]Timeval) (err error) {
440 _p0, err = BytePtrFromString(path)
444 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
451 func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) {
453 _p0, err = BytePtrFromString(path)
457 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
464 func fcntl(fd int, cmd int, arg int) (val int, err error) {
465 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
473 func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) {
474 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0)
481 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
482 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
490 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
491 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
499 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
500 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
508 func acct(path *byte) (err error) {
509 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0)
516 func ioctl(fd int, req int, arg uintptr) (err error) {
517 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
524 func Access(path string, mode uint32) (err error) {
526 _p0, err = BytePtrFromString(path)
530 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
537 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
538 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0)
545 func Chdir(path string) (err error) {
547 _p0, err = BytePtrFromString(path)
551 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
558 func Chmod(path string, mode uint32) (err error) {
560 _p0, err = BytePtrFromString(path)
564 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
571 func Chown(path string, uid int, gid int) (err error) {
573 _p0, err = BytePtrFromString(path)
577 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
584 func Chroot(path string) (err error) {
586 _p0, err = BytePtrFromString(path)
590 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
597 func Close(fd int) (err error) {
598 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0)
605 func Creat(path string, mode uint32) (fd int, err error) {
607 _p0, err = BytePtrFromString(path)
611 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
619 func Dup(fd int) (nfd int, err error) {
620 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
628 func Dup2(oldfd int, newfd int) (err error) {
629 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0)
636 func Exit(code int) {
637 sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0)
641 func Fchdir(fd int) (err error) {
642 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
649 func Fchmod(fd int, mode uint32) (err error) {
650 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
657 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
659 _p0, err = BytePtrFromString(path)
663 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
670 func Fchown(fd int, uid int, gid int) (err error) {
671 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
678 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
680 _p0, err = BytePtrFromString(path)
684 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
691 func Fdatasync(fd int) (err error) {
692 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
699 func Fpathconf(fd int, name int) (val int, err error) {
700 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
708 func Fstat(fd int, stat *Stat_t) (err error) {
709 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
716 func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) {
721 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
729 func Getgid() (gid int) {
730 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0)
735 func Getpid() (pid int) {
736 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0)
741 func Getpgid(pid int) (pgid int, err error) {
742 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
750 func Getpgrp() (pgid int, err error) {
751 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0)
759 func Geteuid() (euid int) {
760 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0)
765 func Getegid() (egid int) {
766 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0)
771 func Getppid() (ppid int) {
772 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0)
777 func Getpriority(which int, who int) (n int, err error) {
778 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
786 func Getrlimit(which int, lim *Rlimit) (err error) {
787 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
794 func Getrusage(who int, rusage *Rusage) (err error) {
795 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0)
802 func Gettimeofday(tv *Timeval) (err error) {
803 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0)
810 func Getuid() (uid int) {
811 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0)
816 func Kill(pid int, signum syscall.Signal) (err error) {
817 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
824 func Lchown(path string, uid int, gid int) (err error) {
826 _p0, err = BytePtrFromString(path)
830 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
837 func Link(path string, link string) (err error) {
839 _p0, err = BytePtrFromString(path)
844 _p1, err = BytePtrFromString(link)
848 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
855 func Listen(s int, backlog int) (err error) {
856 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
863 func Lstat(path string, stat *Stat_t) (err error) {
865 _p0, err = BytePtrFromString(path)
869 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
876 func Madvise(b []byte, advice int) (err error) {
881 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0)
888 func Mkdir(path string, mode uint32) (err error) {
890 _p0, err = BytePtrFromString(path)
894 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
901 func Mkdirat(dirfd int, path string, mode uint32) (err error) {
903 _p0, err = BytePtrFromString(path)
907 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
914 func Mkfifo(path string, mode uint32) (err error) {
916 _p0, err = BytePtrFromString(path)
920 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
927 func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
929 _p0, err = BytePtrFromString(path)
933 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
940 func Mknod(path string, mode uint32, dev int) (err error) {
942 _p0, err = BytePtrFromString(path)
946 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0)
953 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
955 _p0, err = BytePtrFromString(path)
959 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
966 func Mlock(b []byte) (err error) {
971 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
978 func Mlockall(flags int) (err error) {
979 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0)
986 func Mprotect(b []byte, prot int) (err error) {
991 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0)
998 func Munlock(b []byte) (err error) {
1003 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
1010 func Munlockall() (err error) {
1011 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0)
1018 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1019 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0)
1026 func Open(path string, mode int, perm uint32) (fd int, err error) {
1028 _p0, err = BytePtrFromString(path)
1032 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
1040 func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
1042 _p0, err = BytePtrFromString(path)
1046 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
1054 func Pathconf(path string, name int) (val int, err error) {
1056 _p0, err = BytePtrFromString(path)
1060 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0)
1068 func Pause() (err error) {
1069 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0)
1076 func Pread(fd int, p []byte, offset int64) (n int, err error) {
1081 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1089 func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1094 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1102 func read(fd int, p []byte) (n int, err error) {
1107 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1115 func Readlink(path string, buf []byte) (n int, err error) {
1117 _p0, err = BytePtrFromString(path)
1125 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0)
1133 func Rename(from string, to string) (err error) {
1135 _p0, err = BytePtrFromString(from)
1140 _p1, err = BytePtrFromString(to)
1144 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1151 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
1153 _p0, err = BytePtrFromString(oldpath)
1158 _p1, err = BytePtrFromString(newpath)
1162 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1169 func Rmdir(path string) (err error) {
1171 _p0, err = BytePtrFromString(path)
1175 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1182 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1183 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
1184 newoffset = int64(r0)
1191 func Setegid(egid int) (err error) {
1192 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
1199 func Seteuid(euid int) (err error) {
1200 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
1207 func Setgid(gid int) (err error) {
1208 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
1215 func Sethostname(p []byte) (err error) {
1220 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0)
1227 func Setpgid(pid int, pgid int) (err error) {
1228 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
1235 func Setpriority(which int, who int, prio int) (err error) {
1236 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
1243 func Setregid(rgid int, egid int) (err error) {
1244 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
1251 func Setreuid(ruid int, euid int) (err error) {
1252 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
1259 func Setrlimit(which int, lim *Rlimit) (err error) {
1260 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
1267 func Setsid() (pid int, err error) {
1268 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0)
1276 func Setuid(uid int) (err error) {
1277 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
1284 func Shutdown(s int, how int) (err error) {
1285 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
1292 func Stat(path string, stat *Stat_t) (err error) {
1294 _p0, err = BytePtrFromString(path)
1298 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
1305 func Symlink(path string, link string) (err error) {
1307 _p0, err = BytePtrFromString(path)
1312 _p1, err = BytePtrFromString(link)
1316 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1323 func Sync() (err error) {
1324 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0)
1331 func Times(tms *Tms) (ticks uintptr, err error) {
1332 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0)
1340 func Truncate(path string, length int64) (err error) {
1342 _p0, err = BytePtrFromString(path)
1346 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
1353 func Fsync(fd int) (err error) {
1354 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
1361 func Ftruncate(fd int, length int64) (err error) {
1362 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
1369 func Umask(mask int) (oldmask int) {
1370 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
1375 func Uname(buf *Utsname) (err error) {
1376 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
1383 func Unmount(target string, flags int) (err error) {
1385 _p0, err = BytePtrFromString(target)
1389 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0)
1396 func Unlink(path string) (err error) {
1398 _p0, err = BytePtrFromString(path)
1402 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1409 func Unlinkat(dirfd int, path string, flags int) (err error) {
1411 _p0, err = BytePtrFromString(path)
1415 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0)
1422 func Ustat(dev int, ubuf *Ustat_t) (err error) {
1423 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0)
1430 func Utime(path string, buf *Utimbuf) (err error) {
1432 _p0, err = BytePtrFromString(path)
1436 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
1443 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1444 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procbind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
1451 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1452 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procconnect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
1459 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1460 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1468 func munmap(addr uintptr, length uintptr) (err error) {
1469 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
1476 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1481 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1488 func socket(domain int, typ int, proto int) (fd int, err error) {
1489 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsocket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
1497 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1498 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsocketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
1505 func write(fd int, p []byte) (n int, err error) {
1510 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1518 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1519 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1526 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1527 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
1534 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1535 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1542 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1547 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)))
1555 func sysconf(name int) (n int64, err error) {
1556 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsysconf)), 1, uintptr(name), 0, 0, 0, 0, 0)