3 URL
=https
://raw.githubusercontent.com
/strace
/strace
/master
4 FILES
="sysent.h sysent_shorthand_defs.h linux/mips/syscallent-compat.h \
5 linux/mips/syscallent-o32.h linux/syscallent-common-32.h \
6 linux/syscallent-common.h"
9 if [ "$output" = "" ] ; then
13 INC
=linux-user
/mips
/syscall-args-o32.c.inc
18 for file in $FILES; do
24 cat > gen_mips_o32.c
<<EOF
31 #include "sysent_shorthand_defs.h"
33 #define SEN(syscall_name) 0,0
34 const struct_sysent sysent0[] = {
35 #include "syscallent-o32.h"
42 for (i = 4000; i < sizeof(sysent0) / sizeof(struct_sysent); i++) {
43 if (sysent0[i].sys_name == NULL) {
44 printf(" [% 4d] = MIPS_SYSCALL_NUMBER_UNUSED,\n", i - 4000);
46 printf(" [% 4d] = %d, /* %s */\n", i - 4000,
47 sysent0[i].nargs, sysent0[i].sys_name);
55 cc
-o gen_mips_o32 gen_mips_o32.c
&& .
/gen_mips_o32
> "$output/$INC"