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