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_dragonfly_amd64.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_dragonfly_amd64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go | 1524 |
1 files changed, 1524 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go new file mode 100644 index 0000000..12da7b4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go | |||
@@ -0,0 +1,1524 @@ | |||
1 | // mksyscall.pl -dragonfly -tags dragonfly,amd64 syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go | ||
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | ||
3 | |||
4 | // +build dragonfly,amd64 | ||
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() (r int, w int, err error) { | ||
381 | r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) | ||
382 | r = int(r0) | ||
383 | w = 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 extpread(fd int, p []byte, flags int, offset int64) (n int, err error) { | ||
393 | var _p0 unsafe.Pointer | ||
394 | if len(p) > 0 { | ||
395 | _p0 = unsafe.Pointer(&p[0]) | ||
396 | } else { | ||
397 | _p0 = unsafe.Pointer(&_zero) | ||
398 | } | ||
399 | r0, _, e1 := Syscall6(SYS_EXTPREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0) | ||
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 extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) { | ||
410 | var _p0 unsafe.Pointer | ||
411 | if len(p) > 0 { | ||
412 | _p0 = unsafe.Pointer(&p[0]) | ||
413 | } else { | ||
414 | _p0 = unsafe.Pointer(&_zero) | ||
415 | } | ||
416 | r0, _, e1 := Syscall6(SYS_EXTPWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 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 Getcwd(buf []byte) (n int, err error) { | ||
427 | var _p0 unsafe.Pointer | ||
428 | if len(buf) > 0 { | ||
429 | _p0 = unsafe.Pointer(&buf[0]) | ||
430 | } else { | ||
431 | _p0 = unsafe.Pointer(&_zero) | ||
432 | } | ||
433 | r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) | ||
434 | n = int(r0) | ||
435 | if e1 != 0 { | ||
436 | err = errnoErr(e1) | ||
437 | } | ||
438 | return | ||
439 | } | ||
440 | |||
441 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
442 | |||
443 | func ioctl(fd int, req uint, arg uintptr) (err error) { | ||
444 | _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) | ||
445 | if e1 != 0 { | ||
446 | err = errnoErr(e1) | ||
447 | } | ||
448 | return | ||
449 | } | ||
450 | |||
451 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
452 | |||
453 | func Access(path string, mode uint32) (err error) { | ||
454 | var _p0 *byte | ||
455 | _p0, err = BytePtrFromString(path) | ||
456 | if err != nil { | ||
457 | return | ||
458 | } | ||
459 | _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
460 | if e1 != 0 { | ||
461 | err = errnoErr(e1) | ||
462 | } | ||
463 | return | ||
464 | } | ||
465 | |||
466 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
467 | |||
468 | func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { | ||
469 | _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) | ||
470 | if e1 != 0 { | ||
471 | err = errnoErr(e1) | ||
472 | } | ||
473 | return | ||
474 | } | ||
475 | |||
476 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
477 | |||
478 | func Chdir(path string) (err error) { | ||
479 | var _p0 *byte | ||
480 | _p0, err = BytePtrFromString(path) | ||
481 | if err != nil { | ||
482 | return | ||
483 | } | ||
484 | _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
485 | if e1 != 0 { | ||
486 | err = errnoErr(e1) | ||
487 | } | ||
488 | return | ||
489 | } | ||
490 | |||
491 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
492 | |||
493 | func Chflags(path string, flags int) (err error) { | ||
494 | var _p0 *byte | ||
495 | _p0, err = BytePtrFromString(path) | ||
496 | if err != nil { | ||
497 | return | ||
498 | } | ||
499 | _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
500 | if e1 != 0 { | ||
501 | err = errnoErr(e1) | ||
502 | } | ||
503 | return | ||
504 | } | ||
505 | |||
506 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
507 | |||
508 | func Chmod(path string, mode uint32) (err error) { | ||
509 | var _p0 *byte | ||
510 | _p0, err = BytePtrFromString(path) | ||
511 | if err != nil { | ||
512 | return | ||
513 | } | ||
514 | _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
515 | if e1 != 0 { | ||
516 | err = errnoErr(e1) | ||
517 | } | ||
518 | return | ||
519 | } | ||
520 | |||
521 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
522 | |||
523 | func Chown(path string, uid int, gid int) (err error) { | ||
524 | var _p0 *byte | ||
525 | _p0, err = BytePtrFromString(path) | ||
526 | if err != nil { | ||
527 | return | ||
528 | } | ||
529 | _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | ||
530 | if e1 != 0 { | ||
531 | err = errnoErr(e1) | ||
532 | } | ||
533 | return | ||
534 | } | ||
535 | |||
536 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
537 | |||
538 | func Chroot(path string) (err error) { | ||
539 | var _p0 *byte | ||
540 | _p0, err = BytePtrFromString(path) | ||
541 | if err != nil { | ||
542 | return | ||
543 | } | ||
544 | _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
545 | if e1 != 0 { | ||
546 | err = errnoErr(e1) | ||
547 | } | ||
548 | return | ||
549 | } | ||
550 | |||
551 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
552 | |||
553 | func Close(fd int) (err error) { | ||
554 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) | ||
555 | if e1 != 0 { | ||
556 | err = errnoErr(e1) | ||
557 | } | ||
558 | return | ||
559 | } | ||
560 | |||
561 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
562 | |||
563 | func Dup(fd int) (nfd int, err error) { | ||
564 | r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) | ||
565 | nfd = int(r0) | ||
566 | if e1 != 0 { | ||
567 | err = errnoErr(e1) | ||
568 | } | ||
569 | return | ||
570 | } | ||
571 | |||
572 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
573 | |||
574 | func Dup2(from int, to int) (err error) { | ||
575 | _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) | ||
576 | if e1 != 0 { | ||
577 | err = errnoErr(e1) | ||
578 | } | ||
579 | return | ||
580 | } | ||
581 | |||
582 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
583 | |||
584 | func Exit(code int) { | ||
585 | Syscall(SYS_EXIT, uintptr(code), 0, 0) | ||
586 | return | ||
587 | } | ||
588 | |||
589 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
590 | |||
591 | func Fchdir(fd int) (err error) { | ||
592 | _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) | ||
593 | if e1 != 0 { | ||
594 | err = errnoErr(e1) | ||
595 | } | ||
596 | return | ||
597 | } | ||
598 | |||
599 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
600 | |||
601 | func Fchflags(fd int, flags int) (err error) { | ||
602 | _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) | ||
603 | if e1 != 0 { | ||
604 | err = errnoErr(e1) | ||
605 | } | ||
606 | return | ||
607 | } | ||
608 | |||
609 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
610 | |||
611 | func Fchmod(fd int, mode uint32) (err error) { | ||
612 | _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) | ||
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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { | ||
622 | var _p0 *byte | ||
623 | _p0, err = BytePtrFromString(path) | ||
624 | if err != nil { | ||
625 | return | ||
626 | } | ||
627 | _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) | ||
628 | if e1 != 0 { | ||
629 | err = errnoErr(e1) | ||
630 | } | ||
631 | return | ||
632 | } | ||
633 | |||
634 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
635 | |||
636 | func Fchown(fd int, uid int, gid int) (err error) { | ||
637 | _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) | ||
638 | if e1 != 0 { | ||
639 | err = errnoErr(e1) | ||
640 | } | ||
641 | return | ||
642 | } | ||
643 | |||
644 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
645 | |||
646 | func Flock(fd int, how int) (err error) { | ||
647 | _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) | ||
648 | if e1 != 0 { | ||
649 | err = errnoErr(e1) | ||
650 | } | ||
651 | return | ||
652 | } | ||
653 | |||
654 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
655 | |||
656 | func Fpathconf(fd int, name int) (val int, err error) { | ||
657 | r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) | ||
658 | val = int(r0) | ||
659 | if e1 != 0 { | ||
660 | err = errnoErr(e1) | ||
661 | } | ||
662 | return | ||
663 | } | ||
664 | |||
665 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
666 | |||
667 | func Fstat(fd int, stat *Stat_t) (err error) { | ||
668 | _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | ||
669 | if e1 != 0 { | ||
670 | err = errnoErr(e1) | ||
671 | } | ||
672 | return | ||
673 | } | ||
674 | |||
675 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
676 | |||
677 | func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { | ||
678 | var _p0 *byte | ||
679 | _p0, err = BytePtrFromString(path) | ||
680 | if err != nil { | ||
681 | return | ||
682 | } | ||
683 | _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) | ||
684 | if e1 != 0 { | ||
685 | err = errnoErr(e1) | ||
686 | } | ||
687 | return | ||
688 | } | ||
689 | |||
690 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
691 | |||
692 | func Fstatfs(fd int, stat *Statfs_t) (err error) { | ||
693 | _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | ||
694 | if e1 != 0 { | ||
695 | err = errnoErr(e1) | ||
696 | } | ||
697 | return | ||
698 | } | ||
699 | |||
700 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
701 | |||
702 | func Fsync(fd int) (err error) { | ||
703 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) | ||
704 | if e1 != 0 { | ||
705 | err = errnoErr(e1) | ||
706 | } | ||
707 | return | ||
708 | } | ||
709 | |||
710 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
711 | |||
712 | func Ftruncate(fd int, length int64) (err error) { | ||
713 | _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) | ||
714 | if e1 != 0 { | ||
715 | err = errnoErr(e1) | ||
716 | } | ||
717 | return | ||
718 | } | ||
719 | |||
720 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
721 | |||
722 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { | ||
723 | var _p0 unsafe.Pointer | ||
724 | if len(buf) > 0 { | ||
725 | _p0 = unsafe.Pointer(&buf[0]) | ||
726 | } else { | ||
727 | _p0 = unsafe.Pointer(&_zero) | ||
728 | } | ||
729 | r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) | ||
730 | n = int(r0) | ||
731 | if e1 != 0 { | ||
732 | err = errnoErr(e1) | ||
733 | } | ||
734 | return | ||
735 | } | ||
736 | |||
737 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
738 | |||
739 | func Getdtablesize() (size int) { | ||
740 | r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) | ||
741 | size = int(r0) | ||
742 | return | ||
743 | } | ||
744 | |||
745 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
746 | |||
747 | func Getegid() (egid int) { | ||
748 | r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) | ||
749 | egid = int(r0) | ||
750 | return | ||
751 | } | ||
752 | |||
753 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
754 | |||
755 | func Geteuid() (uid int) { | ||
756 | r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) | ||
757 | uid = int(r0) | ||
758 | return | ||
759 | } | ||
760 | |||
761 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
762 | |||
763 | func Getgid() (gid int) { | ||
764 | r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) | ||
765 | gid = int(r0) | ||
766 | return | ||
767 | } | ||
768 | |||
769 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
770 | |||
771 | func Getpgid(pid int) (pgid int, err error) { | ||
772 | r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) | ||
773 | pgid = int(r0) | ||
774 | if e1 != 0 { | ||
775 | err = errnoErr(e1) | ||
776 | } | ||
777 | return | ||
778 | } | ||
779 | |||
780 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
781 | |||
782 | func Getpgrp() (pgrp int) { | ||
783 | r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) | ||
784 | pgrp = int(r0) | ||
785 | return | ||
786 | } | ||
787 | |||
788 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
789 | |||
790 | func Getpid() (pid int) { | ||
791 | r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) | ||
792 | pid = int(r0) | ||
793 | return | ||
794 | } | ||
795 | |||
796 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
797 | |||
798 | func Getppid() (ppid int) { | ||
799 | r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) | ||
800 | ppid = int(r0) | ||
801 | return | ||
802 | } | ||
803 | |||
804 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
805 | |||
806 | func Getpriority(which int, who int) (prio int, err error) { | ||
807 | r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) | ||
808 | prio = int(r0) | ||
809 | if e1 != 0 { | ||
810 | err = errnoErr(e1) | ||
811 | } | ||
812 | return | ||
813 | } | ||
814 | |||
815 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
816 | |||
817 | func Getrlimit(which int, lim *Rlimit) (err error) { | ||
818 | _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) | ||
819 | if e1 != 0 { | ||
820 | err = errnoErr(e1) | ||
821 | } | ||
822 | return | ||
823 | } | ||
824 | |||
825 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
826 | |||
827 | func Getrusage(who int, rusage *Rusage) (err error) { | ||
828 | _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) | ||
829 | if e1 != 0 { | ||
830 | err = errnoErr(e1) | ||
831 | } | ||
832 | return | ||
833 | } | ||
834 | |||
835 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
836 | |||
837 | func Getsid(pid int) (sid int, err error) { | ||
838 | r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) | ||
839 | sid = int(r0) | ||
840 | if e1 != 0 { | ||
841 | err = errnoErr(e1) | ||
842 | } | ||
843 | return | ||
844 | } | ||
845 | |||
846 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
847 | |||
848 | func Gettimeofday(tv *Timeval) (err error) { | ||
849 | _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 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 Getuid() (uid int) { | ||
859 | r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) | ||
860 | uid = int(r0) | ||
861 | return | ||
862 | } | ||
863 | |||
864 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
865 | |||
866 | func Issetugid() (tainted bool) { | ||
867 | r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) | ||
868 | tainted = bool(r0 != 0) | ||
869 | return | ||
870 | } | ||
871 | |||
872 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
873 | |||
874 | func Kill(pid int, signum syscall.Signal) (err error) { | ||
875 | _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) | ||
876 | if e1 != 0 { | ||
877 | err = errnoErr(e1) | ||
878 | } | ||
879 | return | ||
880 | } | ||
881 | |||
882 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
883 | |||
884 | func Kqueue() (fd int, err error) { | ||
885 | r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) | ||
886 | fd = int(r0) | ||
887 | if e1 != 0 { | ||
888 | err = errnoErr(e1) | ||
889 | } | ||
890 | return | ||
891 | } | ||
892 | |||
893 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
894 | |||
895 | func Lchown(path string, uid int, gid int) (err error) { | ||
896 | var _p0 *byte | ||
897 | _p0, err = BytePtrFromString(path) | ||
898 | if err != nil { | ||
899 | return | ||
900 | } | ||
901 | _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | ||
902 | if e1 != 0 { | ||
903 | err = errnoErr(e1) | ||
904 | } | ||
905 | return | ||
906 | } | ||
907 | |||
908 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
909 | |||
910 | func Link(path string, link string) (err error) { | ||
911 | var _p0 *byte | ||
912 | _p0, err = BytePtrFromString(path) | ||
913 | if err != nil { | ||
914 | return | ||
915 | } | ||
916 | var _p1 *byte | ||
917 | _p1, err = BytePtrFromString(link) | ||
918 | if err != nil { | ||
919 | return | ||
920 | } | ||
921 | _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
922 | if e1 != 0 { | ||
923 | err = errnoErr(e1) | ||
924 | } | ||
925 | return | ||
926 | } | ||
927 | |||
928 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
929 | |||
930 | func Listen(s int, backlog int) (err error) { | ||
931 | _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) | ||
932 | if e1 != 0 { | ||
933 | err = errnoErr(e1) | ||
934 | } | ||
935 | return | ||
936 | } | ||
937 | |||
938 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
939 | |||
940 | func Lstat(path string, stat *Stat_t) (err error) { | ||
941 | var _p0 *byte | ||
942 | _p0, err = BytePtrFromString(path) | ||
943 | if err != nil { | ||
944 | return | ||
945 | } | ||
946 | _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
947 | if e1 != 0 { | ||
948 | err = errnoErr(e1) | ||
949 | } | ||
950 | return | ||
951 | } | ||
952 | |||
953 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
954 | |||
955 | func Mkdir(path string, mode uint32) (err error) { | ||
956 | var _p0 *byte | ||
957 | _p0, err = BytePtrFromString(path) | ||
958 | if err != nil { | ||
959 | return | ||
960 | } | ||
961 | _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
962 | if e1 != 0 { | ||
963 | err = errnoErr(e1) | ||
964 | } | ||
965 | return | ||
966 | } | ||
967 | |||
968 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
969 | |||
970 | func Mkfifo(path string, mode uint32) (err error) { | ||
971 | var _p0 *byte | ||
972 | _p0, err = BytePtrFromString(path) | ||
973 | if err != nil { | ||
974 | return | ||
975 | } | ||
976 | _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | ||
977 | if e1 != 0 { | ||
978 | err = errnoErr(e1) | ||
979 | } | ||
980 | return | ||
981 | } | ||
982 | |||
983 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
984 | |||
985 | func Mknod(path string, mode uint32, dev int) (err error) { | ||
986 | var _p0 *byte | ||
987 | _p0, err = BytePtrFromString(path) | ||
988 | if err != nil { | ||
989 | return | ||
990 | } | ||
991 | _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) | ||
992 | if e1 != 0 { | ||
993 | err = errnoErr(e1) | ||
994 | } | ||
995 | return | ||
996 | } | ||
997 | |||
998 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
999 | |||
1000 | func Nanosleep(time *Timespec, leftover *Timespec) (err error) { | ||
1001 | _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) | ||
1002 | if e1 != 0 { | ||
1003 | err = errnoErr(e1) | ||
1004 | } | ||
1005 | return | ||
1006 | } | ||
1007 | |||
1008 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1009 | |||
1010 | func Open(path string, mode int, perm uint32) (fd int, err error) { | ||
1011 | var _p0 *byte | ||
1012 | _p0, err = BytePtrFromString(path) | ||
1013 | if err != nil { | ||
1014 | return | ||
1015 | } | ||
1016 | r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) | ||
1017 | fd = int(r0) | ||
1018 | if e1 != 0 { | ||
1019 | err = errnoErr(e1) | ||
1020 | } | ||
1021 | return | ||
1022 | } | ||
1023 | |||
1024 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1025 | |||
1026 | func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { | ||
1027 | var _p0 *byte | ||
1028 | _p0, err = BytePtrFromString(path) | ||
1029 | if err != nil { | ||
1030 | return | ||
1031 | } | ||
1032 | r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) | ||
1033 | fd = int(r0) | ||
1034 | if e1 != 0 { | ||
1035 | err = errnoErr(e1) | ||
1036 | } | ||
1037 | return | ||
1038 | } | ||
1039 | |||
1040 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1041 | |||
1042 | func Pathconf(path string, name int) (val int, err error) { | ||
1043 | var _p0 *byte | ||
1044 | _p0, err = BytePtrFromString(path) | ||
1045 | if err != nil { | ||
1046 | return | ||
1047 | } | ||
1048 | r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) | ||
1049 | val = int(r0) | ||
1050 | if e1 != 0 { | ||
1051 | err = errnoErr(e1) | ||
1052 | } | ||
1053 | return | ||
1054 | } | ||
1055 | |||
1056 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1057 | |||
1058 | func read(fd int, p []byte) (n int, err error) { | ||
1059 | var _p0 unsafe.Pointer | ||
1060 | if len(p) > 0 { | ||
1061 | _p0 = unsafe.Pointer(&p[0]) | ||
1062 | } else { | ||
1063 | _p0 = unsafe.Pointer(&_zero) | ||
1064 | } | ||
1065 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1066 | n = int(r0) | ||
1067 | if e1 != 0 { | ||
1068 | err = errnoErr(e1) | ||
1069 | } | ||
1070 | return | ||
1071 | } | ||
1072 | |||
1073 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1074 | |||
1075 | func Readlink(path string, buf []byte) (n int, err error) { | ||
1076 | var _p0 *byte | ||
1077 | _p0, err = BytePtrFromString(path) | ||
1078 | if err != nil { | ||
1079 | return | ||
1080 | } | ||
1081 | var _p1 unsafe.Pointer | ||
1082 | if len(buf) > 0 { | ||
1083 | _p1 = unsafe.Pointer(&buf[0]) | ||
1084 | } else { | ||
1085 | _p1 = unsafe.Pointer(&_zero) | ||
1086 | } | ||
1087 | r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) | ||
1088 | n = int(r0) | ||
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 Rename(from string, to string) (err error) { | ||
1098 | var _p0 *byte | ||
1099 | _p0, err = BytePtrFromString(from) | ||
1100 | if err != nil { | ||
1101 | return | ||
1102 | } | ||
1103 | var _p1 *byte | ||
1104 | _p1, err = BytePtrFromString(to) | ||
1105 | if err != nil { | ||
1106 | return | ||
1107 | } | ||
1108 | _, _, e1 := Syscall(SYS_RENAME, 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 Revoke(path string) (err error) { | ||
1118 | var _p0 *byte | ||
1119 | _p0, err = BytePtrFromString(path) | ||
1120 | if err != nil { | ||
1121 | return | ||
1122 | } | ||
1123 | _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1124 | if e1 != 0 { | ||
1125 | err = errnoErr(e1) | ||
1126 | } | ||
1127 | return | ||
1128 | } | ||
1129 | |||
1130 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1131 | |||
1132 | func Rmdir(path string) (err error) { | ||
1133 | var _p0 *byte | ||
1134 | _p0, err = BytePtrFromString(path) | ||
1135 | if err != nil { | ||
1136 | return | ||
1137 | } | ||
1138 | _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1139 | if e1 != 0 { | ||
1140 | err = errnoErr(e1) | ||
1141 | } | ||
1142 | return | ||
1143 | } | ||
1144 | |||
1145 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1146 | |||
1147 | func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { | ||
1148 | r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) | ||
1149 | newoffset = int64(r0) | ||
1150 | if e1 != 0 { | ||
1151 | err = errnoErr(e1) | ||
1152 | } | ||
1153 | return | ||
1154 | } | ||
1155 | |||
1156 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1157 | |||
1158 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { | ||
1159 | _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | ||
1160 | if e1 != 0 { | ||
1161 | err = errnoErr(e1) | ||
1162 | } | ||
1163 | return | ||
1164 | } | ||
1165 | |||
1166 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1167 | |||
1168 | func Setegid(egid int) (err error) { | ||
1169 | _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) | ||
1170 | if e1 != 0 { | ||
1171 | err = errnoErr(e1) | ||
1172 | } | ||
1173 | return | ||
1174 | } | ||
1175 | |||
1176 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1177 | |||
1178 | func Seteuid(euid int) (err error) { | ||
1179 | _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) | ||
1180 | if e1 != 0 { | ||
1181 | err = errnoErr(e1) | ||
1182 | } | ||
1183 | return | ||
1184 | } | ||
1185 | |||
1186 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1187 | |||
1188 | func Setgid(gid int) (err error) { | ||
1189 | _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) | ||
1190 | if e1 != 0 { | ||
1191 | err = errnoErr(e1) | ||
1192 | } | ||
1193 | return | ||
1194 | } | ||
1195 | |||
1196 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1197 | |||
1198 | func Setlogin(name string) (err error) { | ||
1199 | var _p0 *byte | ||
1200 | _p0, err = BytePtrFromString(name) | ||
1201 | if err != nil { | ||
1202 | return | ||
1203 | } | ||
1204 | _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
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 Setpgid(pid int, pgid int) (err error) { | ||
1214 | _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) | ||
1215 | if e1 != 0 { | ||
1216 | err = errnoErr(e1) | ||
1217 | } | ||
1218 | return | ||
1219 | } | ||
1220 | |||
1221 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1222 | |||
1223 | func Setpriority(which int, who int, prio int) (err error) { | ||
1224 | _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) | ||
1225 | if e1 != 0 { | ||
1226 | err = errnoErr(e1) | ||
1227 | } | ||
1228 | return | ||
1229 | } | ||
1230 | |||
1231 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1232 | |||
1233 | func Setregid(rgid int, egid int) (err error) { | ||
1234 | _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) | ||
1235 | if e1 != 0 { | ||
1236 | err = errnoErr(e1) | ||
1237 | } | ||
1238 | return | ||
1239 | } | ||
1240 | |||
1241 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1242 | |||
1243 | func Setreuid(ruid int, euid int) (err error) { | ||
1244 | _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) | ||
1245 | if e1 != 0 { | ||
1246 | err = errnoErr(e1) | ||
1247 | } | ||
1248 | return | ||
1249 | } | ||
1250 | |||
1251 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1252 | |||
1253 | func Setresgid(rgid int, egid int, sgid int) (err error) { | ||
1254 | _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) | ||
1255 | if e1 != 0 { | ||
1256 | err = errnoErr(e1) | ||
1257 | } | ||
1258 | return | ||
1259 | } | ||
1260 | |||
1261 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1262 | |||
1263 | func Setresuid(ruid int, euid int, suid int) (err error) { | ||
1264 | _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) | ||
1265 | if e1 != 0 { | ||
1266 | err = errnoErr(e1) | ||
1267 | } | ||
1268 | return | ||
1269 | } | ||
1270 | |||
1271 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1272 | |||
1273 | func Setrlimit(which int, lim *Rlimit) (err error) { | ||
1274 | _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) | ||
1275 | if e1 != 0 { | ||
1276 | err = errnoErr(e1) | ||
1277 | } | ||
1278 | return | ||
1279 | } | ||
1280 | |||
1281 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1282 | |||
1283 | func Setsid() (pid int, err error) { | ||
1284 | r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) | ||
1285 | pid = int(r0) | ||
1286 | if e1 != 0 { | ||
1287 | err = errnoErr(e1) | ||
1288 | } | ||
1289 | return | ||
1290 | } | ||
1291 | |||
1292 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1293 | |||
1294 | func Settimeofday(tp *Timeval) (err error) { | ||
1295 | _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) | ||
1296 | if e1 != 0 { | ||
1297 | err = errnoErr(e1) | ||
1298 | } | ||
1299 | return | ||
1300 | } | ||
1301 | |||
1302 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1303 | |||
1304 | func Setuid(uid int) (err error) { | ||
1305 | _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) | ||
1306 | if e1 != 0 { | ||
1307 | err = errnoErr(e1) | ||
1308 | } | ||
1309 | return | ||
1310 | } | ||
1311 | |||
1312 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1313 | |||
1314 | func Stat(path string, stat *Stat_t) (err error) { | ||
1315 | var _p0 *byte | ||
1316 | _p0, err = BytePtrFromString(path) | ||
1317 | if err != nil { | ||
1318 | return | ||
1319 | } | ||
1320 | _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1321 | if e1 != 0 { | ||
1322 | err = errnoErr(e1) | ||
1323 | } | ||
1324 | return | ||
1325 | } | ||
1326 | |||
1327 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1328 | |||
1329 | func Statfs(path string, stat *Statfs_t) (err error) { | ||
1330 | var _p0 *byte | ||
1331 | _p0, err = BytePtrFromString(path) | ||
1332 | if err != nil { | ||
1333 | return | ||
1334 | } | ||
1335 | _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1336 | if e1 != 0 { | ||
1337 | err = errnoErr(e1) | ||
1338 | } | ||
1339 | return | ||
1340 | } | ||
1341 | |||
1342 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1343 | |||
1344 | func Symlink(path string, link string) (err error) { | ||
1345 | var _p0 *byte | ||
1346 | _p0, err = BytePtrFromString(path) | ||
1347 | if err != nil { | ||
1348 | return | ||
1349 | } | ||
1350 | var _p1 *byte | ||
1351 | _p1, err = BytePtrFromString(link) | ||
1352 | if err != nil { | ||
1353 | return | ||
1354 | } | ||
1355 | _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | ||
1356 | if e1 != 0 { | ||
1357 | err = errnoErr(e1) | ||
1358 | } | ||
1359 | return | ||
1360 | } | ||
1361 | |||
1362 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1363 | |||
1364 | func Sync() (err error) { | ||
1365 | _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) | ||
1366 | if e1 != 0 { | ||
1367 | err = errnoErr(e1) | ||
1368 | } | ||
1369 | return | ||
1370 | } | ||
1371 | |||
1372 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1373 | |||
1374 | func Truncate(path string, length int64) (err error) { | ||
1375 | var _p0 *byte | ||
1376 | _p0, err = BytePtrFromString(path) | ||
1377 | if err != nil { | ||
1378 | return | ||
1379 | } | ||
1380 | _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) | ||
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 Umask(newmask int) (oldmask int) { | ||
1390 | r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) | ||
1391 | oldmask = int(r0) | ||
1392 | return | ||
1393 | } | ||
1394 | |||
1395 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1396 | |||
1397 | func Undelete(path string) (err error) { | ||
1398 | var _p0 *byte | ||
1399 | _p0, err = BytePtrFromString(path) | ||
1400 | if err != nil { | ||
1401 | return | ||
1402 | } | ||
1403 | _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1404 | if e1 != 0 { | ||
1405 | err = errnoErr(e1) | ||
1406 | } | ||
1407 | return | ||
1408 | } | ||
1409 | |||
1410 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1411 | |||
1412 | func Unlink(path string) (err error) { | ||
1413 | var _p0 *byte | ||
1414 | _p0, err = BytePtrFromString(path) | ||
1415 | if err != nil { | ||
1416 | return | ||
1417 | } | ||
1418 | _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||
1419 | if e1 != 0 { | ||
1420 | err = errnoErr(e1) | ||
1421 | } | ||
1422 | return | ||
1423 | } | ||
1424 | |||
1425 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1426 | |||
1427 | func Unmount(path string, flags int) (err error) { | ||
1428 | var _p0 *byte | ||
1429 | _p0, err = BytePtrFromString(path) | ||
1430 | if err != nil { | ||
1431 | return | ||
1432 | } | ||
1433 | _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
1434 | if e1 != 0 { | ||
1435 | err = errnoErr(e1) | ||
1436 | } | ||
1437 | return | ||
1438 | } | ||
1439 | |||
1440 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1441 | |||
1442 | func write(fd int, p []byte) (n int, err error) { | ||
1443 | var _p0 unsafe.Pointer | ||
1444 | if len(p) > 0 { | ||
1445 | _p0 = unsafe.Pointer(&p[0]) | ||
1446 | } else { | ||
1447 | _p0 = unsafe.Pointer(&_zero) | ||
1448 | } | ||
1449 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) | ||
1450 | n = int(r0) | ||
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 mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { | ||
1460 | r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) | ||
1461 | ret = uintptr(r0) | ||
1462 | if e1 != 0 { | ||
1463 | err = errnoErr(e1) | ||
1464 | } | ||
1465 | return | ||
1466 | } | ||
1467 | |||
1468 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1469 | |||
1470 | func munmap(addr uintptr, length uintptr) (err error) { | ||
1471 | _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) | ||
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 readlen(fd int, buf *byte, nbuf int) (n int, err error) { | ||
1481 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) | ||
1482 | n = int(r0) | ||
1483 | if e1 != 0 { | ||
1484 | err = errnoErr(e1) | ||
1485 | } | ||
1486 | return | ||
1487 | } | ||
1488 | |||
1489 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1490 | |||
1491 | func writelen(fd int, buf *byte, nbuf int) (n int, err error) { | ||
1492 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) | ||
1493 | n = int(r0) | ||
1494 | if e1 != 0 { | ||
1495 | err = errnoErr(e1) | ||
1496 | } | ||
1497 | return | ||
1498 | } | ||
1499 | |||
1500 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1501 | |||
1502 | func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { | ||
1503 | r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) | ||
1504 | nfd = int(r0) | ||
1505 | if e1 != 0 { | ||
1506 | err = errnoErr(e1) | ||
1507 | } | ||
1508 | return | ||
1509 | } | ||
1510 | |||
1511 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1512 | |||
1513 | func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { | ||
1514 | var _p0 *byte | ||
1515 | _p0, err = BytePtrFromString(path) | ||
1516 | if err != nil { | ||
1517 | return | ||
1518 | } | ||
1519 | _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) | ||
1520 | if e1 != 0 { | ||
1521 | err = errnoErr(e1) | ||
1522 | } | ||
1523 | return | ||
1524 | } | ||