summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/mips
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-12-08 21:05:37 +0000
committerEric Andersen <andersen@codepoet.org>2006-12-08 21:05:37 +0000
commitffd98ffec71ec6c7b7e7a96f5e6dce40077b3785 (patch)
tree8a4e7657ff8a625f06dc77ba07320ae66adc48ad /libc/sysdeps/linux/mips
parent3da17f3cd0e0dd6818b42074fc6565a830e3b7be (diff)
Take Mike Frysinger's comments into account -- make certain that user
applications stop using _syscall#() and use syscall() instead. Cleanup internal handling of syscall includes to use the correct header file.
Diffstat (limited to 'libc/sysdeps/linux/mips')
-rw-r--r--libc/sysdeps/linux/mips/bits/syscalls.h4
-rw-r--r--libc/sysdeps/linux/mips/pread_write.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/mips/bits/syscalls.h b/libc/sysdeps/linux/mips/bits/syscalls.h
index 661e6d1ce..bd0eb1eaf 100644
--- a/libc/sysdeps/linux/mips/bits/syscalls.h
+++ b/libc/sysdeps/linux/mips/bits/syscalls.h
@@ -4,10 +4,6 @@
# error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead."
#endif
-/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
- * header files. It also defines the traditional `SYS_<name>' macros for older
- * programs. */
-#include <bits/sysnum.h>
#include <sgidefs.h>
#ifndef __ASSEMBLER__
diff --git a/libc/sysdeps/linux/mips/pread_write.c b/libc/sysdeps/linux/mips/pread_write.c
index b843f500d..0267c720b 100644
--- a/libc/sysdeps/linux/mips/pread_write.c
+++ b/libc/sysdeps/linux/mips/pread_write.c
@@ -12,7 +12,7 @@
* from GNU libc 2.2.5, but reworked considerably...
*/
-#include "../common/syscalls.h"
+#include <sys/syscall.h>
#include <unistd.h>
#include <stdint.h>
#include <sgidefs.h>