mirror of
https://github.com/golang/go
synced 2024-11-22 00:14:42 -07:00
syscall: update freebsd_amd64
R=rsc, r CC=golang-dev https://golang.org/cl/1268041
This commit is contained in:
parent
1dabecec41
commit
977475fd49
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
// mksyscall.sh syscall_freebsd.go syscall_freebsd_amd64.go
|
||||
// mksyscall.sh syscall_bsd.go syscall_freebsd.go syscall_freebsd_amd64.go
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
@ -121,6 +121,18 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
||||
return
|
||||
}
|
||||
|
||||
func utimes(path string, timeval *[2]Timeval) (errno int) {
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(timeval)), 0)
|
||||
errno = int(e1)
|
||||
return
|
||||
}
|
||||
|
||||
func futimes(fd int, timeval *[2]Timeval) (errno int) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
|
||||
errno = int(e1)
|
||||
return
|
||||
}
|
||||
|
||||
func fcntl(fd int, cmd int, arg int) (val int, errno int) {
|
||||
r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
|
||||
val = int(r0)
|
||||
|
Loading…
Reference in New Issue
Block a user