diff options
author | Giles Lean <giles.lean@pobox.com> | 2010-03-24 21:59:21 -0700 |
---|---|---|
committer | Giles Lean <giles.lean@pobox.com> | 2010-03-24 21:59:21 -0700 |
commit | f6269838fe7a14e06559cee4ab1a86264539114c (patch) | |
tree | 97d41059e3acc678baf66cc9054abb4a46d71ebb /src/pkg/syscall/zsyscall_darwin_386.go | |
parent | 3c9e70e1d3c32a4fbba15f6849b03cb1fbfe8add (diff) | |
download | golang-f6269838fe7a14e06559cee4ab1a86264539114c.tar.gz |
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 <rsc@golang.org>
Diffstat (limited to 'src/pkg/syscall/zsyscall_darwin_386.go')
-rw-r--r-- | src/pkg/syscall/zsyscall_darwin_386.go | 12 |
1 files changed, 6 insertions, 6 deletions
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) |