From 039fefad93deee41292caff324f78ff1e74b437d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 20 Apr 2001 17:26:51 +0000 Subject: Nobody should be using the SYS_ syscall names. Use the __NR_ names instead. -Erik --- libc/sysdeps/linux/arm/vfork.S | 2 +- libc/sysdeps/linux/m68k/crt0.S | 2 +- libc/sysdeps/linux/m68k/ptrace.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/arm/vfork.S b/libc/sysdeps/linux/arm/vfork.S index 845a222ac..d0e9922a6 100644 --- a/libc/sysdeps/linux/arm/vfork.S +++ b/libc/sysdeps/linux/arm/vfork.S @@ -37,7 +37,7 @@ vfork: -#ifdef __SYS_vfork +#ifdef __NR_vfork swi __NR_vfork cmn r0, #4096 movcc pc, lr diff --git a/libc/sysdeps/linux/m68k/crt0.S b/libc/sysdeps/linux/m68k/crt0.S index e7de07322..182e8baea 100644 --- a/libc/sysdeps/linux/m68k/crt0.S +++ b/libc/sysdeps/linux/m68k/crt0.S @@ -41,7 +41,7 @@ _start: /* put here so that references to _start work with elf-PIC */ /* If that didn't kill us, ... */ __exit: move.l %sp@+,%d1 - moveq #1,%d0 /* SYS_exit */ + moveq #1,%d0 /* __NR_exit */ trap #0 /* diff --git a/libc/sysdeps/linux/m68k/ptrace.c b/libc/sysdeps/linux/m68k/ptrace.c index a82adc765..423be05e2 100644 --- a/libc/sysdeps/linux/m68k/ptrace.c +++ b/libc/sysdeps/linux/m68k/ptrace.c @@ -18,7 +18,7 @@ ptrace(int request, int pid, int addr, int data) "trap #0\n\t" "movel %/d0,%0" :"=g" (res) - :"i" (SYS_ptrace), "g" (request), "g" (pid), + :"i" (__NR_ptrace), "g" (request), "g" (pid), "g" (addr), "g" (data) : "%d0", "%d1", "%d2", "%d3", "%d4"); if (res >= 0) { -- cgit v1.2.3