]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
Merge branch 'fix_read_test' of github.com:alexandreFre/terraform-provider-statuscake
[github/fretlink/terraform-provider-statuscake.git] / vendor / golang.org / x / sys / unix / zsyscall_freebsd_arm64.go
CommitLineData
107c1cdb
ND
1// go run mksyscall.go -tags freebsd,arm64 -- syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build freebsd,arm64
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func 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
28func 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
38func 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
49func 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
60func 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
70func 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
80func 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
91func 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
101func 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
111func 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
121func 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
131func 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
141func 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
151func 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
168func 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
184func 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
195func 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
206func 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
217func 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
233func 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
248func 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
258func 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
269func 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
280func 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
296func 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
312func 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
322func 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
338func 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
354func 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
370func 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
380func pipe2(p *[2]_C_int, flags int) (err error) {
381 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Getcwd(buf []byte) (n int, err error) {
391 var _p0 unsafe.Pointer
392 if len(buf) > 0 {
393 _p0 = unsafe.Pointer(&buf[0])
394 } else {
395 _p0 = unsafe.Pointer(&_zero)
396 }
397 r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
398 n = int(r0)
399 if e1 != 0 {
400 err = errnoErr(e1)
401 }
402 return
403}
404
405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
406
407func ioctl(fd int, req uint, arg uintptr) (err error) {
408 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
409 if e1 != 0 {
410 err = errnoErr(e1)
411 }
412 return
413}
414
415// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
416
417func Access(path string, mode uint32) (err error) {
418 var _p0 *byte
419 _p0, err = BytePtrFromString(path)
420 if err != nil {
421 return
422 }
423 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
424 if e1 != 0 {
425 err = errnoErr(e1)
426 }
427 return
428}
429
430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
431
432func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
433 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
434 if e1 != 0 {
435 err = errnoErr(e1)
436 }
437 return
438}
439
440// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
441
442func CapEnter() (err error) {
443 _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0)
444 if e1 != 0 {
445 err = errnoErr(e1)
446 }
447 return
448}
449
450// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
451
452func capRightsGet(version int, fd int, rightsp *CapRights) (err error) {
453 _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp)))
454 if e1 != 0 {
455 err = errnoErr(e1)
456 }
457 return
458}
459
460// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
461
462func capRightsLimit(fd int, rightsp *CapRights) (err error) {
463 _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0)
464 if e1 != 0 {
465 err = errnoErr(e1)
466 }
467 return
468}
469
470// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
471
472func Chdir(path string) (err error) {
473 var _p0 *byte
474 _p0, err = BytePtrFromString(path)
475 if err != nil {
476 return
477 }
478 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
479 if e1 != 0 {
480 err = errnoErr(e1)
481 }
482 return
483}
484
485// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
486
487func Chflags(path string, flags int) (err error) {
488 var _p0 *byte
489 _p0, err = BytePtrFromString(path)
490 if err != nil {
491 return
492 }
493 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
494 if e1 != 0 {
495 err = errnoErr(e1)
496 }
497 return
498}
499
500// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
501
502func Chmod(path string, mode uint32) (err error) {
503 var _p0 *byte
504 _p0, err = BytePtrFromString(path)
505 if err != nil {
506 return
507 }
508 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
509 if e1 != 0 {
510 err = errnoErr(e1)
511 }
512 return
513}
514
515// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
516
517func Chown(path string, uid int, gid int) (err error) {
518 var _p0 *byte
519 _p0, err = BytePtrFromString(path)
520 if err != nil {
521 return
522 }
523 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
524 if e1 != 0 {
525 err = errnoErr(e1)
526 }
527 return
528}
529
530// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
531
532func Chroot(path string) (err error) {
533 var _p0 *byte
534 _p0, err = BytePtrFromString(path)
535 if err != nil {
536 return
537 }
538 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
539 if e1 != 0 {
540 err = errnoErr(e1)
541 }
542 return
543}
544
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546
547func Close(fd int) (err error) {
548 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
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
557func Dup(fd int) (nfd int, err error) {
558 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
559 nfd = int(r0)
560 if e1 != 0 {
561 err = errnoErr(e1)
562 }
563 return
564}
565
566// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
567
568func Dup2(from int, to int) (err error) {
569 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
570 if e1 != 0 {
571 err = errnoErr(e1)
572 }
573 return
574}
575
576// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
577
578func Exit(code int) {
579 Syscall(SYS_EXIT, uintptr(code), 0, 0)
580 return
581}
582
583// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
584
585func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
586 var _p0 *byte
587 _p0, err = BytePtrFromString(attrname)
588 if err != nil {
589 return
590 }
591 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
592 ret = int(r0)
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
601func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
602 var _p0 *byte
603 _p0, err = BytePtrFromString(attrname)
604 if err != nil {
605 return
606 }
607 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
608 ret = int(r0)
609 if e1 != 0 {
610 err = errnoErr(e1)
611 }
612 return
613}
614
615// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
616
617func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
618 var _p0 *byte
619 _p0, err = BytePtrFromString(attrname)
620 if err != nil {
621 return
622 }
623 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
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
632func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
633 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
634 ret = int(r0)
635 if e1 != 0 {
636 err = errnoErr(e1)
637 }
638 return
639}
640
641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642
643func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
644 var _p0 *byte
645 _p0, err = BytePtrFromString(file)
646 if err != nil {
647 return
648 }
649 var _p1 *byte
650 _p1, err = BytePtrFromString(attrname)
651 if err != nil {
652 return
653 }
654 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
655 ret = int(r0)
656 if e1 != 0 {
657 err = errnoErr(e1)
658 }
659 return
660}
661
662// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
663
664func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
665 var _p0 *byte
666 _p0, err = BytePtrFromString(file)
667 if err != nil {
668 return
669 }
670 var _p1 *byte
671 _p1, err = BytePtrFromString(attrname)
672 if err != nil {
673 return
674 }
675 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
676 ret = int(r0)
677 if e1 != 0 {
678 err = errnoErr(e1)
679 }
680 return
681}
682
683// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
684
685func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
686 var _p0 *byte
687 _p0, err = BytePtrFromString(file)
688 if err != nil {
689 return
690 }
691 var _p1 *byte
692 _p1, err = BytePtrFromString(attrname)
693 if err != nil {
694 return
695 }
696 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
697 if e1 != 0 {
698 err = errnoErr(e1)
699 }
700 return
701}
702
703// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
704
705func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
706 var _p0 *byte
707 _p0, err = BytePtrFromString(file)
708 if err != nil {
709 return
710 }
711 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
712 ret = int(r0)
713 if e1 != 0 {
714 err = errnoErr(e1)
715 }
716 return
717}
718
719// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
720
721func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
722 var _p0 *byte
723 _p0, err = BytePtrFromString(link)
724 if err != nil {
725 return
726 }
727 var _p1 *byte
728 _p1, err = BytePtrFromString(attrname)
729 if err != nil {
730 return
731 }
732 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
733 ret = int(r0)
734 if e1 != 0 {
735 err = errnoErr(e1)
736 }
737 return
738}
739
740// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
741
742func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
743 var _p0 *byte
744 _p0, err = BytePtrFromString(link)
745 if err != nil {
746 return
747 }
748 var _p1 *byte
749 _p1, err = BytePtrFromString(attrname)
750 if err != nil {
751 return
752 }
753 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
754 ret = int(r0)
755 if e1 != 0 {
756 err = errnoErr(e1)
757 }
758 return
759}
760
761// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
762
763func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
764 var _p0 *byte
765 _p0, err = BytePtrFromString(link)
766 if err != nil {
767 return
768 }
769 var _p1 *byte
770 _p1, err = BytePtrFromString(attrname)
771 if err != nil {
772 return
773 }
774 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
775 if e1 != 0 {
776 err = errnoErr(e1)
777 }
778 return
779}
780
781// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
782
783func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
784 var _p0 *byte
785 _p0, err = BytePtrFromString(link)
786 if err != nil {
787 return
788 }
789 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
790 ret = int(r0)
791 if e1 != 0 {
792 err = errnoErr(e1)
793 }
794 return
795}
796
797// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
798
799func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
800 _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
801 if e1 != 0 {
802 err = errnoErr(e1)
803 }
804 return
805}
806
807// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
808
809func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
810 var _p0 *byte
811 _p0, err = BytePtrFromString(path)
812 if err != nil {
813 return
814 }
815 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
816 if e1 != 0 {
817 err = errnoErr(e1)
818 }
819 return
820}
821
822// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
823
824func Fchdir(fd int) (err error) {
825 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
826 if e1 != 0 {
827 err = errnoErr(e1)
828 }
829 return
830}
831
832// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
833
834func Fchflags(fd int, flags int) (err error) {
835 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
836 if e1 != 0 {
837 err = errnoErr(e1)
838 }
839 return
840}
841
842// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
843
844func Fchmod(fd int, mode uint32) (err error) {
845 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
846 if e1 != 0 {
847 err = errnoErr(e1)
848 }
849 return
850}
851
852// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
853
854func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
855 var _p0 *byte
856 _p0, err = BytePtrFromString(path)
857 if err != nil {
858 return
859 }
860 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
861 if e1 != 0 {
862 err = errnoErr(e1)
863 }
864 return
865}
866
867// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
868
869func Fchown(fd int, uid int, gid int) (err error) {
870 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
871 if e1 != 0 {
872 err = errnoErr(e1)
873 }
874 return
875}
876
877// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
878
879func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
880 var _p0 *byte
881 _p0, err = BytePtrFromString(path)
882 if err != nil {
883 return
884 }
885 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Flock(fd int, how int) (err error) {
895 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Fpathconf(fd int, name int) (val int, err error) {
905 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
906 val = int(r0)
907 if e1 != 0 {
908 err = errnoErr(e1)
909 }
910 return
911}
912
913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
914
915func fstat(fd int, stat *stat_freebsd11_t) (err error) {
916 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
917 if e1 != 0 {
918 err = errnoErr(e1)
919 }
920 return
921}
922
923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
924
925func fstat_freebsd12(fd int, stat *Stat_t) (err error) {
926 _, _, e1 := Syscall(SYS_FSTAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
927 if e1 != 0 {
928 err = errnoErr(e1)
929 }
930 return
931}
932
933// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
934
935func fstatat(fd int, path string, stat *stat_freebsd11_t, flags int) (err error) {
936 var _p0 *byte
937 _p0, err = BytePtrFromString(path)
938 if err != nil {
939 return
940 }
941 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
942 if e1 != 0 {
943 err = errnoErr(e1)
944 }
945 return
946}
947
948// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
949
950func fstatat_freebsd12(fd int, path string, stat *Stat_t, flags int) (err error) {
951 var _p0 *byte
952 _p0, err = BytePtrFromString(path)
953 if err != nil {
954 return
955 }
956 _, _, e1 := Syscall6(SYS_FSTATAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
957 if e1 != 0 {
958 err = errnoErr(e1)
959 }
960 return
961}
962
963// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
964
965func fstatfs(fd int, stat *statfs_freebsd11_t) (err error) {
966 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
967 if e1 != 0 {
968 err = errnoErr(e1)
969 }
970 return
971}
972
973// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
974
975func fstatfs_freebsd12(fd int, stat *Statfs_t) (err error) {
976 _, _, e1 := Syscall(SYS_FSTATFS_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(stat)), 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
985func Fsync(fd int) (err error) {
986 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
987 if e1 != 0 {
988 err = errnoErr(e1)
989 }
990 return
991}
992
993// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
994
995func Ftruncate(fd int, length int64) (err error) {
996 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
997 if e1 != 0 {
998 err = errnoErr(e1)
999 }
1000 return
1001}
1002
1003// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1004
1005func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
1006 var _p0 unsafe.Pointer
1007 if len(buf) > 0 {
1008 _p0 = unsafe.Pointer(&buf[0])
1009 } else {
1010 _p0 = unsafe.Pointer(&_zero)
1011 }
1012 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
1013 n = int(r0)
1014 if e1 != 0 {
1015 err = errnoErr(e1)
1016 }
1017 return
1018}
1019
1020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1021
1022func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) {
1023 var _p0 unsafe.Pointer
1024 if len(buf) > 0 {
1025 _p0 = unsafe.Pointer(&buf[0])
1026 } else {
1027 _p0 = unsafe.Pointer(&_zero)
1028 }
1029 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES_FREEBSD12, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
1030 n = int(r0)
1031 if e1 != 0 {
1032 err = errnoErr(e1)
1033 }
1034 return
1035}
1036
1037// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1038
1039func Getdtablesize() (size int) {
1040 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
1041 size = int(r0)
1042 return
1043}
1044
1045// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1046
1047func Getegid() (egid int) {
1048 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
1049 egid = int(r0)
1050 return
1051}
1052
1053// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1054
1055func Geteuid() (uid int) {
1056 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
1057 uid = int(r0)
1058 return
1059}
1060
1061// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1062
1063func Getgid() (gid int) {
1064 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
1065 gid = int(r0)
1066 return
1067}
1068
1069// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1070
1071func Getpgid(pid int) (pgid int, err error) {
1072 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
1073 pgid = 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
1082func Getpgrp() (pgrp int) {
1083 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
1084 pgrp = int(r0)
1085 return
1086}
1087
1088// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1089
1090func Getpid() (pid int) {
1091 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
1092 pid = int(r0)
1093 return
1094}
1095
1096// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1097
1098func Getppid() (ppid int) {
1099 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
1100 ppid = int(r0)
1101 return
1102}
1103
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105
1106func Getpriority(which int, who int) (prio int, err error) {
1107 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
1108 prio = int(r0)
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
1117func Getrlimit(which int, lim *Rlimit) (err error) {
1118 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 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
1127func Getrusage(who int, rusage *Rusage) (err error) {
1128 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
1129 if e1 != 0 {
1130 err = errnoErr(e1)
1131 }
1132 return
1133}
1134
1135// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1136
1137func Getsid(pid int) (sid int, err error) {
1138 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
1139 sid = int(r0)
1140 if e1 != 0 {
1141 err = errnoErr(e1)
1142 }
1143 return
1144}
1145
1146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1147
1148func Gettimeofday(tv *Timeval) (err error) {
1149 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1150 if e1 != 0 {
1151 err = errnoErr(e1)
1152 }
1153 return
1154}
1155
1156// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1157
1158func Getuid() (uid int) {
1159 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
1160 uid = int(r0)
1161 return
1162}
1163
1164// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1165
1166func Issetugid() (tainted bool) {
1167 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
1168 tainted = bool(r0 != 0)
1169 return
1170}
1171
1172// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1173
1174func Kill(pid int, signum syscall.Signal) (err error) {
1175 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
1176 if e1 != 0 {
1177 err = errnoErr(e1)
1178 }
1179 return
1180}
1181
1182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1183
1184func Kqueue() (fd int, err error) {
1185 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
1186 fd = int(r0)
1187 if e1 != 0 {
1188 err = errnoErr(e1)
1189 }
1190 return
1191}
1192
1193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1194
1195func Lchown(path string, uid int, gid int) (err error) {
1196 var _p0 *byte
1197 _p0, err = BytePtrFromString(path)
1198 if err != nil {
1199 return
1200 }
1201 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1202 if e1 != 0 {
1203 err = errnoErr(e1)
1204 }
1205 return
1206}
1207
1208// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1209
1210func Link(path string, link string) (err error) {
1211 var _p0 *byte
1212 _p0, err = BytePtrFromString(path)
1213 if err != nil {
1214 return
1215 }
1216 var _p1 *byte
1217 _p1, err = BytePtrFromString(link)
1218 if err != nil {
1219 return
1220 }
1221 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1222 if e1 != 0 {
1223 err = errnoErr(e1)
1224 }
1225 return
1226}
1227
1228// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1229
1230func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
1231 var _p0 *byte
1232 _p0, err = BytePtrFromString(path)
1233 if err != nil {
1234 return
1235 }
1236 var _p1 *byte
1237 _p1, err = BytePtrFromString(link)
1238 if err != nil {
1239 return
1240 }
1241 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1242 if e1 != 0 {
1243 err = errnoErr(e1)
1244 }
1245 return
1246}
1247
1248// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1249
1250func Listen(s int, backlog int) (err error) {
1251 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
1252 if e1 != 0 {
1253 err = errnoErr(e1)
1254 }
1255 return
1256}
1257
1258// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1259
1260func lstat(path string, stat *stat_freebsd11_t) (err error) {
1261 var _p0 *byte
1262 _p0, err = BytePtrFromString(path)
1263 if err != nil {
1264 return
1265 }
1266 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1267 if e1 != 0 {
1268 err = errnoErr(e1)
1269 }
1270 return
1271}
1272
1273// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1274
1275func Mkdir(path string, mode uint32) (err error) {
1276 var _p0 *byte
1277 _p0, err = BytePtrFromString(path)
1278 if err != nil {
1279 return
1280 }
1281 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1282 if e1 != 0 {
1283 err = errnoErr(e1)
1284 }
1285 return
1286}
1287
1288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1289
1290func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1291 var _p0 *byte
1292 _p0, err = BytePtrFromString(path)
1293 if err != nil {
1294 return
1295 }
1296 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1297 if e1 != 0 {
1298 err = errnoErr(e1)
1299 }
1300 return
1301}
1302
1303// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1304
1305func Mkfifo(path string, mode uint32) (err error) {
1306 var _p0 *byte
1307 _p0, err = BytePtrFromString(path)
1308 if err != nil {
1309 return
1310 }
1311 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1312 if e1 != 0 {
1313 err = errnoErr(e1)
1314 }
1315 return
1316}
1317
1318// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1319
1320func mknod(path string, mode uint32, dev int) (err error) {
1321 var _p0 *byte
1322 _p0, err = BytePtrFromString(path)
1323 if err != nil {
1324 return
1325 }
1326 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
1327 if e1 != 0 {
1328 err = errnoErr(e1)
1329 }
1330 return
1331}
1332
1333// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1334
1335func mknodat(fd int, path string, mode uint32, dev int) (err error) {
1336 var _p0 *byte
1337 _p0, err = BytePtrFromString(path)
1338 if err != nil {
1339 return
1340 }
1341 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
1342 if e1 != 0 {
1343 err = errnoErr(e1)
1344 }
1345 return
1346}
1347
1348// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1349
1350func mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error) {
1351 var _p0 *byte
1352 _p0, err = BytePtrFromString(path)
1353 if err != nil {
1354 return
1355 }
1356 _, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
1357 if e1 != 0 {
1358 err = errnoErr(e1)
1359 }
1360 return
1361}
1362
1363// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1364
1365func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1366 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
1367 if e1 != 0 {
1368 err = errnoErr(e1)
1369 }
1370 return
1371}
1372
1373// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1374
1375func Open(path string, mode int, perm uint32) (fd int, err error) {
1376 var _p0 *byte
1377 _p0, err = BytePtrFromString(path)
1378 if err != nil {
1379 return
1380 }
1381 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
1382 fd = int(r0)
1383 if e1 != 0 {
1384 err = errnoErr(e1)
1385 }
1386 return
1387}
1388
1389// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1390
1391func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) {
1392 var _p0 *byte
1393 _p0, err = BytePtrFromString(path)
1394 if err != nil {
1395 return
1396 }
1397 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
1398 fd = int(r0)
1399 if e1 != 0 {
1400 err = errnoErr(e1)
1401 }
1402 return
1403}
1404
1405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1406
1407func Pathconf(path string, name int) (val int, err error) {
1408 var _p0 *byte
1409 _p0, err = BytePtrFromString(path)
1410 if err != nil {
1411 return
1412 }
1413 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
1414 val = int(r0)
1415 if e1 != 0 {
1416 err = errnoErr(e1)
1417 }
1418 return
1419}
1420
1421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1422
1423func Pread(fd int, p []byte, offset int64) (n int, err error) {
1424 var _p0 unsafe.Pointer
1425 if len(p) > 0 {
1426 _p0 = unsafe.Pointer(&p[0])
1427 } else {
1428 _p0 = unsafe.Pointer(&_zero)
1429 }
1430 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1431 n = int(r0)
1432 if e1 != 0 {
1433 err = errnoErr(e1)
1434 }
1435 return
1436}
1437
1438// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1439
1440func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1441 var _p0 unsafe.Pointer
1442 if len(p) > 0 {
1443 _p0 = unsafe.Pointer(&p[0])
1444 } else {
1445 _p0 = unsafe.Pointer(&_zero)
1446 }
1447 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1448 n = int(r0)
1449 if e1 != 0 {
1450 err = errnoErr(e1)
1451 }
1452 return
1453}
1454
1455// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1456
1457func read(fd int, p []byte) (n int, err error) {
1458 var _p0 unsafe.Pointer
1459 if len(p) > 0 {
1460 _p0 = unsafe.Pointer(&p[0])
1461 } else {
1462 _p0 = unsafe.Pointer(&_zero)
1463 }
1464 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1465 n = int(r0)
1466 if e1 != 0 {
1467 err = errnoErr(e1)
1468 }
1469 return
1470}
1471
1472// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1473
1474func Readlink(path string, buf []byte) (n int, err error) {
1475 var _p0 *byte
1476 _p0, err = BytePtrFromString(path)
1477 if err != nil {
1478 return
1479 }
1480 var _p1 unsafe.Pointer
1481 if len(buf) > 0 {
1482 _p1 = unsafe.Pointer(&buf[0])
1483 } else {
1484 _p1 = unsafe.Pointer(&_zero)
1485 }
1486 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1487 n = int(r0)
1488 if e1 != 0 {
1489 err = errnoErr(e1)
1490 }
1491 return
1492}
1493
1494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1495
1496func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
1497 var _p0 *byte
1498 _p0, err = BytePtrFromString(path)
1499 if err != nil {
1500 return
1501 }
1502 var _p1 unsafe.Pointer
1503 if len(buf) > 0 {
1504 _p1 = unsafe.Pointer(&buf[0])
1505 } else {
1506 _p1 = unsafe.Pointer(&_zero)
1507 }
1508 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
1509 n = int(r0)
1510 if e1 != 0 {
1511 err = errnoErr(e1)
1512 }
1513 return
1514}
1515
1516// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1517
1518func Rename(from string, to string) (err error) {
1519 var _p0 *byte
1520 _p0, err = BytePtrFromString(from)
1521 if err != nil {
1522 return
1523 }
1524 var _p1 *byte
1525 _p1, err = BytePtrFromString(to)
1526 if err != nil {
1527 return
1528 }
1529 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1530 if e1 != 0 {
1531 err = errnoErr(e1)
1532 }
1533 return
1534}
1535
1536// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1537
1538func Renameat(fromfd int, from string, tofd int, to string) (err error) {
1539 var _p0 *byte
1540 _p0, err = BytePtrFromString(from)
1541 if err != nil {
1542 return
1543 }
1544 var _p1 *byte
1545 _p1, err = BytePtrFromString(to)
1546 if err != nil {
1547 return
1548 }
1549 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1550 if e1 != 0 {
1551 err = errnoErr(e1)
1552 }
1553 return
1554}
1555
1556// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1557
1558func Revoke(path string) (err error) {
1559 var _p0 *byte
1560 _p0, err = BytePtrFromString(path)
1561 if err != nil {
1562 return
1563 }
1564 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1565 if e1 != 0 {
1566 err = errnoErr(e1)
1567 }
1568 return
1569}
1570
1571// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1572
1573func Rmdir(path string) (err error) {
1574 var _p0 *byte
1575 _p0, err = BytePtrFromString(path)
1576 if err != nil {
1577 return
1578 }
1579 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1580 if e1 != 0 {
1581 err = errnoErr(e1)
1582 }
1583 return
1584}
1585
1586// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1587
1588func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1589 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1590 newoffset = int64(r0)
1591 if e1 != 0 {
1592 err = errnoErr(e1)
1593 }
1594 return
1595}
1596
1597// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1598
1599func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1600 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1601 if e1 != 0 {
1602 err = errnoErr(e1)
1603 }
1604 return
1605}
1606
1607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1608
1609func Setegid(egid int) (err error) {
1610 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1611 if e1 != 0 {
1612 err = errnoErr(e1)
1613 }
1614 return
1615}
1616
1617// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1618
1619func Seteuid(euid int) (err error) {
1620 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1621 if e1 != 0 {
1622 err = errnoErr(e1)
1623 }
1624 return
1625}
1626
1627// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1628
1629func Setgid(gid int) (err error) {
1630 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1631 if e1 != 0 {
1632 err = errnoErr(e1)
1633 }
1634 return
1635}
1636
1637// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1638
1639func Setlogin(name string) (err error) {
1640 var _p0 *byte
1641 _p0, err = BytePtrFromString(name)
1642 if err != nil {
1643 return
1644 }
1645 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1646 if e1 != 0 {
1647 err = errnoErr(e1)
1648 }
1649 return
1650}
1651
1652// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1653
1654func Setpgid(pid int, pgid int) (err error) {
1655 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1656 if e1 != 0 {
1657 err = errnoErr(e1)
1658 }
1659 return
1660}
1661
1662// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1663
1664func Setpriority(which int, who int, prio int) (err error) {
1665 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1666 if e1 != 0 {
1667 err = errnoErr(e1)
1668 }
1669 return
1670}
1671
1672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1673
1674func Setregid(rgid int, egid int) (err error) {
1675 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1676 if e1 != 0 {
1677 err = errnoErr(e1)
1678 }
1679 return
1680}
1681
1682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1683
1684func Setreuid(ruid int, euid int) (err error) {
1685 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1686 if e1 != 0 {
1687 err = errnoErr(e1)
1688 }
1689 return
1690}
1691
1692// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1693
1694func Setresgid(rgid int, egid int, sgid int) (err error) {
1695 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1696 if e1 != 0 {
1697 err = errnoErr(e1)
1698 }
1699 return
1700}
1701
1702// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1703
1704func Setresuid(ruid int, euid int, suid int) (err error) {
1705 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1706 if e1 != 0 {
1707 err = errnoErr(e1)
1708 }
1709 return
1710}
1711
1712// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1713
1714func Setrlimit(which int, lim *Rlimit) (err error) {
1715 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1716 if e1 != 0 {
1717 err = errnoErr(e1)
1718 }
1719 return
1720}
1721
1722// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1723
1724func Setsid() (pid int, err error) {
1725 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1726 pid = int(r0)
1727 if e1 != 0 {
1728 err = errnoErr(e1)
1729 }
1730 return
1731}
1732
1733// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1734
1735func Settimeofday(tp *Timeval) (err error) {
1736 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1737 if e1 != 0 {
1738 err = errnoErr(e1)
1739 }
1740 return
1741}
1742
1743// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1744
1745func Setuid(uid int) (err error) {
1746 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1747 if e1 != 0 {
1748 err = errnoErr(e1)
1749 }
1750 return
1751}
1752
1753// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1754
1755func stat(path string, stat *stat_freebsd11_t) (err error) {
1756 var _p0 *byte
1757 _p0, err = BytePtrFromString(path)
1758 if err != nil {
1759 return
1760 }
1761 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1762 if e1 != 0 {
1763 err = errnoErr(e1)
1764 }
1765 return
1766}
1767
1768// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1769
1770func statfs(path string, stat *statfs_freebsd11_t) (err error) {
1771 var _p0 *byte
1772 _p0, err = BytePtrFromString(path)
1773 if err != nil {
1774 return
1775 }
1776 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1777 if e1 != 0 {
1778 err = errnoErr(e1)
1779 }
1780 return
1781}
1782
1783// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1784
1785func statfs_freebsd12(path string, stat *Statfs_t) (err error) {
1786 var _p0 *byte
1787 _p0, err = BytePtrFromString(path)
1788 if err != nil {
1789 return
1790 }
1791 _, _, e1 := Syscall(SYS_STATFS_FREEBSD12, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1792 if e1 != 0 {
1793 err = errnoErr(e1)
1794 }
1795 return
1796}
1797
1798// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1799
1800func Symlink(path string, link string) (err error) {
1801 var _p0 *byte
1802 _p0, err = BytePtrFromString(path)
1803 if err != nil {
1804 return
1805 }
1806 var _p1 *byte
1807 _p1, err = BytePtrFromString(link)
1808 if err != nil {
1809 return
1810 }
1811 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1812 if e1 != 0 {
1813 err = errnoErr(e1)
1814 }
1815 return
1816}
1817
1818// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1819
1820func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
1821 var _p0 *byte
1822 _p0, err = BytePtrFromString(oldpath)
1823 if err != nil {
1824 return
1825 }
1826 var _p1 *byte
1827 _p1, err = BytePtrFromString(newpath)
1828 if err != nil {
1829 return
1830 }
1831 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
1832 if e1 != 0 {
1833 err = errnoErr(e1)
1834 }
1835 return
1836}
1837
1838// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1839
1840func Sync() (err error) {
1841 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1842 if e1 != 0 {
1843 err = errnoErr(e1)
1844 }
1845 return
1846}
1847
1848// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1849
1850func Truncate(path string, length int64) (err error) {
1851 var _p0 *byte
1852 _p0, err = BytePtrFromString(path)
1853 if err != nil {
1854 return
1855 }
1856 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1857 if e1 != 0 {
1858 err = errnoErr(e1)
1859 }
1860 return
1861}
1862
1863// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1864
1865func Umask(newmask int) (oldmask int) {
1866 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1867 oldmask = int(r0)
1868 return
1869}
1870
1871// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1872
1873func Undelete(path string) (err error) {
1874 var _p0 *byte
1875 _p0, err = BytePtrFromString(path)
1876 if err != nil {
1877 return
1878 }
1879 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1880 if e1 != 0 {
1881 err = errnoErr(e1)
1882 }
1883 return
1884}
1885
1886// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1887
1888func Unlink(path string) (err error) {
1889 var _p0 *byte
1890 _p0, err = BytePtrFromString(path)
1891 if err != nil {
1892 return
1893 }
1894 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1895 if e1 != 0 {
1896 err = errnoErr(e1)
1897 }
1898 return
1899}
1900
1901// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1902
1903func Unlinkat(dirfd int, path string, flags int) (err error) {
1904 var _p0 *byte
1905 _p0, err = BytePtrFromString(path)
1906 if err != nil {
1907 return
1908 }
1909 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
1910 if e1 != 0 {
1911 err = errnoErr(e1)
1912 }
1913 return
1914}
1915
1916// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1917
1918func Unmount(path string, flags int) (err error) {
1919 var _p0 *byte
1920 _p0, err = BytePtrFromString(path)
1921 if err != nil {
1922 return
1923 }
1924 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1925 if e1 != 0 {
1926 err = errnoErr(e1)
1927 }
1928 return
1929}
1930
1931// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1932
1933func write(fd int, p []byte) (n int, err error) {
1934 var _p0 unsafe.Pointer
1935 if len(p) > 0 {
1936 _p0 = unsafe.Pointer(&p[0])
1937 } else {
1938 _p0 = unsafe.Pointer(&_zero)
1939 }
1940 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1941 n = int(r0)
1942 if e1 != 0 {
1943 err = errnoErr(e1)
1944 }
1945 return
1946}
1947
1948// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1949
1950func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1951 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1952 ret = uintptr(r0)
1953 if e1 != 0 {
1954 err = errnoErr(e1)
1955 }
1956 return
1957}
1958
1959// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1960
1961func munmap(addr uintptr, length uintptr) (err error) {
1962 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1963 if e1 != 0 {
1964 err = errnoErr(e1)
1965 }
1966 return
1967}
1968
1969// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1970
1971func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1972 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1973 n = int(r0)
1974 if e1 != 0 {
1975 err = errnoErr(e1)
1976 }
1977 return
1978}
1979
1980// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1981
1982func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1983 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1984 n = int(r0)
1985 if e1 != 0 {
1986 err = errnoErr(e1)
1987 }
1988 return
1989}
1990
1991// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1992
1993func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) {
1994 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1995 nfd = int(r0)
1996 if e1 != 0 {
1997 err = errnoErr(e1)
1998 }
1999 return
2000}
2001
2002// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2003
2004func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
2005 var _p0 *byte
2006 _p0, err = BytePtrFromString(path)
2007 if err != nil {
2008 return
2009 }
2010 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
2011 if e1 != 0 {
2012 err = errnoErr(e1)
2013 }
2014 return
2015}