ref: 9512779a27fb78fa0bfe505da59b8af681466e11
parent: 5889fbb13b415134e0d5b094359e351f5ff94fc3
parent: 180c0d000870433ae0108bb0bac1e9cdac5ce92c
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jul 7 15:05:13 EDT 2017
Merge https://github.com/oridb/mc
--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -379,7 +379,6 @@
const Syschflags : scno = 34
const Sysfchflags : scno = 35
const Syssync : scno = 36
- const Syskill : scno = 37
const Sysstat : scno = 38
const Sysgetppid : scno = 39
const Syslstat : scno = 40
@@ -457,6 +456,7 @@
const Sysgetsockopt : scno = 118
const Sysreadv : scno = 120
const Syswritev : scno = 121
+ const Syskill : scno = 122
const Sysfchown : scno = 123
const Sysfchmod : scno = 124
const Syssetreuid : scno = 126
--- a/rt/abort-openbsd.s
+++ b/rt/abort-openbsd.s
@@ -27,7 +27,7 @@
movq $20,%rax /* getpid */
syscall
movq %rax, %rdi /* save pid */
- movq $37, %rax /* kill(pid=%rdi, sig=%rsi) */
+ movq $122, %rax /* kill(pid=%rdi, sig=%rsi) */
movq $6, %rsi
syscall
.data