rizin/libr/syscall/d/gen.sh
pancake aebf800b8e * Lot of fixes in r_syscall api related to the use of RPair
- Fix segfault in OpenBSD (thanks vext01 for reporting)
  - Add openbsd-x86-64 syscall definitions
2011-07-02 10:14:46 +02:00

12 lines
179 B
Bash
Executable file

#!/bin/sh
echo "_=0x80"
awk -F '(=|,)' '{
# 0x80.1=exit
if ($1 == "_") {
print $1"="$2
} else {
print $2"."$3"="$1
# exit=0x80,1,1,i
print $1"="$2","$3","$4","$5
}
}'