mirror of
https://github.com/golang/go
synced 2024-11-22 00:44:39 -07:00
syscall: bring generated files zsyscall_darwin_*.go
up to date. No functional change, but when these files are regenerated they change, leading to noisy diffs when working in the syscall package. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/705043
This commit is contained in:
parent
a00917ca1c
commit
729ccb5751
@ -121,6 +121,12 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
||||
return
|
||||
}
|
||||
|
||||
func kill(pid int, signum int, posix int) (errno int) {
|
||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
||||
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)
|
||||
@ -370,12 +376,6 @@ func Issetugid() (tainted bool) {
|
||||
return
|
||||
}
|
||||
|
||||
func kill(pid int, signum int, posix int) (errno int) {
|
||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
||||
errno = int(e1)
|
||||
return
|
||||
}
|
||||
|
||||
func Kqueue() (fd int, errno int) {
|
||||
r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
|
||||
fd = int(r0)
|
||||
|
@ -121,6 +121,12 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
||||
return
|
||||
}
|
||||
|
||||
func kill(pid int, signum int, posix int) (errno int) {
|
||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
||||
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)
|
||||
@ -370,12 +376,6 @@ func Issetugid() (tainted bool) {
|
||||
return
|
||||
}
|
||||
|
||||
func kill(pid int, signum int, posix int) (errno int) {
|
||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
||||
errno = int(e1)
|
||||
return
|
||||
}
|
||||
|
||||
func Kqueue() (fd int, errno int) {
|
||||
r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
|
||||
fd = int(r0)
|
||||
|
Loading…
Reference in New Issue
Block a user