diff options
author | appilon <apilon@hashicorp.com> | 2019-02-27 16:43:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 16:43:31 -0500 |
commit | 844b5a68d8af4791755b8f0ad293cc99f5959183 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go | |
parent | 303b299eeb6b06e939e35905e4b34cb410dd9dc3 (diff) | |
parent | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (diff) | |
download | terraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.tar.gz terraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.tar.zst terraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.zip |
Merge pull request #27 from terraform-providers/go-modules-2019-02-22
[MODULES] Switch to Go Modules
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go | 1669 |
1 files changed, 1669 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go new file mode 100644 index 0000000..2ca54f0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go | |||
@@ -0,0 +1,1669 @@ | |||
1 | // mksyscall.pl -l32 -netbsd -arm -tags netbsd,arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go | ||
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | ||
3 | |||
4 | // +build netbsd,arm | ||
5 | |||
6 | package unix | ||
7 | |||
8 | import ( | ||
9 | "syscall" | ||
10 | "unsafe" | ||
11 | ) | ||
12 | |||
13 | var _ syscall.Errno | ||
14 | |||
15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
16 | |||
17 | func getgroups(ngid int, gid *_Gid_t) (n int, err error) { | ||
18 | r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) | ||
19 | n = int(r0) | ||
20 | if e1 != 0 { | ||
21 | err = errnoErr(e1) | ||
22 | } | ||
23 | return | ||
24 | } | ||
25 | |||
26 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
27 | |||
28 | func setgroups(ngid int, gid *_Gid_t) (err error) { | ||
29 | _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) | ||
30 | if e1 != 0 { | ||
31 | err = errnoErr(e1) | ||
32 | } | ||
33 | return | ||
34 | } | ||
35 | |||
36 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
37 | |||
38 | func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { | ||
39 | r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) | ||
40 | wpid = int(r0) | ||
41 | if e1 != 0 { | ||
42 | err = errnoErr(e1) | ||
43 | } | ||
44 | return | ||
45 | } | ||
46 | |||
47 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
48 | |||
49 | func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { | ||
50 | r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
51 | fd = int(r0) | ||
52 | if e1 != 0 { | ||
53 | err = errnoErr(e1) | ||
54 | } | ||
55 | return | ||
56 | } | ||
57 | |||
58 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
59 | |||
60 | func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | ||
61 | _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) | ||
62 | if e1 != 0 { | ||
63 | err = errnoErr(e1) | ||
64 | } | ||
65 | return | ||
66 | } | ||
67 | |||
68 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
69 | |||
70 | func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | ||
71 | _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) | ||
72 | if e1 != 0 { | ||
73 | err = errnoErr(e1) | ||
74 | } | ||
75 | return | ||
76 | } | ||
77 | |||
78 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
79 | |||
80 | func socket(domain int, typ int, proto int) (fd int, err error) { | ||
81 | r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) | ||
82 | fd = int(r0) | ||
83 | if e1 != 0 { | ||
84 | err = errnoErr(e1) | ||
85 | } | ||
86 | return | ||
87 | } | ||
88 | |||
89 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
90 | |||
91 | func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { | ||
92 | _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) | ||
93 | if e1 != 0 { | ||
94 | err = errnoErr(e1) | ||
95 | } | ||
96 | return | ||
97 | } | ||
98 | |||
99 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
100 | |||
101 | func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { | ||
102 | _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) | ||
103 | if e1 != 0 { | ||
104 | err = errnoErr(e1) | ||
105 | } | ||
106 | return | ||
107 | } | ||
108 | |||
109 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
110 | |||
111 | func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | ||
112 | _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
113 | if e1 != 0 { | ||
114 | err = errnoErr(e1) | ||
115 | } | ||
116 | return | ||
117 | } | ||
118 | |||
119 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
120 | |||
121 | func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | ||
122 | _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | ||
123 | if e1 != 0 { | ||
124 | err = errnoErr(e1) | ||
125 | } | ||
126 | return | ||
127 | } | ||
128 | |||
129 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
130 | |||
131 | func Shutdown(s int, how int) (err error) { | ||
132 | _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) | ||
133 | if e1 != 0 { | ||
134 | err = errnoErr(e1) | ||
135 | } | ||
136 | return | ||
137 | } | ||
138 | |||
139 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
140 | |||
141 | func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { | ||
142 | _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) | ||
143 | if e1 != 0 { | ||
144 | err = errnoErr(e1) | ||
145 | } | ||
146 | return | ||
147 | } | ||
148 | |||
149 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
150 | |||
151 | func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { | ||
152 | var _p0 unsafe.Pointer | ||
153 | if len(p) > 0 { | ||
154 | _p0 = unsafe.Pointer(&p[0]) | ||
155 | } else { | ||
156 | _p0 = unsafe.Pointer(&_zero) | ||
157 | } | ||
158 | r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) | ||
159 | n = int(r0) | ||
160 | if e1 != 0 { | ||
161 | err = errnoErr(e1) | ||
162 | } | ||
163 | return | ||
164 | } | ||
165 | |||
166 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
167 | |||
168 | func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { | ||
169 | var _p0 unsafe.Pointer | ||
170 | if len(buf) > 0 { | ||
171 | _p0 = unsafe.Pointer(&buf[0]) | ||
172 | } else { | ||
173 | _p0 = unsafe.Pointer(&_zero) | ||
174 | } | ||
175 | _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) | ||
176 | if e1 != 0 { | ||
177 | err = errnoErr(e1) | ||
178 | } | ||
179 | return | ||
180 | } | ||
181 | |||
182 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
183 | |||
184 | func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { | ||
185 | r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | ||
186 | n = int(r0) | ||
187 | if e1 != 0 { | ||
188 | err = errnoErr(e1) | ||
189 | } | ||
190 | return | ||
191 | } | ||
192 | |||
193 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
194 | |||
195 | func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { | ||
196 | r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | ||
197 | n = int(r0) | ||
198 | if e1 != 0 { | ||
199 | err = errnoErr(e1) | ||
200 | } | ||
201 | return | ||
202 | } | ||
203 | |||
204 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
205 | |||
206 | func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { | ||
207 | r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) | ||
208 | n = int(r0) | ||
209 | if e1 != 0 { | ||
210 | err = errnoErr(e1) | ||
211 | } | ||
212 | return | ||
213 | } | ||
214 | |||
215 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
216 | |||
217 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { | ||
218 | var _p0 unsafe.Pointer | ||
219 | if len(mib) > 0 { | ||
220 | _p0 = unsafe.Pointer(&mib[0]) | ||
221 | } else { | ||
222 | _p0 = unsafe.Pointer(&_zero) | ||
223 | } | ||
224 | _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) | ||
225 | if e1 != 0 { | ||
226 | err = errnoErr(e1) | ||
227 | } | ||
228 | return | ||
229 | } | ||
230 | |||
231 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
232 | |||
233 | func utimes(path string, timeval *[2]Timeval) (err error) { | ||
234 | var _p0 *byte | ||
235 | _p0, err = BytePtrFromString(path) | ||
236 | if err != nil { | ||
237 | return | ||
238 | } | ||
239 | _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) | ||
240 | if e1 != 0 { | ||
241 | err = errnoErr(e1) | ||
242 | } | ||
243 | return | ||
244 | } | ||
245 | |||
246 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
247 | |||
248 | func futimes(fd int, timeval *[2]Timeval) (err error) { | ||
249 | _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) | ||
250 | if e1 != 0 { | ||
251 | err = errnoErr(e1) | ||
252 | } | ||
253 | return | ||
254 | } | ||
255 | |||
256 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
257 | |||
258 | func fcntl(fd int, cmd int, arg int) (val int, err error) { | ||
259 | r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) | ||
260 | val = int(r0) | ||
261 | if e1 != 0 { | ||
262 | err = errnoErr(e1) | ||
263 | } | ||
264 | return | ||
265 | } | ||
266 | |||
267 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
268 | |||
269 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | ||
270 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | ||
271 | n = int(r0) | ||
272 | if e1 != 0 { | ||
273 | err = errnoErr(e1) | ||
274 | } | ||
275 | return | ||
276 | } | ||
277 | |||
278 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
279 | |||
280 | func Madvise(b []byte, behav int) (err error) { | ||
281 | var _p0 unsafe.Pointer | ||
282 | if len(b) > 0 { | ||
283 | _p0 = unsafe.Pointer(&b[0]) | ||
284 | } else { | ||
285 | _p0 = unsafe.Pointer(&_zero) | ||
286 | } | ||
287 | _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) | ||
288 | if e1 != 0 { | ||
289 | err = errnoErr(e1) | ||
290 | } | ||
291 | return | ||
292 | } | ||
293 | |||
294 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
295 | |||
296 | func Mlock(b []byte) (err error) { | ||
297 | var _p0 unsafe.Pointer | ||
298 | if len(b) > 0 { | ||
299 | _p0 = unsafe.Pointer(&b[0]) | ||
300 | } else { | ||
301 | _p0 = unsafe.Pointer(&_zero) | ||
302 | } | ||
303 | _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) | ||
304 | if e1 != 0 { | ||
305 | err = errnoErr(e1) | ||
306 | } | ||
307 | return | ||
308 | } | ||
309 | |||
310 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
311 | |||
312 | func Mlockall(flags int) (err error) { | ||
313 | _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) | ||
314 | if e1 != 0 { | ||
315 | err = errnoErr(e1) | ||
316 | } | ||
317 | return | ||
318 | } | ||
319 | |||
320 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
321 | |||
322 | func Mprotect(b []byte, prot int) (err error) { | ||
323 | var _p0 unsafe.Pointer | ||
324 | if len(b) > 0 { | ||
325 | _p0 = unsafe.Pointer(&b[0]) | ||
326 | } else { | ||
327 | _p0 = unsafe.Pointer(&_zero) | ||
328 | } | ||
329 | _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) | ||
330 | if e1 != 0 { | ||
331 | err = errnoErr(e1) | ||
332 | } | ||
333 | return | ||
334 | } | ||
335 | |||
336 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
337 | |||
338 | func Msync(b []byte, flags int) (err error) { | ||
339 | var _p0 unsafe.Pointer | ||
340 | if len(b) > 0 { | ||
341 | _p0 = unsafe.Pointer(&b[0]) | ||
342 | } else { | ||
343 | _p0 = unsafe.Pointer(&_zero) | ||
344 | } | ||
345 | _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) | ||
346 | if e1 != 0 { | ||
347 | err = errnoErr(e1) | ||
348 | } | ||
349 | return | ||
350 | } | ||
351 | |||
352 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
353 | |||
354 | func Munlock(b []byte) (err error) { | ||
355 | var _p0 unsafe.Pointer | ||
356 | if len(b) > 0 { | ||
357 | _p0 = unsafe.Pointer(&b[0]) | ||
358 | } else { | ||
359 | _p0 = unsafe.Pointer(&_zero) | ||
360 | } | ||
361 | _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) | ||
362 | if e1 != 0 { | ||
363 | err = errnoErr(e1) | ||
364 | } | ||
365 | return | ||
366 | } | ||
367 | |||
368 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
369 | |||
370 | func Munlockall() (err error) { | ||
371 | _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) | ||
372 | if e1 != 0 { | ||
373 | err = errnoErr(e1) | ||
374 | } | ||
375 | return | ||
376 | } | ||
377 | |||
378 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
379 | |||
380 | func pipe() (fd1 int, fd2 int, err error) { | ||
381 | r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) | ||
382 | fd1 = int(r0) | ||
383 | fd2 = int(r1) | ||
384 | if e1 != 0 { | ||
385 | err = errnoErr(e1) | ||
386 | } | ||
387 | return | ||
388 | } | ||
389 | |||
390 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
391 | |||
392 | func getdents(fd int, buf []byte) (n int, err error) { | ||
393 | var _p0 unsafe.Pointer | ||
394 | if len(buf) > 0 { | ||
395 | _p0 = unsafe.Pointer(&buf[0]) | ||
396 | } else { | ||
397 | _p0 = unsafe.Pointer(&_zero) | ||
398 | } | ||
399 | r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) | ||
400 | n = int(r0) | ||
401 | if e1 != 0 { | ||
402 | err = errnoErr(e1) | ||
403 | } | ||
404 | return | ||
405 | } | ||
406 | |||
407 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
408 | |||
409 | func Getcwd(buf []byte) (n int, err error) { | ||
410 | var _p0 unsafe.Pointer | ||
411 | if len(buf) > 0 { | ||
412 | _p0 = unsafe.Pointer(&buf[0]) | ||
413 | } else { | ||
414 | _p0 = unsafe.Pointer(&_zero) | ||
415 | } | ||
416 | r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) | ||
417 | n = int(r0) | ||
418 | if e1 != 0 { | ||
419 | err = errnoErr(e1) | ||
420 | } | ||
421 | return | ||
422 | } | ||
423 | |||
424 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
425 | |||
426 | func ioctl(fd int, req uint, arg uintptr) (err error) { | ||
427 | _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) | ||
428 | if e1 != 0 { | ||
429 | err = errnoErr(e1) | ||
430 | } | ||
431 | return | ||
432 | } | ||
433 | |||
434 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
435 | |||
436 | func Access(path string, mode uint32) (err error) { | ||
437 | var _p0 *byte | ||
438 | _p0, err = BytePtrFromString(path) | ||
439 | if err != nil { | ||
440 | return | ||
441 | } | ||
442 | _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
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 Adjtime(delta *Timeval, olddelta *Timeval) (err error) { | ||
452 | _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 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 Chdir(path string) (err error) { | ||
462 | var _p0 *byte | ||
463 | _p0, err = BytePtrFromString(path) | ||
464 | if err != nil { | ||
465 | return | ||
466 | } | ||
467 | _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
468 | if e1 != 0 { | ||
469 | err = errnoErr(e1) | ||
470 | } | ||
471 | return | ||
472 | } | ||
473 | |||
474 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
475 | |||
476 | func Chflags(path string, flags int) (err error) { | ||
477 | var _p0 *byte | ||
478 | _p0, err = BytePtrFromString(path) | ||
479 | if err != nil { | ||
480 | return | ||
481 | } | ||
482 | _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
483 | if e1 != 0 { | ||
484 | err = errnoErr(e1) | ||
485 | } | ||
486 | return | ||
487 | } | ||
488 | |||
489 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
490 | |||
491 | func Chmod(path string, mode uint32) (err error) { | ||
492 | var _p0 *byte | ||
493 | _p0, err = BytePtrFromString(path) | ||
494 | if err != nil { | ||
495 | return | ||
496 | } | ||
497 | _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
498 | if e1 != 0 { | ||
499 | err = errnoErr(e1) | ||
500 | } | ||
501 | return | ||
502 | } | ||
503 | |||
504 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
505 | |||
506 | func Chown(path string, uid int, gid int) (err error) { | ||
507 | var _p0 *byte | ||
508 | _p0, err = BytePtrFromString(path) | ||
509 | if err != nil { | ||
510 | return | ||
511 | } | ||
512 | _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | ||
513 | if e1 != 0 { | ||
514 | err = errnoErr(e1) | ||
515 | } | ||
516 | return | ||
517 | } | ||
518 | |||
519 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
520 | |||
521 | func Chroot(path string) (err error) { | ||
522 | var _p0 *byte | ||
523 | _p0, err = BytePtrFromString(path) | ||
524 | if err != nil { | ||
525 | return | ||
526 | } | ||
527 | _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
528 | if e1 != 0 { | ||
529 | err = errnoErr(e1) | ||
530 | } | ||
531 | return | ||
532 | } | ||
533 | |||
534 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
535 | |||
536 | func Close(fd int) (err error) { | ||
537 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) | ||
538 | if e1 != 0 { | ||
539 | err = errnoErr(e1) | ||
540 | } | ||
541 | return | ||
542 | } | ||
543 | |||
544 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
545 | |||
546 | func Dup(fd int) (nfd int, err error) { | ||
547 | r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) | ||
548 | nfd = int(r0) | ||
549 | if e1 != 0 { | ||
550 | err = errnoErr(e1) | ||
551 | } | ||
552 | return | ||
553 | } | ||
554 | |||
555 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
556 | |||
557 | func Dup2(from int, to int) (err error) { | ||
558 | _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) | ||
559 | if e1 != 0 { | ||
560 | err = errnoErr(e1) | ||
561 | } | ||
562 | return | ||
563 | } | ||
564 | |||
565 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
566 | |||
567 | func Exit(code int) { | ||
568 | Syscall(SYS_EXIT, uintptr(code), 0, 0) | ||
569 | return | ||
570 | } | ||
571 | |||
572 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
573 | |||
574 | func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { | ||
575 | var _p0 *byte | ||
576 | _p0, err = BytePtrFromString(attrname) | ||
577 | if err != nil { | ||
578 | return | ||
579 | } | ||
580 | r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) | ||
581 | ret = int(r0) | ||
582 | if e1 != 0 { | ||
583 | err = errnoErr(e1) | ||
584 | } | ||
585 | return | ||
586 | } | ||
587 | |||
588 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
589 | |||
590 | func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { | ||
591 | var _p0 *byte | ||
592 | _p0, err = BytePtrFromString(attrname) | ||
593 | if err != nil { | ||
594 | return | ||
595 | } | ||
596 | r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) | ||
597 | ret = int(r0) | ||
598 | if e1 != 0 { | ||
599 | err = errnoErr(e1) | ||
600 | } | ||
601 | return | ||
602 | } | ||
603 | |||
604 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
605 | |||
606 | func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { | ||
607 | var _p0 *byte | ||
608 | _p0, err = BytePtrFromString(attrname) | ||
609 | if err != nil { | ||
610 | return | ||
611 | } | ||
612 | _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) | ||
613 | if e1 != 0 { | ||
614 | err = errnoErr(e1) | ||
615 | } | ||
616 | return | ||
617 | } | ||
618 | |||
619 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
620 | |||
621 | func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { | ||
622 | r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) | ||
623 | ret = int(r0) | ||
624 | if e1 != 0 { | ||
625 | err = errnoErr(e1) | ||
626 | } | ||
627 | return | ||
628 | } | ||
629 | |||
630 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
631 | |||
632 | func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { | ||
633 | var _p0 *byte | ||
634 | _p0, err = BytePtrFromString(file) | ||
635 | if err != nil { | ||
636 | return | ||
637 | } | ||
638 | var _p1 *byte | ||
639 | _p1, err = BytePtrFromString(attrname) | ||
640 | if err != nil { | ||
641 | return | ||
642 | } | ||
643 | r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) | ||
644 | ret = int(r0) | ||
645 | if e1 != 0 { | ||
646 | err = errnoErr(e1) | ||
647 | } | ||
648 | return | ||
649 | } | ||
650 | |||
651 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
652 | |||
653 | func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { | ||
654 | var _p0 *byte | ||
655 | _p0, err = BytePtrFromString(file) | ||
656 | if err != nil { | ||
657 | return | ||
658 | } | ||
659 | var _p1 *byte | ||
660 | _p1, err = BytePtrFromString(attrname) | ||
661 | if err != nil { | ||
662 | return | ||
663 | } | ||
664 | r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) | ||
665 | ret = int(r0) | ||
666 | if e1 != 0 { | ||
667 | err = errnoErr(e1) | ||
668 | } | ||
669 | return | ||
670 | } | ||
671 | |||
672 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
673 | |||
674 | func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { | ||
675 | var _p0 *byte | ||
676 | _p0, err = BytePtrFromString(file) | ||
677 | if err != nil { | ||
678 | return | ||
679 | } | ||
680 | var _p1 *byte | ||
681 | _p1, err = BytePtrFromString(attrname) | ||
682 | if err != nil { | ||
683 | return | ||
684 | } | ||
685 | _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) | ||
686 | if e1 != 0 { | ||
687 | err = errnoErr(e1) | ||
688 | } | ||
689 | return | ||
690 | } | ||
691 | |||
692 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
693 | |||
694 | func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { | ||
695 | var _p0 *byte | ||
696 | _p0, err = BytePtrFromString(file) | ||
697 | if err != nil { | ||
698 | return | ||
699 | } | ||
700 | r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) | ||
701 | ret = int(r0) | ||
702 | if e1 != 0 { | ||
703 | err = errnoErr(e1) | ||
704 | } | ||
705 | return | ||
706 | } | ||
707 | |||
708 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
709 | |||
710 | func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { | ||
711 | var _p0 *byte | ||
712 | _p0, err = BytePtrFromString(link) | ||
713 | if err != nil { | ||
714 | return | ||
715 | } | ||
716 | var _p1 *byte | ||
717 | _p1, err = BytePtrFromString(attrname) | ||
718 | if err != nil { | ||
719 | return | ||
720 | } | ||
721 | r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) | ||
722 | ret = int(r0) | ||
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 ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { | ||
732 | var _p0 *byte | ||
733 | _p0, err = BytePtrFromString(link) | ||
734 | if err != nil { | ||
735 | return | ||
736 | } | ||
737 | var _p1 *byte | ||
738 | _p1, err = BytePtrFromString(attrname) | ||
739 | if err != nil { | ||
740 | return | ||
741 | } | ||
742 | r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) | ||
743 | ret = int(r0) | ||
744 | if e1 != 0 { | ||
745 | err = errnoErr(e1) | ||
746 | } | ||
747 | return | ||
748 | } | ||
749 | |||
750 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
751 | |||
752 | func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { | ||
753 | var _p0 *byte | ||
754 | _p0, err = BytePtrFromString(link) | ||
755 | if err != nil { | ||
756 | return | ||
757 | } | ||
758 | var _p1 *byte | ||
759 | _p1, err = BytePtrFromString(attrname) | ||
760 | if err != nil { | ||
761 | return | ||
762 | } | ||
763 | _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) | ||
764 | if e1 != 0 { | ||
765 | err = errnoErr(e1) | ||
766 | } | ||
767 | return | ||
768 | } | ||
769 | |||
770 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
771 | |||
772 | func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { | ||
773 | var _p0 *byte | ||
774 | _p0, err = BytePtrFromString(link) | ||
775 | if err != nil { | ||
776 | return | ||
777 | } | ||
778 | r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) | ||
779 | ret = int(r0) | ||
780 | if e1 != 0 { | ||
781 | err = errnoErr(e1) | ||
782 | } | ||
783 | return | ||
784 | } | ||
785 | |||
786 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
787 | |||
788 | func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { | ||
789 | var _p0 *byte | ||
790 | _p0, err = BytePtrFromString(path) | ||
791 | if err != nil { | ||
792 | return | ||
793 | } | ||
794 | _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) | ||
795 | if e1 != 0 { | ||
796 | err = errnoErr(e1) | ||
797 | } | ||
798 | return | ||
799 | } | ||
800 | |||
801 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
802 | |||
803 | func Fadvise(fd int, offset int64, length int64, advice int) (err error) { | ||
804 | _, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0) | ||
805 | if e1 != 0 { | ||
806 | err = errnoErr(e1) | ||
807 | } | ||
808 | return | ||
809 | } | ||
810 | |||
811 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
812 | |||
813 | func Fchdir(fd int) (err error) { | ||
814 | _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) | ||
815 | if e1 != 0 { | ||
816 | err = errnoErr(e1) | ||
817 | } | ||
818 | return | ||
819 | } | ||
820 | |||
821 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
822 | |||
823 | func Fchflags(fd int, flags int) (err error) { | ||
824 | _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) | ||
825 | if e1 != 0 { | ||
826 | err = errnoErr(e1) | ||
827 | } | ||
828 | return | ||
829 | } | ||
830 | |||
831 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
832 | |||
833 | func Fchmod(fd int, mode uint32) (err error) { | ||
834 | _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) | ||
835 | if e1 != 0 { | ||
836 | err = errnoErr(e1) | ||
837 | } | ||
838 | return | ||
839 | } | ||
840 | |||
841 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
842 | |||
843 | func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { | ||
844 | var _p0 *byte | ||
845 | _p0, err = BytePtrFromString(path) | ||
846 | if err != nil { | ||
847 | return | ||
848 | } | ||
849 | _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) | ||
850 | if e1 != 0 { | ||
851 | err = errnoErr(e1) | ||
852 | } | ||
853 | return | ||
854 | } | ||
855 | |||
856 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
857 | |||
858 | func Fchown(fd int, uid int, gid int) (err error) { | ||
859 | _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) | ||
860 | if e1 != 0 { | ||
861 | err = errnoErr(e1) | ||
862 | } | ||
863 | return | ||
864 | } | ||
865 | |||
866 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
867 | |||
868 | func Flock(fd int, how int) (err error) { | ||
869 | _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) | ||
870 | if e1 != 0 { | ||
871 | err = errnoErr(e1) | ||
872 | } | ||
873 | return | ||
874 | } | ||
875 | |||
876 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
877 | |||
878 | func Fpathconf(fd int, name int) (val int, err error) { | ||
879 | r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) | ||
880 | val = int(r0) | ||
881 | if e1 != 0 { | ||
882 | err = errnoErr(e1) | ||
883 | } | ||
884 | return | ||
885 | } | ||
886 | |||
887 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
888 | |||
889 | func Fstat(fd int, stat *Stat_t) (err error) { | ||
890 | _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | ||
891 | if e1 != 0 { | ||
892 | err = errnoErr(e1) | ||
893 | } | ||
894 | return | ||
895 | } | ||
896 | |||
897 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
898 | |||
899 | func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { | ||
900 | var _p0 *byte | ||
901 | _p0, err = BytePtrFromString(path) | ||
902 | if err != nil { | ||
903 | return | ||
904 | } | ||
905 | _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) | ||
906 | if e1 != 0 { | ||
907 | err = errnoErr(e1) | ||
908 | } | ||
909 | return | ||
910 | } | ||
911 | |||
912 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
913 | |||
914 | func Fsync(fd int) (err error) { | ||
915 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) | ||
916 | if e1 != 0 { | ||
917 | err = errnoErr(e1) | ||
918 | } | ||
919 | return | ||
920 | } | ||
921 | |||
922 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
923 | |||
924 | func Ftruncate(fd int, length int64) (err error) { | ||
925 | _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) | ||
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 Getegid() (egid int) { | ||
935 | r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) | ||
936 | egid = int(r0) | ||
937 | return | ||
938 | } | ||
939 | |||
940 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
941 | |||
942 | func Geteuid() (uid int) { | ||
943 | r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) | ||
944 | uid = int(r0) | ||
945 | return | ||
946 | } | ||
947 | |||
948 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
949 | |||
950 | func Getgid() (gid int) { | ||
951 | r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) | ||
952 | gid = int(r0) | ||
953 | return | ||
954 | } | ||
955 | |||
956 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
957 | |||
958 | func Getpgid(pid int) (pgid int, err error) { | ||
959 | r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) | ||
960 | pgid = int(r0) | ||
961 | if e1 != 0 { | ||
962 | err = errnoErr(e1) | ||
963 | } | ||
964 | return | ||
965 | } | ||
966 | |||
967 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
968 | |||
969 | func Getpgrp() (pgrp int) { | ||
970 | r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) | ||
971 | pgrp = int(r0) | ||
972 | return | ||
973 | } | ||
974 | |||
975 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
976 | |||
977 | func Getpid() (pid int) { | ||
978 | r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) | ||
979 | pid = int(r0) | ||
980 | return | ||
981 | } | ||
982 | |||
983 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
984 | |||
985 | func Getppid() (ppid int) { | ||
986 | r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) | ||
987 | ppid = int(r0) | ||
988 | return | ||
989 | } | ||
990 | |||
991 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
992 | |||
993 | func Getpriority(which int, who int) (prio int, err error) { | ||
994 | r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) | ||
995 | prio = int(r0) | ||
996 | if e1 != 0 { | ||
997 | err = errnoErr(e1) | ||
998 | } | ||
999 | return | ||
1000 | } | ||
1001 | |||
1002 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1003 | |||
1004 | func Getrlimit(which int, lim *Rlimit) (err error) { | ||
1005 | _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) | ||
1006 | if e1 != 0 { | ||
1007 | err = errnoErr(e1) | ||
1008 | } | ||
1009 | return | ||
1010 | } | ||
1011 | |||
1012 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1013 | |||
1014 | func Getrusage(who int, rusage *Rusage) (err error) { | ||
1015 | _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) | ||
1016 | if e1 != 0 { | ||
1017 | err = errnoErr(e1) | ||
1018 | } | ||
1019 | return | ||
1020 | } | ||
1021 | |||
1022 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1023 | |||
1024 | func Getsid(pid int) (sid int, err error) { | ||
1025 | r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) | ||
1026 | sid = int(r0) | ||
1027 | if e1 != 0 { | ||
1028 | err = errnoErr(e1) | ||
1029 | } | ||
1030 | return | ||
1031 | } | ||
1032 | |||
1033 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1034 | |||
1035 | func Gettimeofday(tv *Timeval) (err error) { | ||
1036 | _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) | ||
1037 | if e1 != 0 { | ||
1038 | err = errnoErr(e1) | ||
1039 | } | ||
1040 | return | ||
1041 | } | ||
1042 | |||
1043 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1044 | |||
1045 | func Getuid() (uid int) { | ||
1046 | r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) | ||
1047 | uid = int(r0) | ||
1048 | return | ||
1049 | } | ||
1050 | |||
1051 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1052 | |||
1053 | func Issetugid() (tainted bool) { | ||
1054 | r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) | ||
1055 | tainted = bool(r0 != 0) | ||
1056 | return | ||
1057 | } | ||
1058 | |||
1059 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1060 | |||
1061 | func Kill(pid int, signum syscall.Signal) (err error) { | ||
1062 | _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) | ||
1063 | if e1 != 0 { | ||
1064 | err = errnoErr(e1) | ||
1065 | } | ||
1066 | return | ||
1067 | } | ||
1068 | |||
1069 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1070 | |||
1071 | func Kqueue() (fd int, err error) { | ||
1072 | r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) | ||
1073 | fd = int(r0) | ||
1074 | if e1 != 0 { | ||
1075 | err = errnoErr(e1) | ||
1076 | } | ||
1077 | return | ||
1078 | } | ||
1079 | |||
1080 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1081 | |||
1082 | func Lchown(path string, uid int, gid int) (err error) { | ||
1083 | var _p0 *byte | ||
1084 | _p0, err = BytePtrFromString(path) | ||
1085 | if err != nil { | ||
1086 | return | ||
1087 | } | ||
1088 | _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | ||
1089 | if e1 != 0 { | ||
1090 | err = errnoErr(e1) | ||
1091 | } | ||
1092 | return | ||
1093 | } | ||
1094 | |||
1095 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1096 | |||
1097 | func Link(path string, link string) (err error) { | ||
1098 | var _p0 *byte | ||
1099 | _p0, err = BytePtrFromString(path) | ||
1100 | if err != nil { | ||
1101 | return | ||
1102 | } | ||
1103 | var _p1 *byte | ||
1104 | _p1, err = BytePtrFromString(link) | ||
1105 | if err != nil { | ||
1106 | return | ||
1107 | } | ||
1108 | _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1109 | if e1 != 0 { | ||
1110 | err = errnoErr(e1) | ||
1111 | } | ||
1112 | return | ||
1113 | } | ||
1114 | |||
1115 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1116 | |||
1117 | func Listen(s int, backlog int) (err error) { | ||
1118 | _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) | ||
1119 | if e1 != 0 { | ||
1120 | err = errnoErr(e1) | ||
1121 | } | ||
1122 | return | ||
1123 | } | ||
1124 | |||
1125 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1126 | |||
1127 | func Lstat(path string, stat *Stat_t) (err error) { | ||
1128 | var _p0 *byte | ||
1129 | _p0, err = BytePtrFromString(path) | ||
1130 | if err != nil { | ||
1131 | return | ||
1132 | } | ||
1133 | _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1134 | if e1 != 0 { | ||
1135 | err = errnoErr(e1) | ||
1136 | } | ||
1137 | return | ||
1138 | } | ||
1139 | |||
1140 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1141 | |||
1142 | func Mkdir(path string, mode uint32) (err error) { | ||
1143 | var _p0 *byte | ||
1144 | _p0, err = BytePtrFromString(path) | ||
1145 | if err != nil { | ||
1146 | return | ||
1147 | } | ||
1148 | _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
1149 | if e1 != 0 { | ||
1150 | err = errnoErr(e1) | ||
1151 | } | ||
1152 | return | ||
1153 | } | ||
1154 | |||
1155 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1156 | |||
1157 | func Mkfifo(path string, mode uint32) (err error) { | ||
1158 | var _p0 *byte | ||
1159 | _p0, err = BytePtrFromString(path) | ||
1160 | if err != nil { | ||
1161 | return | ||
1162 | } | ||
1163 | _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
1164 | if e1 != 0 { | ||
1165 | err = errnoErr(e1) | ||
1166 | } | ||
1167 | return | ||
1168 | } | ||
1169 | |||
1170 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1171 | |||
1172 | func Mknod(path string, mode uint32, dev int) (err error) { | ||
1173 | var _p0 *byte | ||
1174 | _p0, err = BytePtrFromString(path) | ||
1175 | if err != nil { | ||
1176 | return | ||
1177 | } | ||
1178 | _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) | ||
1179 | if e1 != 0 { | ||
1180 | err = errnoErr(e1) | ||
1181 | } | ||
1182 | return | ||
1183 | } | ||
1184 | |||
1185 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1186 | |||
1187 | func Nanosleep(time *Timespec, leftover *Timespec) (err error) { | ||
1188 | _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) | ||
1189 | if e1 != 0 { | ||
1190 | err = errnoErr(e1) | ||
1191 | } | ||
1192 | return | ||
1193 | } | ||
1194 | |||
1195 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1196 | |||
1197 | func Open(path string, mode int, perm uint32) (fd int, err error) { | ||
1198 | var _p0 *byte | ||
1199 | _p0, err = BytePtrFromString(path) | ||
1200 | if err != nil { | ||
1201 | return | ||
1202 | } | ||
1203 | r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) | ||
1204 | fd = int(r0) | ||
1205 | if e1 != 0 { | ||
1206 | err = errnoErr(e1) | ||
1207 | } | ||
1208 | return | ||
1209 | } | ||
1210 | |||
1211 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1212 | |||
1213 | func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { | ||
1214 | var _p0 *byte | ||
1215 | _p0, err = BytePtrFromString(path) | ||
1216 | if err != nil { | ||
1217 | return | ||
1218 | } | ||
1219 | r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) | ||
1220 | fd = int(r0) | ||
1221 | if e1 != 0 { | ||
1222 | err = errnoErr(e1) | ||
1223 | } | ||
1224 | return | ||
1225 | } | ||
1226 | |||
1227 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1228 | |||
1229 | func Pathconf(path string, name int) (val int, err error) { | ||
1230 | var _p0 *byte | ||
1231 | _p0, err = BytePtrFromString(path) | ||
1232 | if err != nil { | ||
1233 | return | ||
1234 | } | ||
1235 | r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) | ||
1236 | val = int(r0) | ||
1237 | if e1 != 0 { | ||
1238 | err = errnoErr(e1) | ||
1239 | } | ||
1240 | return | ||
1241 | } | ||
1242 | |||
1243 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1244 | |||
1245 | func Pread(fd int, p []byte, offset int64) (n int, err error) { | ||
1246 | var _p0 unsafe.Pointer | ||
1247 | if len(p) > 0 { | ||
1248 | _p0 = unsafe.Pointer(&p[0]) | ||
1249 | } else { | ||
1250 | _p0 = unsafe.Pointer(&_zero) | ||
1251 | } | ||
1252 | r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) | ||
1253 | n = int(r0) | ||
1254 | if e1 != 0 { | ||
1255 | err = errnoErr(e1) | ||
1256 | } | ||
1257 | return | ||
1258 | } | ||
1259 | |||
1260 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1261 | |||
1262 | func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | ||
1263 | var _p0 unsafe.Pointer | ||
1264 | if len(p) > 0 { | ||
1265 | _p0 = unsafe.Pointer(&p[0]) | ||
1266 | } else { | ||
1267 | _p0 = unsafe.Pointer(&_zero) | ||
1268 | } | ||
1269 | r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) | ||
1270 | n = int(r0) | ||
1271 | if e1 != 0 { | ||
1272 | err = errnoErr(e1) | ||
1273 | } | ||
1274 | return | ||
1275 | } | ||
1276 | |||
1277 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1278 | |||
1279 | func read(fd int, p []byte) (n int, err error) { | ||
1280 | var _p0 unsafe.Pointer | ||
1281 | if len(p) > 0 { | ||
1282 | _p0 = unsafe.Pointer(&p[0]) | ||
1283 | } else { | ||
1284 | _p0 = unsafe.Pointer(&_zero) | ||
1285 | } | ||
1286 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1287 | n = int(r0) | ||
1288 | if e1 != 0 { | ||
1289 | err = errnoErr(e1) | ||
1290 | } | ||
1291 | return | ||
1292 | } | ||
1293 | |||
1294 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1295 | |||
1296 | func Readlink(path string, buf []byte) (n int, err error) { | ||
1297 | var _p0 *byte | ||
1298 | _p0, err = BytePtrFromString(path) | ||
1299 | if err != nil { | ||
1300 | return | ||
1301 | } | ||
1302 | var _p1 unsafe.Pointer | ||
1303 | if len(buf) > 0 { | ||
1304 | _p1 = unsafe.Pointer(&buf[0]) | ||
1305 | } else { | ||
1306 | _p1 = unsafe.Pointer(&_zero) | ||
1307 | } | ||
1308 | r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) | ||
1309 | n = int(r0) | ||
1310 | if e1 != 0 { | ||
1311 | err = errnoErr(e1) | ||
1312 | } | ||
1313 | return | ||
1314 | } | ||
1315 | |||
1316 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1317 | |||
1318 | func Rename(from string, to string) (err error) { | ||
1319 | var _p0 *byte | ||
1320 | _p0, err = BytePtrFromString(from) | ||
1321 | if err != nil { | ||
1322 | return | ||
1323 | } | ||
1324 | var _p1 *byte | ||
1325 | _p1, err = BytePtrFromString(to) | ||
1326 | if err != nil { | ||
1327 | return | ||
1328 | } | ||
1329 | _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1330 | if e1 != 0 { | ||
1331 | err = errnoErr(e1) | ||
1332 | } | ||
1333 | return | ||
1334 | } | ||
1335 | |||
1336 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1337 | |||
1338 | func Revoke(path string) (err error) { | ||
1339 | var _p0 *byte | ||
1340 | _p0, err = BytePtrFromString(path) | ||
1341 | if err != nil { | ||
1342 | return | ||
1343 | } | ||
1344 | _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1345 | if e1 != 0 { | ||
1346 | err = errnoErr(e1) | ||
1347 | } | ||
1348 | return | ||
1349 | } | ||
1350 | |||
1351 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1352 | |||
1353 | func Rmdir(path string) (err error) { | ||
1354 | var _p0 *byte | ||
1355 | _p0, err = BytePtrFromString(path) | ||
1356 | if err != nil { | ||
1357 | return | ||
1358 | } | ||
1359 | _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1360 | if e1 != 0 { | ||
1361 | err = errnoErr(e1) | ||
1362 | } | ||
1363 | return | ||
1364 | } | ||
1365 | |||
1366 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1367 | |||
1368 | func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { | ||
1369 | r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) | ||
1370 | newoffset = int64(int64(r1)<<32 | int64(r0)) | ||
1371 | if e1 != 0 { | ||
1372 | err = errnoErr(e1) | ||
1373 | } | ||
1374 | return | ||
1375 | } | ||
1376 | |||
1377 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1378 | |||
1379 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { | ||
1380 | _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | ||
1381 | if e1 != 0 { | ||
1382 | err = errnoErr(e1) | ||
1383 | } | ||
1384 | return | ||
1385 | } | ||
1386 | |||
1387 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1388 | |||
1389 | func Setegid(egid int) (err error) { | ||
1390 | _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) | ||
1391 | if e1 != 0 { | ||
1392 | err = errnoErr(e1) | ||
1393 | } | ||
1394 | return | ||
1395 | } | ||
1396 | |||
1397 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1398 | |||
1399 | func Seteuid(euid int) (err error) { | ||
1400 | _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) | ||
1401 | if e1 != 0 { | ||
1402 | err = errnoErr(e1) | ||
1403 | } | ||
1404 | return | ||
1405 | } | ||
1406 | |||
1407 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1408 | |||
1409 | func Setgid(gid int) (err error) { | ||
1410 | _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) | ||
1411 | if e1 != 0 { | ||
1412 | err = errnoErr(e1) | ||
1413 | } | ||
1414 | return | ||
1415 | } | ||
1416 | |||
1417 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1418 | |||
1419 | func Setpgid(pid int, pgid int) (err error) { | ||
1420 | _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) | ||
1421 | if e1 != 0 { | ||
1422 | err = errnoErr(e1) | ||
1423 | } | ||
1424 | return | ||
1425 | } | ||
1426 | |||
1427 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1428 | |||
1429 | func Setpriority(which int, who int, prio int) (err error) { | ||
1430 | _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) | ||
1431 | if e1 != 0 { | ||
1432 | err = errnoErr(e1) | ||
1433 | } | ||
1434 | return | ||
1435 | } | ||
1436 | |||
1437 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1438 | |||
1439 | func Setregid(rgid int, egid int) (err error) { | ||
1440 | _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) | ||
1441 | if e1 != 0 { | ||
1442 | err = errnoErr(e1) | ||
1443 | } | ||
1444 | return | ||
1445 | } | ||
1446 | |||
1447 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1448 | |||
1449 | func Setreuid(ruid int, euid int) (err error) { | ||
1450 | _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) | ||
1451 | if e1 != 0 { | ||
1452 | err = errnoErr(e1) | ||
1453 | } | ||
1454 | return | ||
1455 | } | ||
1456 | |||
1457 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1458 | |||
1459 | func Setrlimit(which int, lim *Rlimit) (err error) { | ||
1460 | _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) | ||
1461 | if e1 != 0 { | ||
1462 | err = errnoErr(e1) | ||
1463 | } | ||
1464 | return | ||
1465 | } | ||
1466 | |||
1467 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1468 | |||
1469 | func Setsid() (pid int, err error) { | ||
1470 | r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) | ||
1471 | pid = int(r0) | ||
1472 | if e1 != 0 { | ||
1473 | err = errnoErr(e1) | ||
1474 | } | ||
1475 | return | ||
1476 | } | ||
1477 | |||
1478 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1479 | |||
1480 | func Settimeofday(tp *Timeval) (err error) { | ||
1481 | _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) | ||
1482 | if e1 != 0 { | ||
1483 | err = errnoErr(e1) | ||
1484 | } | ||
1485 | return | ||
1486 | } | ||
1487 | |||
1488 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1489 | |||
1490 | func Setuid(uid int) (err error) { | ||
1491 | _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) | ||
1492 | if e1 != 0 { | ||
1493 | err = errnoErr(e1) | ||
1494 | } | ||
1495 | return | ||
1496 | } | ||
1497 | |||
1498 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1499 | |||
1500 | func Stat(path string, stat *Stat_t) (err error) { | ||
1501 | var _p0 *byte | ||
1502 | _p0, err = BytePtrFromString(path) | ||
1503 | if err != nil { | ||
1504 | return | ||
1505 | } | ||
1506 | _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1507 | if e1 != 0 { | ||
1508 | err = errnoErr(e1) | ||
1509 | } | ||
1510 | return | ||
1511 | } | ||
1512 | |||
1513 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1514 | |||
1515 | func Symlink(path string, link string) (err error) { | ||
1516 | var _p0 *byte | ||
1517 | _p0, err = BytePtrFromString(path) | ||
1518 | if err != nil { | ||
1519 | return | ||
1520 | } | ||
1521 | var _p1 *byte | ||
1522 | _p1, err = BytePtrFromString(link) | ||
1523 | if err != nil { | ||
1524 | return | ||
1525 | } | ||
1526 | _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1527 | if e1 != 0 { | ||
1528 | err = errnoErr(e1) | ||
1529 | } | ||
1530 | return | ||
1531 | } | ||
1532 | |||
1533 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1534 | |||
1535 | func Sync() (err error) { | ||
1536 | _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) | ||
1537 | if e1 != 0 { | ||
1538 | err = errnoErr(e1) | ||
1539 | } | ||
1540 | return | ||
1541 | } | ||
1542 | |||
1543 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1544 | |||
1545 | func Truncate(path string, length int64) (err error) { | ||
1546 | var _p0 *byte | ||
1547 | _p0, err = BytePtrFromString(path) | ||
1548 | if err != nil { | ||
1549 | return | ||
1550 | } | ||
1551 | _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) | ||
1552 | if e1 != 0 { | ||
1553 | err = errnoErr(e1) | ||
1554 | } | ||
1555 | return | ||
1556 | } | ||
1557 | |||
1558 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1559 | |||
1560 | func Umask(newmask int) (oldmask int) { | ||
1561 | r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) | ||
1562 | oldmask = int(r0) | ||
1563 | return | ||
1564 | } | ||
1565 | |||
1566 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1567 | |||
1568 | func Unlink(path string) (err error) { | ||
1569 | var _p0 *byte | ||
1570 | _p0, err = BytePtrFromString(path) | ||
1571 | if err != nil { | ||
1572 | return | ||
1573 | } | ||
1574 | _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1575 | if e1 != 0 { | ||
1576 | err = errnoErr(e1) | ||
1577 | } | ||
1578 | return | ||
1579 | } | ||
1580 | |||
1581 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1582 | |||
1583 | func Unmount(path string, flags int) (err error) { | ||
1584 | var _p0 *byte | ||
1585 | _p0, err = BytePtrFromString(path) | ||
1586 | if err != nil { | ||
1587 | return | ||
1588 | } | ||
1589 | _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
1590 | if e1 != 0 { | ||
1591 | err = errnoErr(e1) | ||
1592 | } | ||
1593 | return | ||
1594 | } | ||
1595 | |||
1596 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1597 | |||
1598 | func write(fd int, p []byte) (n int, err error) { | ||
1599 | var _p0 unsafe.Pointer | ||
1600 | if len(p) > 0 { | ||
1601 | _p0 = unsafe.Pointer(&p[0]) | ||
1602 | } else { | ||
1603 | _p0 = unsafe.Pointer(&_zero) | ||
1604 | } | ||
1605 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1606 | n = int(r0) | ||
1607 | if e1 != 0 { | ||
1608 | err = errnoErr(e1) | ||
1609 | } | ||
1610 | return | ||
1611 | } | ||
1612 | |||
1613 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1614 | |||
1615 | func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { | ||
1616 | r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) | ||
1617 | ret = uintptr(r0) | ||
1618 | if e1 != 0 { | ||
1619 | err = errnoErr(e1) | ||
1620 | } | ||
1621 | return | ||
1622 | } | ||
1623 | |||
1624 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1625 | |||
1626 | func munmap(addr uintptr, length uintptr) (err error) { | ||
1627 | _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) | ||
1628 | if e1 != 0 { | ||
1629 | err = errnoErr(e1) | ||
1630 | } | ||
1631 | return | ||
1632 | } | ||
1633 | |||
1634 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1635 | |||
1636 | func readlen(fd int, buf *byte, nbuf int) (n int, err error) { | ||
1637 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) | ||
1638 | n = int(r0) | ||
1639 | if e1 != 0 { | ||
1640 | err = errnoErr(e1) | ||
1641 | } | ||
1642 | return | ||
1643 | } | ||
1644 | |||
1645 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1646 | |||
1647 | func writelen(fd int, buf *byte, nbuf int) (n int, err error) { | ||
1648 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) | ||
1649 | n = int(r0) | ||
1650 | if e1 != 0 { | ||
1651 | err = errnoErr(e1) | ||
1652 | } | ||
1653 | return | ||
1654 | } | ||
1655 | |||
1656 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1657 | |||
1658 | func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { | ||
1659 | var _p0 *byte | ||
1660 | _p0, err = BytePtrFromString(path) | ||
1661 | if err != nil { | ||
1662 | return | ||
1663 | } | ||
1664 | _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) | ||
1665 | if e1 != 0 { | ||
1666 | err = errnoErr(e1) | ||
1667 | } | ||
1668 | return | ||
1669 | } | ||