1// mksyscall_solaris.pl syscall_solaris.go syscall_solaris_amd64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,solaris
5
6package unix
7
8import (
9	"syscall"
10	"unsafe"
11)
12
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"
130
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
248
249var (
250	procpipe,
251	procgetsockname,
252	procGetcwd,
253	procgetgroups,
254	procsetgroups,
255	procwait4,
256	procgethostname,
257	procutimes,
258	procutimensat,
259	procfcntl,
260	procfutimesat,
261	procaccept,
262	procrecvmsg,
263	procsendmsg,
264	procacct,
265	procioctl,
266	procAccess,
267	procAdjtime,
268	procChdir,
269	procChmod,
270	procChown,
271	procChroot,
272	procClose,
273	procCreat,
274	procDup,
275	procDup2,
276	procExit,
277	procFchdir,
278	procFchmod,
279	procFchmodat,
280	procFchown,
281	procFchownat,
282	procFdatasync,
283	procFpathconf,
284	procFstat,
285	procGetdents,
286	procGetgid,
287	procGetpid,
288	procGetpgid,
289	procGetpgrp,
290	procGeteuid,
291	procGetegid,
292	procGetppid,
293	procGetpriority,
294	procGetrlimit,
295	procGetrusage,
296	procGettimeofday,
297	procGetuid,
298	procKill,
299	procLchown,
300	procLink,
301	proclisten,
302	procLstat,
303	procMadvise,
304	procMkdir,
305	procMkdirat,
306	procMkfifo,
307	procMkfifoat,
308	procMknod,
309	procMknodat,
310	procMlock,
311	procMlockall,
312	procMprotect,
313	procMunlock,
314	procMunlockall,
315	procNanosleep,
316	procOpen,
317	procOpenat,
318	procPathconf,
319	procPause,
320	procPread,
321	procPwrite,
322	procread,
323	procReadlink,
324	procRename,
325	procRenameat,
326	procRmdir,
327	proclseek,
328	procSetegid,
329	procSeteuid,
330	procSetgid,
331	procSethostname,
332	procSetpgid,
333	procSetpriority,
334	procSetregid,
335	procSetreuid,
336	procSetrlimit,
337	procSetsid,
338	procSetuid,
339	procshutdown,
340	procStat,
341	procSymlink,
342	procSync,
343	procTimes,
344	procTruncate,
345	procFsync,
346	procFtruncate,
347	procUmask,
348	procUname,
349	procumount,
350	procUnlink,
351	procUnlinkat,
352	procUstat,
353	procUtime,
354	procbind,
355	procconnect,
356	procmmap,
357	procmunmap,
358	procsendto,
359	procsocket,
360	procsocketpair,
361	procwrite,
362	procgetsockopt,
363	procgetpeername,
364	procsetsockopt,
365	procrecvfrom,
366	procsysconf syscallFunc
367)
368
369func 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)
371	n = int(r0)
372	if e1 != 0 {
373		err = e1
374	}
375	return
376}
377
378func 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)
380	if e1 != 0 {
381		err = e1
382	}
383	return
384}
385
386func Getcwd(buf []byte) (n int, err error) {
387	var _p0 *byte
388	if len(buf) > 0 {
389		_p0 = &buf[0]
390	}
391	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
392	n = int(r0)
393	if e1 != 0 {
394		err = e1
395	}
396	return
397}
398
399func 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)
401	n = int(r0)
402	if e1 != 0 {
403		err = e1
404	}
405	return
406}
407
408func 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)
410	if e1 != 0 {
411		err = e1
412	}
413	return
414}
415
416func 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)
418	wpid = int32(r0)
419	if e1 != 0 {
420		err = e1
421	}
422	return
423}
424
425func gethostname(buf []byte) (n int, err error) {
426	var _p0 *byte
427	if len(buf) > 0 {
428		_p0 = &buf[0]
429	}
430	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
431	n = int(r0)
432	if e1 != 0 {
433		err = e1
434	}
435	return
436}
437
438func utimes(path string, times *[2]Timeval) (err error) {
439	var _p0 *byte
440	_p0, err = BytePtrFromString(path)
441	if err != nil {
442		return
443	}
444	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
445	use(unsafe.Pointer(_p0))
446	if e1 != 0 {
447		err = e1
448	}
449	return
450}
451
452func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) {
453	var _p0 *byte
454	_p0, err = BytePtrFromString(path)
455	if err != nil {
456		return
457	}
458	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
459	use(unsafe.Pointer(_p0))
460	if e1 != 0 {
461		err = e1
462	}
463	return
464}
465
466func fcntl(fd int, cmd int, arg int) (val int, err error) {
467	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
468	val = int(r0)
469	if e1 != 0 {
470		err = e1
471	}
472	return
473}
474
475func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) {
476	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0)
477	if e1 != 0 {
478		err = e1
479	}
480	return
481}
482
483func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
484	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
485	fd = int(r0)
486	if e1 != 0 {
487		err = e1
488	}
489	return
490}
491
492func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
493	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
494	n = int(r0)
495	if e1 != 0 {
496		err = e1
497	}
498	return
499}
500
501func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
502	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
503	n = int(r0)
504	if e1 != 0 {
505		err = e1
506	}
507	return
508}
509
510func acct(path *byte) (err error) {
511	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0)
512	if e1 != 0 {
513		err = e1
514	}
515	return
516}
517
518func ioctl(fd int, req int, arg uintptr) (err error) {
519	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
520	if e1 != 0 {
521		err = e1
522	}
523	return
524}
525
526func Access(path string, mode uint32) (err error) {
527	var _p0 *byte
528	_p0, err = BytePtrFromString(path)
529	if err != nil {
530		return
531	}
532	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
533	use(unsafe.Pointer(_p0))
534	if e1 != 0 {
535		err = e1
536	}
537	return
538}
539
540func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
541	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0)
542	if e1 != 0 {
543		err = e1
544	}
545	return
546}
547
548func Chdir(path string) (err error) {
549	var _p0 *byte
550	_p0, err = BytePtrFromString(path)
551	if err != nil {
552		return
553	}
554	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
555	use(unsafe.Pointer(_p0))
556	if e1 != 0 {
557		err = e1
558	}
559	return
560}
561
562func Chmod(path string, mode uint32) (err error) {
563	var _p0 *byte
564	_p0, err = BytePtrFromString(path)
565	if err != nil {
566		return
567	}
568	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
569	use(unsafe.Pointer(_p0))
570	if e1 != 0 {
571		err = e1
572	}
573	return
574}
575
576func Chown(path string, uid int, gid int) (err error) {
577	var _p0 *byte
578	_p0, err = BytePtrFromString(path)
579	if err != nil {
580		return
581	}
582	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
583	use(unsafe.Pointer(_p0))
584	if e1 != 0 {
585		err = e1
586	}
587	return
588}
589
590func Chroot(path string) (err error) {
591	var _p0 *byte
592	_p0, err = BytePtrFromString(path)
593	if err != nil {
594		return
595	}
596	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
597	use(unsafe.Pointer(_p0))
598	if e1 != 0 {
599		err = e1
600	}
601	return
602}
603
604func Close(fd int) (err error) {
605	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0)
606	if e1 != 0 {
607		err = e1
608	}
609	return
610}
611
612func Creat(path string, mode uint32) (fd int, err error) {
613	var _p0 *byte
614	_p0, err = BytePtrFromString(path)
615	if err != nil {
616		return
617	}
618	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
619	use(unsafe.Pointer(_p0))
620	fd = int(r0)
621	if e1 != 0 {
622		err = e1
623	}
624	return
625}
626
627func Dup(fd int) (nfd int, err error) {
628	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
629	nfd = int(r0)
630	if e1 != 0 {
631		err = e1
632	}
633	return
634}
635
636func Dup2(oldfd int, newfd int) (err error) {
637	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0)
638	if e1 != 0 {
639		err = e1
640	}
641	return
642}
643
644func Exit(code int) {
645	sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0)
646	return
647}
648
649func Fchdir(fd int) (err error) {
650	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
651	if e1 != 0 {
652		err = e1
653	}
654	return
655}
656
657func Fchmod(fd int, mode uint32) (err error) {
658	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
659	if e1 != 0 {
660		err = e1
661	}
662	return
663}
664
665func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
666	var _p0 *byte
667	_p0, err = BytePtrFromString(path)
668	if err != nil {
669		return
670	}
671	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
672	use(unsafe.Pointer(_p0))
673	if e1 != 0 {
674		err = e1
675	}
676	return
677}
678
679func Fchown(fd int, uid int, gid int) (err error) {
680	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
681	if e1 != 0 {
682		err = e1
683	}
684	return
685}
686
687func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
688	var _p0 *byte
689	_p0, err = BytePtrFromString(path)
690	if err != nil {
691		return
692	}
693	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
694	use(unsafe.Pointer(_p0))
695	if e1 != 0 {
696		err = e1
697	}
698	return
699}
700
701func Fdatasync(fd int) (err error) {
702	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
703	if e1 != 0 {
704		err = e1
705	}
706	return
707}
708
709func Fpathconf(fd int, name int) (val int, err error) {
710	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
711	val = int(r0)
712	if e1 != 0 {
713		err = e1
714	}
715	return
716}
717
718func Fstat(fd int, stat *Stat_t) (err error) {
719	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
720	if e1 != 0 {
721		err = e1
722	}
723	return
724}
725
726func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) {
727	var _p0 *byte
728	if len(buf) > 0 {
729		_p0 = &buf[0]
730	}
731	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
732	n = int(r0)
733	if e1 != 0 {
734		err = e1
735	}
736	return
737}
738
739func Getgid() (gid int) {
740	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0)
741	gid = int(r0)
742	return
743}
744
745func Getpid() (pid int) {
746	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0)
747	pid = int(r0)
748	return
749}
750
751func Getpgid(pid int) (pgid int, err error) {
752	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
753	pgid = int(r0)
754	if e1 != 0 {
755		err = e1
756	}
757	return
758}
759
760func Getpgrp() (pgid int, err error) {
761	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0)
762	pgid = int(r0)
763	if e1 != 0 {
764		err = e1
765	}
766	return
767}
768
769func Geteuid() (euid int) {
770	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0)
771	euid = int(r0)
772	return
773}
774
775func Getegid() (egid int) {
776	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0)
777	egid = int(r0)
778	return
779}
780
781func Getppid() (ppid int) {
782	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0)
783	ppid = int(r0)
784	return
785}
786
787func Getpriority(which int, who int) (n int, err error) {
788	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
789	n = int(r0)
790	if e1 != 0 {
791		err = e1
792	}
793	return
794}
795
796func Getrlimit(which int, lim *Rlimit) (err error) {
797	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
798	if e1 != 0 {
799		err = e1
800	}
801	return
802}
803
804func Getrusage(who int, rusage *Rusage) (err error) {
805	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0)
806	if e1 != 0 {
807		err = e1
808	}
809	return
810}
811
812func Gettimeofday(tv *Timeval) (err error) {
813	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0)
814	if e1 != 0 {
815		err = e1
816	}
817	return
818}
819
820func Getuid() (uid int) {
821	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0)
822	uid = int(r0)
823	return
824}
825
826func Kill(pid int, signum syscall.Signal) (err error) {
827	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
828	if e1 != 0 {
829		err = e1
830	}
831	return
832}
833
834func Lchown(path string, uid int, gid int) (err error) {
835	var _p0 *byte
836	_p0, err = BytePtrFromString(path)
837	if err != nil {
838		return
839	}
840	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
841	use(unsafe.Pointer(_p0))
842	if e1 != 0 {
843		err = e1
844	}
845	return
846}
847
848func Link(path string, link string) (err error) {
849	var _p0 *byte
850	_p0, err = BytePtrFromString(path)
851	if err != nil {
852		return
853	}
854	var _p1 *byte
855	_p1, err = BytePtrFromString(link)
856	if err != nil {
857		return
858	}
859	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
860	use(unsafe.Pointer(_p0))
861	use(unsafe.Pointer(_p1))
862	if e1 != 0 {
863		err = e1
864	}
865	return
866}
867
868func Listen(s int, backlog int) (err error) {
869	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
870	if e1 != 0 {
871		err = e1
872	}
873	return
874}
875
876func Lstat(path string, stat *Stat_t) (err error) {
877	var _p0 *byte
878	_p0, err = BytePtrFromString(path)
879	if err != nil {
880		return
881	}
882	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
883	use(unsafe.Pointer(_p0))
884	if e1 != 0 {
885		err = e1
886	}
887	return
888}
889
890func Madvise(b []byte, advice int) (err error) {
891	var _p0 *byte
892	if len(b) > 0 {
893		_p0 = &b[0]
894	}
895	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0)
896	if e1 != 0 {
897		err = e1
898	}
899	return
900}
901
902func Mkdir(path string, mode uint32) (err error) {
903	var _p0 *byte
904	_p0, err = BytePtrFromString(path)
905	if err != nil {
906		return
907	}
908	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
909	use(unsafe.Pointer(_p0))
910	if e1 != 0 {
911		err = e1
912	}
913	return
914}
915
916func Mkdirat(dirfd int, path string, mode uint32) (err error) {
917	var _p0 *byte
918	_p0, err = BytePtrFromString(path)
919	if err != nil {
920		return
921	}
922	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
923	use(unsafe.Pointer(_p0))
924	if e1 != 0 {
925		err = e1
926	}
927	return
928}
929
930func Mkfifo(path string, mode uint32) (err error) {
931	var _p0 *byte
932	_p0, err = BytePtrFromString(path)
933	if err != nil {
934		return
935	}
936	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
937	use(unsafe.Pointer(_p0))
938	if e1 != 0 {
939		err = e1
940	}
941	return
942}
943
944func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
945	var _p0 *byte
946	_p0, err = BytePtrFromString(path)
947	if err != nil {
948		return
949	}
950	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
951	use(unsafe.Pointer(_p0))
952	if e1 != 0 {
953		err = e1
954	}
955	return
956}
957
958func Mknod(path string, mode uint32, dev int) (err error) {
959	var _p0 *byte
960	_p0, err = BytePtrFromString(path)
961	if err != nil {
962		return
963	}
964	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0)
965	use(unsafe.Pointer(_p0))
966	if e1 != 0 {
967		err = e1
968	}
969	return
970}
971
972func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
973	var _p0 *byte
974	_p0, err = BytePtrFromString(path)
975	if err != nil {
976		return
977	}
978	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
979	use(unsafe.Pointer(_p0))
980	if e1 != 0 {
981		err = e1
982	}
983	return
984}
985
986func Mlock(b []byte) (err error) {
987	var _p0 *byte
988	if len(b) > 0 {
989		_p0 = &b[0]
990	}
991	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
992	if e1 != 0 {
993		err = e1
994	}
995	return
996}
997
998func Mlockall(flags int) (err error) {
999	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0)
1000	if e1 != 0 {
1001		err = e1
1002	}
1003	return
1004}
1005
1006func Mprotect(b []byte, prot int) (err error) {
1007	var _p0 *byte
1008	if len(b) > 0 {
1009		_p0 = &b[0]
1010	}
1011	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0)
1012	if e1 != 0 {
1013		err = e1
1014	}
1015	return
1016}
1017
1018func Munlock(b []byte) (err error) {
1019	var _p0 *byte
1020	if len(b) > 0 {
1021		_p0 = &b[0]
1022	}
1023	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
1024	if e1 != 0 {
1025		err = e1
1026	}
1027	return
1028}
1029
1030func Munlockall() (err error) {
1031	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0)
1032	if e1 != 0 {
1033		err = e1
1034	}
1035	return
1036}
1037
1038func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1039	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0)
1040	if e1 != 0 {
1041		err = e1
1042	}
1043	return
1044}
1045
1046func Open(path string, mode int, perm uint32) (fd int, err error) {
1047	var _p0 *byte
1048	_p0, err = BytePtrFromString(path)
1049	if err != nil {
1050		return
1051	}
1052	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
1053	use(unsafe.Pointer(_p0))
1054	fd = int(r0)
1055	if e1 != 0 {
1056		err = e1
1057	}
1058	return
1059}
1060
1061func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
1062	var _p0 *byte
1063	_p0, err = BytePtrFromString(path)
1064	if err != nil {
1065		return
1066	}
1067	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
1068	use(unsafe.Pointer(_p0))
1069	fd = int(r0)
1070	if e1 != 0 {
1071		err = e1
1072	}
1073	return
1074}
1075
1076func Pathconf(path string, name int) (val int, err error) {
1077	var _p0 *byte
1078	_p0, err = BytePtrFromString(path)
1079	if err != nil {
1080		return
1081	}
1082	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0)
1083	use(unsafe.Pointer(_p0))
1084	val = int(r0)
1085	if e1 != 0 {
1086		err = e1
1087	}
1088	return
1089}
1090
1091func Pause() (err error) {
1092	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0)
1093	if e1 != 0 {
1094		err = e1
1095	}
1096	return
1097}
1098
1099func Pread(fd int, p []byte, offset int64) (n int, err error) {
1100	var _p0 *byte
1101	if len(p) > 0 {
1102		_p0 = &p[0]
1103	}
1104	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1105	n = int(r0)
1106	if e1 != 0 {
1107		err = e1
1108	}
1109	return
1110}
1111
1112func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1113	var _p0 *byte
1114	if len(p) > 0 {
1115		_p0 = &p[0]
1116	}
1117	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1118	n = int(r0)
1119	if e1 != 0 {
1120		err = e1
1121	}
1122	return
1123}
1124
1125func read(fd int, p []byte) (n int, err error) {
1126	var _p0 *byte
1127	if len(p) > 0 {
1128		_p0 = &p[0]
1129	}
1130	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1131	n = int(r0)
1132	if e1 != 0 {
1133		err = e1
1134	}
1135	return
1136}
1137
1138func Readlink(path string, buf []byte) (n int, err error) {
1139	var _p0 *byte
1140	_p0, err = BytePtrFromString(path)
1141	if err != nil {
1142		return
1143	}
1144	var _p1 *byte
1145	if len(buf) > 0 {
1146		_p1 = &buf[0]
1147	}
1148	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0)
1149	use(unsafe.Pointer(_p0))
1150	n = int(r0)
1151	if e1 != 0 {
1152		err = e1
1153	}
1154	return
1155}
1156
1157func Rename(from string, to string) (err error) {
1158	var _p0 *byte
1159	_p0, err = BytePtrFromString(from)
1160	if err != nil {
1161		return
1162	}
1163	var _p1 *byte
1164	_p1, err = BytePtrFromString(to)
1165	if err != nil {
1166		return
1167	}
1168	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1169	use(unsafe.Pointer(_p0))
1170	use(unsafe.Pointer(_p1))
1171	if e1 != 0 {
1172		err = e1
1173	}
1174	return
1175}
1176
1177func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
1178	var _p0 *byte
1179	_p0, err = BytePtrFromString(oldpath)
1180	if err != nil {
1181		return
1182	}
1183	var _p1 *byte
1184	_p1, err = BytePtrFromString(newpath)
1185	if err != nil {
1186		return
1187	}
1188	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1189	use(unsafe.Pointer(_p0))
1190	use(unsafe.Pointer(_p1))
1191	if e1 != 0 {
1192		err = e1
1193	}
1194	return
1195}
1196
1197func Rmdir(path string) (err error) {
1198	var _p0 *byte
1199	_p0, err = BytePtrFromString(path)
1200	if err != nil {
1201		return
1202	}
1203	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1204	use(unsafe.Pointer(_p0))
1205	if e1 != 0 {
1206		err = e1
1207	}
1208	return
1209}
1210
1211func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1212	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
1213	newoffset = int64(r0)
1214	if e1 != 0 {
1215		err = e1
1216	}
1217	return
1218}
1219
1220func Setegid(egid int) (err error) {
1221	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
1222	if e1 != 0 {
1223		err = e1
1224	}
1225	return
1226}
1227
1228func Seteuid(euid int) (err error) {
1229	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
1230	if e1 != 0 {
1231		err = e1
1232	}
1233	return
1234}
1235
1236func Setgid(gid int) (err error) {
1237	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
1238	if e1 != 0 {
1239		err = e1
1240	}
1241	return
1242}
1243
1244func Sethostname(p []byte) (err error) {
1245	var _p0 *byte
1246	if len(p) > 0 {
1247		_p0 = &p[0]
1248	}
1249	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0)
1250	if e1 != 0 {
1251		err = e1
1252	}
1253	return
1254}
1255
1256func Setpgid(pid int, pgid int) (err error) {
1257	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
1258	if e1 != 0 {
1259		err = e1
1260	}
1261	return
1262}
1263
1264func Setpriority(which int, who int, prio int) (err error) {
1265	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
1266	if e1 != 0 {
1267		err = e1
1268	}
1269	return
1270}
1271
1272func Setregid(rgid int, egid int) (err error) {
1273	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
1274	if e1 != 0 {
1275		err = e1
1276	}
1277	return
1278}
1279
1280func Setreuid(ruid int, euid int) (err error) {
1281	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
1282	if e1 != 0 {
1283		err = e1
1284	}
1285	return
1286}
1287
1288func Setrlimit(which int, lim *Rlimit) (err error) {
1289	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
1290	if e1 != 0 {
1291		err = e1
1292	}
1293	return
1294}
1295
1296func Setsid() (pid int, err error) {
1297	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0)
1298	pid = int(r0)
1299	if e1 != 0 {
1300		err = e1
1301	}
1302	return
1303}
1304
1305func Setuid(uid int) (err error) {
1306	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
1307	if e1 != 0 {
1308		err = e1
1309	}
1310	return
1311}
1312
1313func Shutdown(s int, how int) (err error) {
1314	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
1315	if e1 != 0 {
1316		err = e1
1317	}
1318	return
1319}
1320
1321func Stat(path string, stat *Stat_t) (err error) {
1322	var _p0 *byte
1323	_p0, err = BytePtrFromString(path)
1324	if err != nil {
1325		return
1326	}
1327	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
1328	use(unsafe.Pointer(_p0))
1329	if e1 != 0 {
1330		err = e1
1331	}
1332	return
1333}
1334
1335func Symlink(path string, link string) (err error) {
1336	var _p0 *byte
1337	_p0, err = BytePtrFromString(path)
1338	if err != nil {
1339		return
1340	}
1341	var _p1 *byte
1342	_p1, err = BytePtrFromString(link)
1343	if err != nil {
1344		return
1345	}
1346	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1347	use(unsafe.Pointer(_p0))
1348	use(unsafe.Pointer(_p1))
1349	if e1 != 0 {
1350		err = e1
1351	}
1352	return
1353}
1354
1355func Sync() (err error) {
1356	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0)
1357	if e1 != 0 {
1358		err = e1
1359	}
1360	return
1361}
1362
1363func Times(tms *Tms) (ticks uintptr, err error) {
1364	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0)
1365	ticks = uintptr(r0)
1366	if e1 != 0 {
1367		err = e1
1368	}
1369	return
1370}
1371
1372func Truncate(path string, length int64) (err error) {
1373	var _p0 *byte
1374	_p0, err = BytePtrFromString(path)
1375	if err != nil {
1376		return
1377	}
1378	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
1379	use(unsafe.Pointer(_p0))
1380	if e1 != 0 {
1381		err = e1
1382	}
1383	return
1384}
1385
1386func Fsync(fd int) (err error) {
1387	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
1388	if e1 != 0 {
1389		err = e1
1390	}
1391	return
1392}
1393
1394func Ftruncate(fd int, length int64) (err error) {
1395	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
1396	if e1 != 0 {
1397		err = e1
1398	}
1399	return
1400}
1401
1402func Umask(mask int) (oldmask int) {
1403	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
1404	oldmask = int(r0)
1405	return
1406}
1407
1408func Uname(buf *Utsname) (err error) {
1409	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
1410	if e1 != 0 {
1411		err = e1
1412	}
1413	return
1414}
1415
1416func Unmount(target string, flags int) (err error) {
1417	var _p0 *byte
1418	_p0, err = BytePtrFromString(target)
1419	if err != nil {
1420		return
1421	}
1422	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0)
1423	use(unsafe.Pointer(_p0))
1424	if e1 != 0 {
1425		err = e1
1426	}
1427	return
1428}
1429
1430func Unlink(path string) (err error) {
1431	var _p0 *byte
1432	_p0, err = BytePtrFromString(path)
1433	if err != nil {
1434		return
1435	}
1436	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1437	use(unsafe.Pointer(_p0))
1438	if e1 != 0 {
1439		err = e1
1440	}
1441	return
1442}
1443
1444func Unlinkat(dirfd int, path string, flags int) (err error) {
1445	var _p0 *byte
1446	_p0, err = BytePtrFromString(path)
1447	if err != nil {
1448		return
1449	}
1450	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0)
1451	use(unsafe.Pointer(_p0))
1452	if e1 != 0 {
1453		err = e1
1454	}
1455	return
1456}
1457
1458func Ustat(dev int, ubuf *Ustat_t) (err error) {
1459	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0)
1460	if e1 != 0 {
1461		err = e1
1462	}
1463	return
1464}
1465
1466func Utime(path string, buf *Utimbuf) (err error) {
1467	var _p0 *byte
1468	_p0, err = BytePtrFromString(path)
1469	if err != nil {
1470		return
1471	}
1472	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
1473	use(unsafe.Pointer(_p0))
1474	if e1 != 0 {
1475		err = e1
1476	}
1477	return
1478}
1479
1480func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1481	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procbind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
1482	if e1 != 0 {
1483		err = e1
1484	}
1485	return
1486}
1487
1488func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1489	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procconnect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
1490	if e1 != 0 {
1491		err = e1
1492	}
1493	return
1494}
1495
1496func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1497	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1498	ret = uintptr(r0)
1499	if e1 != 0 {
1500		err = e1
1501	}
1502	return
1503}
1504
1505func munmap(addr uintptr, length uintptr) (err error) {
1506	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
1507	if e1 != 0 {
1508		err = e1
1509	}
1510	return
1511}
1512
1513func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1514	var _p0 *byte
1515	if len(buf) > 0 {
1516		_p0 = &buf[0]
1517	}
1518	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1519	if e1 != 0 {
1520		err = e1
1521	}
1522	return
1523}
1524
1525func socket(domain int, typ int, proto int) (fd int, err error) {
1526	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsocket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
1527	fd = int(r0)
1528	if e1 != 0 {
1529		err = e1
1530	}
1531	return
1532}
1533
1534func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1535	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsocketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
1536	if e1 != 0 {
1537		err = e1
1538	}
1539	return
1540}
1541
1542func write(fd int, p []byte) (n int, err error) {
1543	var _p0 *byte
1544	if len(p) > 0 {
1545		_p0 = &p[0]
1546	}
1547	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1548	n = int(r0)
1549	if e1 != 0 {
1550		err = e1
1551	}
1552	return
1553}
1554
1555func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1556	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1557	if e1 != 0 {
1558		err = e1
1559	}
1560	return
1561}
1562
1563func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1564	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
1565	if e1 != 0 {
1566		err = e1
1567	}
1568	return
1569}
1570
1571func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1572	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1573	if e1 != 0 {
1574		err = e1
1575	}
1576	return
1577}
1578
1579func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1580	var _p0 *byte
1581	if len(p) > 0 {
1582		_p0 = &p[0]
1583	}
1584	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)))
1585	n = int(r0)
1586	if e1 != 0 {
1587		err = e1
1588	}
1589	return
1590}
1591
1592func sysconf(name int) (n int64, err error) {
1593	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsysconf)), 1, uintptr(name), 0, 0, 0, 0, 0)
1594	n = int64(r0)
1595	if e1 != 0 {
1596		err = e1
1597	}
1598	return
1599}
1600