aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/syscall.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-06 04:54:33 +0000
committerRoland McGrath <roland@gnu.org>1996-06-06 04:54:33 +0000
commitf127cd28b5f758a512fcd09e317e720c16bce3b4 (patch)
tree3ca10f40ca7f3cd9e7a1491545c475f609708794 /sysdeps/unix/sysv/linux/syscall.h
parentdfe1754a556c167df741843ef0114f5325717a7c (diff)
downloadglibc-f127cd28b5f758a512fcd09e317e720c16bce3b4.zip
glibc-f127cd28b5f758a512fcd09e317e720c16bce3b4.tar.gz
glibc-f127cd28b5f758a512fcd09e317e720c16bce3b4.tar.bz2
Thu Jun 6 00:02:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* locale/Makefile: Add vpath for %.gperf to programs. * Make-dist (+tsrcs): Variable removed. (dist): Process $^ here instead of using $(+tsrcs). * sysdeps/unix/sysv/linux/Makefile (install-others): Don't set. ($(includedir)/sys/syscall.h): Target removed. (sysdep_headers): Add syscall-list.h. ($(objpfx)syscall-%.[dh]): New rule to build syscall-list.[dh]. (generated): Add those. * sysdeps/unix/sysv/linux/syscall.h: Include <syscall-list.h>. * misc/sys/syscall.h: New file. * misc/Makefile (headers): Add sys/syscall.h. * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/syscall.h')
-rw-r--r--sysdeps/unix/sysv/linux/syscall.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/syscall.h b/sysdeps/unix/sysv/linux/syscall.h
index 62fca57..1fbda4c 100644
--- a/sysdeps/unix/sysv/linux/syscall.h
+++ b/sysdeps/unix/sysv/linux/syscall.h
@@ -24,4 +24,12 @@ Cambridge, MA 02139, USA. */
from the kernel sources. */
#include <asm/unistd.h>
+#ifndef _LIBC
+/* The Linux kernel header file defines macros `__NR_<name>', but some
+ programs expect the traditional form `SYS_<name>'. So in building libc
+ we scan the kernel's list and produce <syscall-list.h> with macros for
+ all the `SYS_' names. */
+#include <syscall-list.h>
+#endif
+
#endif