From f6269838fe7a14e06559cee4ab1a86264539114c Mon Sep 17 00:00:00 2001 From: Giles Lean Date: Wed, 24 Mar 2010 21:59:21 -0700 Subject: 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 http://codereview.appspot.com/705043 Committer: Russ Cox --- src/pkg/syscall/zsyscall_darwin_386.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/pkg/syscall/zsyscall_darwin_386.go') diff --git a/src/pkg/syscall/zsyscall_darwin_386.go b/src/pkg/syscall/zsyscall_darwin_386.go index 92525e3a8..6ce783cb1 100644 --- a/src/pkg/syscall/zsyscall_darwin_386.go +++ b/src/pkg/syscall/zsyscall_darwin_386.go @@ -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) -- cgit v1.2.3