aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go')
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go56
1 files changed, 23 insertions, 33 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
index d681acd..31d2c46 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
@@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
214 214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216 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) { 217func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte 218 var _p0 *byte
235 _p0, err = BytePtrFromString(path) 219 _p0, err = BytePtrFromString(path)
@@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
255 239
256// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 240// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
257 241
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) { 242func 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)) 243 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
271 n = int(r0) 244 n = int(r0)
@@ -377,8 +350,14 @@ func Munlockall() (err error) {
377 350
378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 351// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379 352
380func pipe2(p *[2]_C_int, flags int) (err error) { 353func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
381 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 354 var _p0 unsafe.Pointer
355 if len(mib) > 0 {
356 _p0 = unsafe.Pointer(&mib[0])
357 } else {
358 _p0 = unsafe.Pointer(&_zero)
359 }
360 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
382 if e1 != 0 { 361 if e1 != 0 {
383 err = errnoErr(e1) 362 err = errnoErr(e1)
384 } 363 }
@@ -387,8 +366,8 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
387 366
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 367// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 368
390func ptrace(request int, pid int, addr uintptr, data int) (err error) { 369func pipe2(p *[2]_C_int, flags int) (err error) {
391 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) 370 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
392 if e1 != 0 { 371 if e1 != 0 {
393 err = errnoErr(e1) 372 err = errnoErr(e1)
394 } 373 }
@@ -424,6 +403,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
424 403
425// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 404// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
426 405
406func ptrace(request int, pid int, addr uintptr, data int) (err error) {
407 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
408 if e1 != 0 {
409 err = errnoErr(e1)
410 }
411 return
412}
413
414// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
415
427func Access(path string, mode uint32) (err error) { 416func Access(path string, mode uint32) (err error) {
428 var _p0 *byte 417 var _p0 *byte
429 _p0, err = BytePtrFromString(path) 418 _p0, err = BytePtrFromString(path)
@@ -1606,8 +1595,9 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1606 1595
1607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1608 1597
1609func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { 1598func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1610 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1599 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1600 n = int(r0)
1611 if e1 != 0 { 1601 if e1 != 0 {
1612 err = errnoErr(e1) 1602 err = errnoErr(e1)
1613 } 1603 }