]> Cypherpunks.ru repositories - gostls13.git/blob - src/syscall/zsyscall_aix_ppc64.go
syscall: regen zsyscall_{aix_ppc64,solaris_amd64}.go
[gostls13.git] / src / syscall / zsyscall_aix_ppc64.go
1 // mksyscall_libc.pl -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go
2 // Code generated by the command above; DO NOT EDIT.
3
4 //go:build aix && ppc64
5
6 package syscall
7
8 import "unsafe"
9
10 //go:cgo_import_dynamic libc_fcntl fcntl "libc.a/shr_64.o"
11 //go:cgo_import_dynamic libc_Dup2 dup2 "libc.a/shr_64.o"
12 //go:cgo_import_dynamic libc_pipe pipe "libc.a/shr_64.o"
13 //go:cgo_import_dynamic libc_readlink readlink "libc.a/shr_64.o"
14 //go:cgo_import_dynamic libc_utimes utimes "libc.a/shr_64.o"
15 //go:cgo_import_dynamic libc_utimensat utimensat "libc.a/shr_64.o"
16 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.a/shr_64.o"
17 //go:cgo_import_dynamic libc_getcwd getcwd "libc.a/shr_64.o"
18 //go:cgo_import_dynamic libc_getgroups getgroups "libc.a/shr_64.o"
19 //go:cgo_import_dynamic libc_setgroups setgroups "libc.a/shr_64.o"
20 //go:cgo_import_dynamic libc_getdirent getdirent "libc.a/shr_64.o"
21 //go:cgo_import_dynamic libc_wait4 wait4 "libc.a/shr_64.o"
22 //go:cgo_import_dynamic libc_fsync_range fsync_range "libc.a/shr_64.o"
23 //go:cgo_import_dynamic libc_bind bind "libc.a/shr_64.o"
24 //go:cgo_import_dynamic libc_connect connect "libc.a/shr_64.o"
25 //go:cgo_import_dynamic libc_Getkerninfo getkerninfo "libc.a/shr_64.o"
26 //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.a/shr_64.o"
27 //go:cgo_import_dynamic libc_Listen listen "libc.a/shr_64.o"
28 //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.a/shr_64.o"
29 //go:cgo_import_dynamic libc_socket socket "libc.a/shr_64.o"
30 //go:cgo_import_dynamic libc_socketpair socketpair "libc.a/shr_64.o"
31 //go:cgo_import_dynamic libc_getpeername getpeername "libc.a/shr_64.o"
32 //go:cgo_import_dynamic libc_getsockname getsockname "libc.a/shr_64.o"
33 //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.a/shr_64.o"
34 //go:cgo_import_dynamic libc_sendto sendto "libc.a/shr_64.o"
35 //go:cgo_import_dynamic libc_Shutdown shutdown "libc.a/shr_64.o"
36 //go:cgo_import_dynamic libc_nrecvmsg nrecvmsg "libc.a/shr_64.o"
37 //go:cgo_import_dynamic libc_nsendmsg nsendmsg "libc.a/shr_64.o"
38 //go:cgo_import_dynamic libc_accept accept "libc.a/shr_64.o"
39 //go:cgo_import_dynamic libc_Openat openat "libc.a/shr_64.o"
40 //go:cgo_import_dynamic libc_ptrace64 ptrace64 "libc.a/shr_64.o"
41 //go:cgo_import_dynamic libc_Acct acct "libc.a/shr_64.o"
42 //go:cgo_import_dynamic libc_Chdir chdir "libc.a/shr_64.o"
43 //go:cgo_import_dynamic libc_Chmod chmod "libc.a/shr_64.o"
44 //go:cgo_import_dynamic libc_Chown chown "libc.a/shr_64.o"
45 //go:cgo_import_dynamic libc_Chroot chroot "libc.a/shr_64.o"
46 //go:cgo_import_dynamic libc_Close close "libc.a/shr_64.o"
47 //go:cgo_import_dynamic libc_Dup dup "libc.a/shr_64.o"
48 //go:cgo_import_dynamic libc_Faccessat faccessat "libc.a/shr_64.o"
49 //go:cgo_import_dynamic libc_Fchdir fchdir "libc.a/shr_64.o"
50 //go:cgo_import_dynamic libc_Fchmod fchmod "libc.a/shr_64.o"
51 //go:cgo_import_dynamic libc_Fchmodat fchmodat "libc.a/shr_64.o"
52 //go:cgo_import_dynamic libc_Fchown fchown "libc.a/shr_64.o"
53 //go:cgo_import_dynamic libc_Fchownat fchownat "libc.a/shr_64.o"
54 //go:cgo_import_dynamic libc_Fpathconf fpathconf "libc.a/shr_64.o"
55 //go:cgo_import_dynamic libc_Fstat fstat "libc.a/shr_64.o"
56 //go:cgo_import_dynamic libc_Fstatfs fstatfs "libc.a/shr_64.o"
57 //go:cgo_import_dynamic libc_Ftruncate ftruncate "libc.a/shr_64.o"
58 //go:cgo_import_dynamic libc_Getgid getgid "libc.a/shr_64.o"
59 //go:cgo_import_dynamic libc_Getpid getpid "libc.a/shr_64.o"
60 //go:cgo_import_dynamic libc_Geteuid geteuid "libc.a/shr_64.o"
61 //go:cgo_import_dynamic libc_Getegid getegid "libc.a/shr_64.o"
62 //go:cgo_import_dynamic libc_Getppid getppid "libc.a/shr_64.o"
63 //go:cgo_import_dynamic libc_Getpriority getpriority "libc.a/shr_64.o"
64 //go:cgo_import_dynamic libc_Getrlimit getrlimit "libc.a/shr_64.o"
65 //go:cgo_import_dynamic libc_Getrusage getrusage "libc.a/shr_64.o"
66 //go:cgo_import_dynamic libc_Getuid getuid "libc.a/shr_64.o"
67 //go:cgo_import_dynamic libc_Kill kill "libc.a/shr_64.o"
68 //go:cgo_import_dynamic libc_Lchown lchown "libc.a/shr_64.o"
69 //go:cgo_import_dynamic libc_Link link "libc.a/shr_64.o"
70 //go:cgo_import_dynamic libc_Lstat lstat "libc.a/shr_64.o"
71 //go:cgo_import_dynamic libc_Mkdir mkdir "libc.a/shr_64.o"
72 //go:cgo_import_dynamic libc_Mkdirat mkdirat "libc.a/shr_64.o"
73 //go:cgo_import_dynamic libc_Mknodat mknodat "libc.a/shr_64.o"
74 //go:cgo_import_dynamic libc_Open open "libc.a/shr_64.o"
75 //go:cgo_import_dynamic libc_pread pread "libc.a/shr_64.o"
76 //go:cgo_import_dynamic libc_pwrite pwrite "libc.a/shr_64.o"
77 //go:cgo_import_dynamic libc_read read "libc.a/shr_64.o"
78 //go:cgo_import_dynamic libc_Reboot reboot "libc.a/shr_64.o"
79 //go:cgo_import_dynamic libc_Rename rename "libc.a/shr_64.o"
80 //go:cgo_import_dynamic libc_Renameat renameat "libc.a/shr_64.o"
81 //go:cgo_import_dynamic libc_Rmdir rmdir "libc.a/shr_64.o"
82 //go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o"
83 //go:cgo_import_dynamic libc_Setegid setegid "libc.a/shr_64.o"
84 //go:cgo_import_dynamic libc_Seteuid seteuid "libc.a/shr_64.o"
85 //go:cgo_import_dynamic libc_Setgid setgid "libc.a/shr_64.o"
86 //go:cgo_import_dynamic libc_Setpgid setpgid "libc.a/shr_64.o"
87 //go:cgo_import_dynamic libc_Setpriority setpriority "libc.a/shr_64.o"
88 //go:cgo_import_dynamic libc_Setregid setregid "libc.a/shr_64.o"
89 //go:cgo_import_dynamic libc_Setreuid setreuid "libc.a/shr_64.o"
90 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o"
91 //go:cgo_import_dynamic libc_Stat stat "libc.a/shr_64.o"
92 //go:cgo_import_dynamic libc_Statfs statfs "libc.a/shr_64.o"
93 //go:cgo_import_dynamic libc_Symlink symlink "libc.a/shr_64.o"
94 //go:cgo_import_dynamic libc_Truncate truncate "libc.a/shr_64.o"
95 //go:cgo_import_dynamic libc_Umask umask "libc.a/shr_64.o"
96 //go:cgo_import_dynamic libc_Unlink unlink "libc.a/shr_64.o"
97 //go:cgo_import_dynamic libc_Uname uname "libc.a/shr_64.o"
98 //go:cgo_import_dynamic libc_write write "libc.a/shr_64.o"
99 //go:cgo_import_dynamic libc_writev writev "libc.a/shr_64.o"
100 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o"
101 //go:cgo_import_dynamic libc_mmap mmap "libc.a/shr_64.o"
102 //go:cgo_import_dynamic libc_munmap munmap "libc.a/shr_64.o"
103
104 //go:linkname libc_fcntl libc_fcntl
105 //go:linkname libc_Dup2 libc_Dup2
106 //go:linkname libc_pipe libc_pipe
107 //go:linkname libc_readlink libc_readlink
108 //go:linkname libc_utimes libc_utimes
109 //go:linkname libc_utimensat libc_utimensat
110 //go:linkname libc_unlinkat libc_unlinkat
111 //go:linkname libc_getcwd libc_getcwd
112 //go:linkname libc_getgroups libc_getgroups
113 //go:linkname libc_setgroups libc_setgroups
114 //go:linkname libc_getdirent libc_getdirent
115 //go:linkname libc_wait4 libc_wait4
116 //go:linkname libc_fsync_range libc_fsync_range
117 //go:linkname libc_bind libc_bind
118 //go:linkname libc_connect libc_connect
119 //go:linkname libc_Getkerninfo libc_Getkerninfo
120 //go:linkname libc_getsockopt libc_getsockopt
121 //go:linkname libc_Listen libc_Listen
122 //go:linkname libc_setsockopt libc_setsockopt
123 //go:linkname libc_socket libc_socket
124 //go:linkname libc_socketpair libc_socketpair
125 //go:linkname libc_getpeername libc_getpeername
126 //go:linkname libc_getsockname libc_getsockname
127 //go:linkname libc_recvfrom libc_recvfrom
128 //go:linkname libc_sendto libc_sendto
129 //go:linkname libc_Shutdown libc_Shutdown
130 //go:linkname libc_nrecvmsg libc_nrecvmsg
131 //go:linkname libc_nsendmsg libc_nsendmsg
132 //go:linkname libc_accept libc_accept
133 //go:linkname libc_Openat libc_Openat
134 //go:linkname libc_ptrace64 libc_ptrace64
135 //go:linkname libc_Acct libc_Acct
136 //go:linkname libc_Chdir libc_Chdir
137 //go:linkname libc_Chmod libc_Chmod
138 //go:linkname libc_Chown libc_Chown
139 //go:linkname libc_Chroot libc_Chroot
140 //go:linkname libc_Close libc_Close
141 //go:linkname libc_Dup libc_Dup
142 //go:linkname libc_Faccessat libc_Faccessat
143 //go:linkname libc_Fchdir libc_Fchdir
144 //go:linkname libc_Fchmod libc_Fchmod
145 //go:linkname libc_Fchmodat libc_Fchmodat
146 //go:linkname libc_Fchown libc_Fchown
147 //go:linkname libc_Fchownat libc_Fchownat
148 //go:linkname libc_Fpathconf libc_Fpathconf
149 //go:linkname libc_Fstat libc_Fstat
150 //go:linkname libc_Fstatfs libc_Fstatfs
151 //go:linkname libc_Ftruncate libc_Ftruncate
152 //go:linkname libc_Getgid libc_Getgid
153 //go:linkname libc_Getpid libc_Getpid
154 //go:linkname libc_Geteuid libc_Geteuid
155 //go:linkname libc_Getegid libc_Getegid
156 //go:linkname libc_Getppid libc_Getppid
157 //go:linkname libc_Getpriority libc_Getpriority
158 //go:linkname libc_Getrlimit libc_Getrlimit
159 //go:linkname libc_Getrusage libc_Getrusage
160 //go:linkname libc_Getuid libc_Getuid
161 //go:linkname libc_Kill libc_Kill
162 //go:linkname libc_Lchown libc_Lchown
163 //go:linkname libc_Link libc_Link
164 //go:linkname libc_Lstat libc_Lstat
165 //go:linkname libc_Mkdir libc_Mkdir
166 //go:linkname libc_Mkdirat libc_Mkdirat
167 //go:linkname libc_Mknodat libc_Mknodat
168 //go:linkname libc_Open libc_Open
169 //go:linkname libc_pread libc_pread
170 //go:linkname libc_pwrite libc_pwrite
171 //go:linkname libc_read libc_read
172 //go:linkname libc_Reboot libc_Reboot
173 //go:linkname libc_Rename libc_Rename
174 //go:linkname libc_Renameat libc_Renameat
175 //go:linkname libc_Rmdir libc_Rmdir
176 //go:linkname libc_lseek libc_lseek
177 //go:linkname libc_Setegid libc_Setegid
178 //go:linkname libc_Seteuid libc_Seteuid
179 //go:linkname libc_Setgid libc_Setgid
180 //go:linkname libc_Setpgid libc_Setpgid
181 //go:linkname libc_Setpriority libc_Setpriority
182 //go:linkname libc_Setregid libc_Setregid
183 //go:linkname libc_Setreuid libc_Setreuid
184 //go:linkname libc_setrlimit libc_setrlimit
185 //go:linkname libc_Stat libc_Stat
186 //go:linkname libc_Statfs libc_Statfs
187 //go:linkname libc_Symlink libc_Symlink
188 //go:linkname libc_Truncate libc_Truncate
189 //go:linkname libc_Umask libc_Umask
190 //go:linkname libc_Unlink libc_Unlink
191 //go:linkname libc_Uname libc_Uname
192 //go:linkname libc_write libc_write
193 //go:linkname libc_writev libc_writev
194 //go:linkname libc_gettimeofday libc_gettimeofday
195 //go:linkname libc_mmap libc_mmap
196 //go:linkname libc_munmap libc_munmap
197
198 type libcFunc uintptr
199
200 var (
201         libc_fcntl,
202         libc_Dup2,
203         libc_pipe,
204         libc_readlink,
205         libc_utimes,
206         libc_utimensat,
207         libc_unlinkat,
208         libc_getcwd,
209         libc_getgroups,
210         libc_setgroups,
211         libc_getdirent,
212         libc_wait4,
213         libc_fsync_range,
214         libc_bind,
215         libc_connect,
216         libc_Getkerninfo,
217         libc_getsockopt,
218         libc_Listen,
219         libc_setsockopt,
220         libc_socket,
221         libc_socketpair,
222         libc_getpeername,
223         libc_getsockname,
224         libc_recvfrom,
225         libc_sendto,
226         libc_Shutdown,
227         libc_nrecvmsg,
228         libc_nsendmsg,
229         libc_accept,
230         libc_Openat,
231         libc_ptrace64,
232         libc_Acct,
233         libc_Chdir,
234         libc_Chmod,
235         libc_Chown,
236         libc_Chroot,
237         libc_Close,
238         libc_Dup,
239         libc_Faccessat,
240         libc_Fchdir,
241         libc_Fchmod,
242         libc_Fchmodat,
243         libc_Fchown,
244         libc_Fchownat,
245         libc_Fpathconf,
246         libc_Fstat,
247         libc_Fstatfs,
248         libc_Ftruncate,
249         libc_Getgid,
250         libc_Getpid,
251         libc_Geteuid,
252         libc_Getegid,
253         libc_Getppid,
254         libc_Getpriority,
255         libc_Getrlimit,
256         libc_Getrusage,
257         libc_Getuid,
258         libc_Kill,
259         libc_Lchown,
260         libc_Link,
261         libc_Lstat,
262         libc_Mkdir,
263         libc_Mkdirat,
264         libc_Mknodat,
265         libc_Open,
266         libc_pread,
267         libc_pwrite,
268         libc_read,
269         libc_Reboot,
270         libc_Rename,
271         libc_Renameat,
272         libc_Rmdir,
273         libc_lseek,
274         libc_Setegid,
275         libc_Seteuid,
276         libc_Setgid,
277         libc_Setpgid,
278         libc_Setpriority,
279         libc_Setregid,
280         libc_Setreuid,
281         libc_setrlimit,
282         libc_Stat,
283         libc_Statfs,
284         libc_Symlink,
285         libc_Truncate,
286         libc_Umask,
287         libc_Unlink,
288         libc_Uname,
289         libc_write,
290         libc_writev,
291         libc_gettimeofday,
292         libc_mmap,
293         libc_munmap libcFunc
294 )
295
296 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
297
298 func fcntl(fd int, cmd int, arg int) (val int, err error) {
299         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
300         val = int(r0)
301         if e1 != 0 {
302                 err = errnoErr(e1)
303         }
304         return
305 }
306
307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
308
309 func Dup2(old int, new int) (err error) {
310         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Dup2)), 2, uintptr(old), uintptr(new), 0, 0, 0, 0)
311         if e1 != 0 {
312                 err = errnoErr(e1)
313         }
314         return
315 }
316
317 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
318
319 func pipe(p *[2]_C_int) (err error) {
320         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_pipe)), 1, uintptr(unsafe.Pointer(p)), 0, 0, 0, 0, 0)
321         if e1 != 0 {
322                 err = errnoErr(e1)
323         }
324         return
325 }
326
327 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
328
329 func readlink(path string, buf []byte, bufSize uint64) (n int, err error) {
330         var _p0 *byte
331         _p0, err = BytePtrFromString(path)
332         if err != nil {
333                 return
334         }
335         var _p1 *byte
336         if len(buf) > 0 {
337                 _p1 = &buf[0]
338         }
339         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_readlink)), 4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), uintptr(bufSize), 0, 0)
340         n = int(r0)
341         if e1 != 0 {
342                 err = errnoErr(e1)
343         }
344         return
345 }
346
347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
348
349 func utimes(path string, times *[2]Timeval) (err error) {
350         var _p0 *byte
351         _p0, err = BytePtrFromString(path)
352         if err != nil {
353                 return
354         }
355         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_utimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
356         if e1 != 0 {
357                 err = errnoErr(e1)
358         }
359         return
360 }
361
362 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363
364 func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
365         var _p0 *byte
366         _p0, err = BytePtrFromString(path)
367         if err != nil {
368                 return
369         }
370         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_utimensat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
371         if e1 != 0 {
372                 err = errnoErr(e1)
373         }
374         return
375 }
376
377 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
378
379 func unlinkat(dirfd int, path string, flags int) (err error) {
380         var _p0 *byte
381         _p0, err = BytePtrFromString(path)
382         if err != nil {
383                 return
384         }
385         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_unlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0)
386         if e1 != 0 {
387                 err = errnoErr(e1)
388         }
389         return
390 }
391
392 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
393
394 func getcwd(buf *byte, size uint64) (err error) {
395         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_getcwd)), 2, uintptr(unsafe.Pointer(buf)), uintptr(size), 0, 0, 0, 0)
396         if e1 != 0 {
397                 err = errnoErr(e1)
398         }
399         return
400 }
401
402 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
403
404 func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
405         r0, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_getgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
406         n = int(r0)
407         if e1 != 0 {
408                 err = errnoErr(e1)
409         }
410         return
411 }
412
413 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
414
415 func setgroups(ngid int, gid *_Gid_t) (err error) {
416         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_setgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
417         if e1 != 0 {
418                 err = errnoErr(e1)
419         }
420         return
421 }
422
423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
424
425 func getdirent(fd int, buf []byte) (n int, err error) {
426         var _p0 *byte
427         if len(buf) > 0 {
428                 _p0 = &buf[0]
429         }
430         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_getdirent)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0)
431         n = int(r0)
432         if e1 != 0 {
433                 err = errnoErr(e1)
434         }
435         return
436 }
437
438 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
439
440 func wait4(pid _Pid_t, status *_C_int, options int, rusage *Rusage) (wpid _Pid_t, err error) {
441         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_wait4)), 4, uintptr(pid), uintptr(unsafe.Pointer(status)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
442         wpid = _Pid_t(r0)
443         if e1 != 0 {
444                 err = errnoErr(e1)
445         }
446         return
447 }
448
449 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
450
451 func fsyncRange(fd int, how int, start int64, length int64) (err error) {
452         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_fsync_range)), 4, uintptr(fd), uintptr(how), uintptr(start), uintptr(length), 0, 0)
453         if e1 != 0 {
454                 err = errnoErr(e1)
455         }
456         return
457 }
458
459 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460
461 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
462         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
463         if e1 != 0 {
464                 err = errnoErr(e1)
465         }
466         return
467 }
468
469 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
470
471 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
472         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
473         if e1 != 0 {
474                 err = errnoErr(e1)
475         }
476         return
477 }
478
479 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
480
481 func Getkerninfo(op int32, where uintptr, size uintptr, arg int64) (i int32, err error) {
482         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Getkerninfo)), 4, uintptr(op), uintptr(where), uintptr(size), uintptr(arg), 0, 0)
483         i = int32(r0)
484         if e1 != 0 {
485                 err = errnoErr(e1)
486         }
487         return
488 }
489
490 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
491
492 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
493         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
494         if e1 != 0 {
495                 err = errnoErr(e1)
496         }
497         return
498 }
499
500 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
501
502 func Listen(s int, backlog int) (err error) {
503         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Listen)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
504         if e1 != 0 {
505                 err = errnoErr(e1)
506         }
507         return
508 }
509
510 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
511
512 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
513         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_setsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
514         if e1 != 0 {
515                 err = errnoErr(e1)
516         }
517         return
518 }
519
520 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
521
522 func socket(domain int, typ int, proto int) (fd int, err error) {
523         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
524         fd = int(r0)
525         if e1 != 0 {
526                 err = errnoErr(e1)
527         }
528         return
529 }
530
531 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
534         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
535         if e1 != 0 {
536                 err = errnoErr(e1)
537         }
538         return
539 }
540
541 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
542
543 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
544         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_getpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
545         if e1 != 0 {
546                 err = errnoErr(e1)
547         }
548         return
549 }
550
551 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
552
553 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
554         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_getsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
555         if e1 != 0 {
556                 err = errnoErr(e1)
557         }
558         return
559 }
560
561 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
562
563 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
564         var _p0 *byte
565         if len(p) > 0 {
566                 _p0 = &p[0]
567         }
568         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_recvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
569         n = int(r0)
570         if e1 != 0 {
571                 err = errnoErr(e1)
572         }
573         return
574 }
575
576 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
577
578 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
579         var _p0 *byte
580         if len(buf) > 0 {
581                 _p0 = &buf[0]
582         }
583         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
584         if e1 != 0 {
585                 err = errnoErr(e1)
586         }
587         return
588 }
589
590 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
591
592 func Shutdown(s int, how int) (err error) {
593         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Shutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
594         if e1 != 0 {
595                 err = errnoErr(e1)
596         }
597         return
598 }
599
600 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601
602 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
603         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_nrecvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
604         n = int(r0)
605         if e1 != 0 {
606                 err = errnoErr(e1)
607         }
608         return
609 }
610
611 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
612
613 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
614         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_nsendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
615         n = int(r0)
616         if e1 != 0 {
617                 err = errnoErr(e1)
618         }
619         return
620 }
621
622 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
623
624 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
625         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_accept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
626         fd = int(r0)
627         if e1 != 0 {
628                 err = errnoErr(e1)
629         }
630         return
631 }
632
633 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635 func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
636         var _p0 *byte
637         _p0, err = BytePtrFromString(path)
638         if err != nil {
639                 return
640         }
641         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Openat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
642         fd = int(r0)
643         if e1 != 0 {
644                 err = errnoErr(e1)
645         }
646         return
647 }
648
649 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651 func ptrace64(request int, id int64, addr int64, data int, buff uintptr) (err error) {
652         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_ptrace64)), 5, uintptr(request), uintptr(id), uintptr(addr), uintptr(data), uintptr(buff), 0)
653         if e1 != 0 {
654                 err = errnoErr(e1)
655         }
656         return
657 }
658
659 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
660
661 func ptrace64Ptr(request int, id int64, addr int64, data int, buff unsafe.Pointer) (err error) {
662         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_ptrace64)), 5, uintptr(request), uintptr(id), uintptr(addr), uintptr(data), uintptr(buff), 0)
663         if e1 != 0 {
664                 err = errnoErr(e1)
665         }
666         return
667 }
668
669 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
670
671 func Acct(path string) (err error) {
672         var _p0 *byte
673         _p0, err = BytePtrFromString(path)
674         if err != nil {
675                 return
676         }
677         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Acct)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
678         if e1 != 0 {
679                 err = errnoErr(e1)
680         }
681         return
682 }
683
684 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
685
686 func Chdir(path string) (err error) {
687         var _p0 *byte
688         _p0, err = BytePtrFromString(path)
689         if err != nil {
690                 return
691         }
692         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Chdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
693         if e1 != 0 {
694                 err = errnoErr(e1)
695         }
696         return
697 }
698
699 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
700
701 func Chmod(path string, mode uint32) (err error) {
702         var _p0 *byte
703         _p0, err = BytePtrFromString(path)
704         if err != nil {
705                 return
706         }
707         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Chmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
708         if e1 != 0 {
709                 err = errnoErr(e1)
710         }
711         return
712 }
713
714 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
715
716 func Chown(path string, uid int, gid int) (err error) {
717         var _p0 *byte
718         _p0, err = BytePtrFromString(path)
719         if err != nil {
720                 return
721         }
722         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Chown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
723         if e1 != 0 {
724                 err = errnoErr(e1)
725         }
726         return
727 }
728
729 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
730
731 func Chroot(path string) (err error) {
732         var _p0 *byte
733         _p0, err = BytePtrFromString(path)
734         if err != nil {
735                 return
736         }
737         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Chroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
738         if e1 != 0 {
739                 err = errnoErr(e1)
740         }
741         return
742 }
743
744 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
745
746 func Close(fd int) (err error) {
747         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Close)), 1, uintptr(fd), 0, 0, 0, 0, 0)
748         if e1 != 0 {
749                 err = errnoErr(e1)
750         }
751         return
752 }
753
754 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
755
756 func Dup(fd int) (nfd int, err error) {
757         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Dup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
758         nfd = int(r0)
759         if e1 != 0 {
760                 err = errnoErr(e1)
761         }
762         return
763 }
764
765 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
766
767 func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
768         var _p0 *byte
769         _p0, err = BytePtrFromString(path)
770         if err != nil {
771                 return
772         }
773         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Faccessat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
774         if e1 != 0 {
775                 err = errnoErr(e1)
776         }
777         return
778 }
779
780 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
781
782 func Fchdir(fd int) (err error) {
783         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
784         if e1 != 0 {
785                 err = errnoErr(e1)
786         }
787         return
788 }
789
790 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
791
792 func Fchmod(fd int, mode uint32) (err error) {
793         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
794         if e1 != 0 {
795                 err = errnoErr(e1)
796         }
797         return
798 }
799
800 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
801
802 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
803         var _p0 *byte
804         _p0, err = BytePtrFromString(path)
805         if err != nil {
806                 return
807         }
808         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
809         if e1 != 0 {
810                 err = errnoErr(e1)
811         }
812         return
813 }
814
815 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
816
817 func Fchown(fd int, uid int, gid int) (err error) {
818         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
819         if e1 != 0 {
820                 err = errnoErr(e1)
821         }
822         return
823 }
824
825 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
826
827 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
828         var _p0 *byte
829         _p0, err = BytePtrFromString(path)
830         if err != nil {
831                 return
832         }
833         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
834         if e1 != 0 {
835                 err = errnoErr(e1)
836         }
837         return
838 }
839
840 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
841
842 func Fpathconf(fd int, name int) (val int, err error) {
843         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
844         val = int(r0)
845         if e1 != 0 {
846                 err = errnoErr(e1)
847         }
848         return
849 }
850
851 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
852
853 func Fstat(fd int, stat *Stat_t) (err error) {
854         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
855         if e1 != 0 {
856                 err = errnoErr(e1)
857         }
858         return
859 }
860
861 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
862
863 func Fstatfs(fd int, buf *Statfs_t) (err error) {
864         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fstatfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
865         if e1 != 0 {
866                 err = errnoErr(e1)
867         }
868         return
869 }
870
871 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
872
873 func Ftruncate(fd int, length int64) (err error) {
874         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Ftruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
875         if e1 != 0 {
876                 err = errnoErr(e1)
877         }
878         return
879 }
880
881 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
882
883 func Getgid() (gid int) {
884         r0, _, _ := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getgid)), 0, 0, 0, 0, 0, 0, 0)
885         gid = int(r0)
886         return
887 }
888
889 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
890
891 func Getpid() (pid int) {
892         r0, _, _ := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getpid)), 0, 0, 0, 0, 0, 0, 0)
893         pid = int(r0)
894         return
895 }
896
897 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
898
899 func Geteuid() (euid int) {
900         r0, _, _ := syscall6(uintptr(unsafe.Pointer(&libc_Geteuid)), 0, 0, 0, 0, 0, 0, 0)
901         euid = int(r0)
902         return
903 }
904
905 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
906
907 func Getegid() (egid int) {
908         r0, _, _ := syscall6(uintptr(unsafe.Pointer(&libc_Getegid)), 0, 0, 0, 0, 0, 0, 0)
909         egid = int(r0)
910         return
911 }
912
913 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
914
915 func Getppid() (ppid int) {
916         r0, _, _ := syscall6(uintptr(unsafe.Pointer(&libc_Getppid)), 0, 0, 0, 0, 0, 0, 0)
917         ppid = int(r0)
918         return
919 }
920
921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
922
923 func Getpriority(which int, who int) (n int, err error) {
924         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Getpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
925         n = int(r0)
926         if e1 != 0 {
927                 err = errnoErr(e1)
928         }
929         return
930 }
931
932 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
933
934 func Getrlimit(which int, lim *Rlimit) (err error) {
935         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
936         if e1 != 0 {
937                 err = errnoErr(e1)
938         }
939         return
940 }
941
942 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
943
944 func Getrusage(who int, rusage *Rusage) (err error) {
945         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0)
946         if e1 != 0 {
947                 err = errnoErr(e1)
948         }
949         return
950 }
951
952 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
953
954 func Getuid() (uid int) {
955         r0, _, _ := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getuid)), 0, 0, 0, 0, 0, 0, 0)
956         uid = int(r0)
957         return
958 }
959
960 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
961
962 func Kill(pid int, signum Signal) (err error) {
963         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Kill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
964         if e1 != 0 {
965                 err = errnoErr(e1)
966         }
967         return
968 }
969
970 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
971
972 func Lchown(path string, uid int, gid int) (err error) {
973         var _p0 *byte
974         _p0, err = BytePtrFromString(path)
975         if err != nil {
976                 return
977         }
978         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Lchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
979         if e1 != 0 {
980                 err = errnoErr(e1)
981         }
982         return
983 }
984
985 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
986
987 func Link(path string, link string) (err error) {
988         var _p0 *byte
989         _p0, err = BytePtrFromString(path)
990         if err != nil {
991                 return
992         }
993         var _p1 *byte
994         _p1, err = BytePtrFromString(link)
995         if err != nil {
996                 return
997         }
998         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Link)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
999         if e1 != 0 {
1000                 err = errnoErr(e1)
1001         }
1002         return
1003 }
1004
1005 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1006
1007 func Lstat(path string, stat *Stat_t) (err error) {
1008         var _p0 *byte
1009         _p0, err = BytePtrFromString(path)
1010         if err != nil {
1011                 return
1012         }
1013         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Lstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
1014         if e1 != 0 {
1015                 err = errnoErr(e1)
1016         }
1017         return
1018 }
1019
1020 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1021
1022 func Mkdir(path string, mode uint32) (err error) {
1023         var _p0 *byte
1024         _p0, err = BytePtrFromString(path)
1025         if err != nil {
1026                 return
1027         }
1028         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Mkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
1029         if e1 != 0 {
1030                 err = errnoErr(e1)
1031         }
1032         return
1033 }
1034
1035 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1036
1037 func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1038         var _p0 *byte
1039         _p0, err = BytePtrFromString(path)
1040         if err != nil {
1041                 return
1042         }
1043         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Mkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
1044         if e1 != 0 {
1045                 err = errnoErr(e1)
1046         }
1047         return
1048 }
1049
1050 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1051
1052 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
1053         var _p0 *byte
1054         _p0, err = BytePtrFromString(path)
1055         if err != nil {
1056                 return
1057         }
1058         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Mknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
1059         if e1 != 0 {
1060                 err = errnoErr(e1)
1061         }
1062         return
1063 }
1064
1065 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1066
1067 func Open(path string, mode int, perm uint32) (fd int, err error) {
1068         var _p0 *byte
1069         _p0, err = BytePtrFromString(path)
1070         if err != nil {
1071                 return
1072         }
1073         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Open)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
1074         fd = int(r0)
1075         if e1 != 0 {
1076                 err = errnoErr(e1)
1077         }
1078         return
1079 }
1080
1081 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1082
1083 func pread(fd int, p []byte, offset int64) (n int, err error) {
1084         var _p0 *byte
1085         if len(p) > 0 {
1086                 _p0 = &p[0]
1087         }
1088         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_pread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1089         n = int(r0)
1090         if e1 != 0 {
1091                 err = errnoErr(e1)
1092         }
1093         return
1094 }
1095
1096 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1097
1098 func pwrite(fd int, p []byte, offset int64) (n int, err error) {
1099         var _p0 *byte
1100         if len(p) > 0 {
1101                 _p0 = &p[0]
1102         }
1103         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_pwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1104         n = int(r0)
1105         if e1 != 0 {
1106                 err = errnoErr(e1)
1107         }
1108         return
1109 }
1110
1111 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1112
1113 func read(fd int, p []byte) (n int, err error) {
1114         var _p0 *byte
1115         if len(p) > 0 {
1116                 _p0 = &p[0]
1117         }
1118         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_read)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1119         n = int(r0)
1120         if e1 != 0 {
1121                 err = errnoErr(e1)
1122         }
1123         return
1124 }
1125
1126 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1127
1128 func Reboot(how int) (err error) {
1129         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Reboot)), 1, uintptr(how), 0, 0, 0, 0, 0)
1130         if e1 != 0 {
1131                 err = errnoErr(e1)
1132         }
1133         return
1134 }
1135
1136 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1137
1138 func Rename(from string, to string) (err error) {
1139         var _p0 *byte
1140         _p0, err = BytePtrFromString(from)
1141         if err != nil {
1142                 return
1143         }
1144         var _p1 *byte
1145         _p1, err = BytePtrFromString(to)
1146         if err != nil {
1147                 return
1148         }
1149         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Rename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1150         if e1 != 0 {
1151                 err = errnoErr(e1)
1152         }
1153         return
1154 }
1155
1156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1157
1158 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
1159         var _p0 *byte
1160         _p0, err = BytePtrFromString(oldpath)
1161         if err != nil {
1162                 return
1163         }
1164         var _p1 *byte
1165         _p1, err = BytePtrFromString(newpath)
1166         if err != nil {
1167                 return
1168         }
1169         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Renameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1170         if e1 != 0 {
1171                 err = errnoErr(e1)
1172         }
1173         return
1174 }
1175
1176 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1177
1178 func Rmdir(path string) (err error) {
1179         var _p0 *byte
1180         _p0, err = BytePtrFromString(path)
1181         if err != nil {
1182                 return
1183         }
1184         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Rmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1185         if e1 != 0 {
1186                 err = errnoErr(e1)
1187         }
1188         return
1189 }
1190
1191 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1192
1193 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1194         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_lseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
1195         newoffset = int64(r0)
1196         if e1 != 0 {
1197                 err = errnoErr(e1)
1198         }
1199         return
1200 }
1201
1202 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1203
1204 func Setegid(egid int) (err error) {
1205         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
1206         if e1 != 0 {
1207                 err = errnoErr(e1)
1208         }
1209         return
1210 }
1211
1212 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1213
1214 func Seteuid(euid int) (err error) {
1215         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Seteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
1216         if e1 != 0 {
1217                 err = errnoErr(e1)
1218         }
1219         return
1220 }
1221
1222 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1223
1224 func Setgid(gid int) (err error) {
1225         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
1226         if e1 != 0 {
1227                 err = errnoErr(e1)
1228         }
1229         return
1230 }
1231
1232 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1233
1234 func Setpgid(pid int, pgid int) (err error) {
1235         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
1236         if e1 != 0 {
1237                 err = errnoErr(e1)
1238         }
1239         return
1240 }
1241
1242 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1243
1244 func Setpriority(which int, who int, prio int) (err error) {
1245         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Setpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
1246         if e1 != 0 {
1247                 err = errnoErr(e1)
1248         }
1249         return
1250 }
1251
1252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1253
1254 func Setregid(rgid int, egid int) (err error) {
1255         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
1256         if e1 != 0 {
1257                 err = errnoErr(e1)
1258         }
1259         return
1260 }
1261
1262 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1263
1264 func Setreuid(ruid int, euid int) (err error) {
1265         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
1266         if e1 != 0 {
1267                 err = errnoErr(e1)
1268         }
1269         return
1270 }
1271
1272 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1273
1274 func setrlimit(which int, lim *Rlimit) (err error) {
1275         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_setrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
1276         if e1 != 0 {
1277                 err = errnoErr(e1)
1278         }
1279         return
1280 }
1281
1282 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1283
1284 func Stat(path string, stat *Stat_t) (err error) {
1285         var _p0 *byte
1286         _p0, err = BytePtrFromString(path)
1287         if err != nil {
1288                 return
1289         }
1290         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Stat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
1291         if e1 != 0 {
1292                 err = errnoErr(e1)
1293         }
1294         return
1295 }
1296
1297 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1298
1299 func Statfs(path string, buf *Statfs_t) (err error) {
1300         var _p0 *byte
1301         _p0, err = BytePtrFromString(path)
1302         if err != nil {
1303                 return
1304         }
1305         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Statfs)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
1306         if e1 != 0 {
1307                 err = errnoErr(e1)
1308         }
1309         return
1310 }
1311
1312 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1313
1314 func Symlink(path string, link string) (err error) {
1315         var _p0 *byte
1316         _p0, err = BytePtrFromString(path)
1317         if err != nil {
1318                 return
1319         }
1320         var _p1 *byte
1321         _p1, err = BytePtrFromString(link)
1322         if err != nil {
1323                 return
1324         }
1325         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Symlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1326         if e1 != 0 {
1327                 err = errnoErr(e1)
1328         }
1329         return
1330 }
1331
1332 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1333
1334 func Truncate(path string, length int64) (err error) {
1335         var _p0 *byte
1336         _p0, err = BytePtrFromString(path)
1337         if err != nil {
1338                 return
1339         }
1340         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Truncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
1341         if e1 != 0 {
1342                 err = errnoErr(e1)
1343         }
1344         return
1345 }
1346
1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1348
1349 func Umask(newmask int) (oldmask int) {
1350         r0, _, _ := syscall6(uintptr(unsafe.Pointer(&libc_Umask)), 1, uintptr(newmask), 0, 0, 0, 0, 0)
1351         oldmask = int(r0)
1352         return
1353 }
1354
1355 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1356
1357 func Unlink(path string) (err error) {
1358         var _p0 *byte
1359         _p0, err = BytePtrFromString(path)
1360         if err != nil {
1361                 return
1362         }
1363         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Unlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1364         if e1 != 0 {
1365                 err = errnoErr(e1)
1366         }
1367         return
1368 }
1369
1370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1371
1372 func Uname(buf *Utsname) (err error) {
1373         _, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Uname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
1374         if e1 != 0 {
1375                 err = errnoErr(e1)
1376         }
1377         return
1378 }
1379
1380 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1381
1382 func write(fd int, p []byte) (n int, err error) {
1383         var _p0 *byte
1384         if len(p) > 0 {
1385                 _p0 = &p[0]
1386         }
1387         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_write)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1388         n = int(r0)
1389         if e1 != 0 {
1390                 err = errnoErr(e1)
1391         }
1392         return
1393 }
1394
1395 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1396
1397 func writev(fd int, iovecs []Iovec) (n uintptr, err error) {
1398         var _p0 *Iovec
1399         if len(iovecs) > 0 {
1400                 _p0 = &iovecs[0]
1401         }
1402         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_writev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovecs)), 0, 0, 0)
1403         n = uintptr(r0)
1404         if e1 != 0 {
1405                 err = errnoErr(e1)
1406         }
1407         return
1408 }
1409
1410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1411
1412 func gettimeofday(tv *Timeval, tzp *Timezone) (err error) {
1413         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_gettimeofday)), 2, uintptr(unsafe.Pointer(tv)), uintptr(unsafe.Pointer(tzp)), 0, 0, 0, 0)
1414         if e1 != 0 {
1415                 err = errnoErr(e1)
1416         }
1417         return
1418 }
1419
1420 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1421
1422 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1423         r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_mmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1424         ret = uintptr(r0)
1425         if e1 != 0 {
1426                 err = errnoErr(e1)
1427         }
1428         return
1429 }
1430
1431 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1432
1433 func munmap(addr uintptr, length uintptr) (err error) {
1434         _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_munmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
1435         if e1 != 0 {
1436                 err = errnoErr(e1)
1437         }
1438         return
1439 }