]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Renamed the $PLATFORM/vki_unistd.h files as vki_unistd-$PLATFORM.h, to
authorNicholas Nethercote <njn@valgrind.org>
Sun, 29 May 2005 23:30:48 +0000 (23:30 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sun, 29 May 2005 23:30:48 +0000 (23:30 +0000)
match the headers files in include/.

As a consequence, coregrind/$PLATFORM directories are no longer needed,
hooray!

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3814

configure.in
coregrind/Makefile.am
coregrind/amd64-linux/Makefile.am [deleted file]
coregrind/arm-linux/Makefile.am [deleted file]
coregrind/vki_unistd-amd64-linux.h [moved from coregrind/amd64-linux/vki_unistd.h with 99% similarity]
coregrind/vki_unistd-arm-linux.h [moved from coregrind/arm-linux/vki_unistd.h with 99% similarity]
coregrind/vki_unistd-x86-linux.h [moved from coregrind/x86-linux/vki_unistd.h with 98% similarity]
coregrind/vki_unistd.h [new file with mode: 0644]
coregrind/x86-linux/.cvsignore [deleted file]
coregrind/x86-linux/Makefile.am [deleted file]
memcheck/tests/x86/scalar.h

index 2b414b9d5fbfc61e5053d6c98fe2a0559401bd18..3cb47c23f822a50c6855d65bf1755b7569f1f847 100644 (file)
@@ -397,9 +397,6 @@ AC_OUTPUT(
    coregrind/arm/Makefile
    coregrind/x86/Makefile
    coregrind/linux/Makefile
-   coregrind/amd64-linux/Makefile
-   coregrind/arm-linux/Makefile
-   coregrind/x86-linux/Makefile
    addrcheck/Makefile
    addrcheck/tests/Makefile
    addrcheck/docs/Makefile
index ade1a6d46949d5cff230de53fcc70c1e617faaf8..22b8408981bd65f309429bdd2e3d030a4e5bee46 100644 (file)
@@ -13,11 +13,11 @@ MODULES = \
 ## But when doing 'make dist', we are interested in every arch/OS/platform.
 ## That's what DIST_SUBDIRS specifies.
 SUBDIRS = \
-       $(VG_ARCH)     $(VG_OS)     $(VG_PLATFORM) \
+       $(VG_ARCH)     $(VG_OS) \
        $(MODULES) .
 
 DIST_SUBDIRS = \
-       $(VG_ARCH_ALL) $(VG_OS_ALL) $(VG_PLATFORM_ALL) \
+       $(VG_ARCH_ALL) $(VG_OS_ALL) \
        $(MODULES) .
 
 AM_CPPFLAGS += -DVG_LIBDIR="\"$(valdir)"\" \
@@ -57,7 +57,11 @@ noinst_HEADERS = \
        pub_core_transtab_asm.h \
        ume.h                   \
        vg_symtab2.h            \
-       vg_symtypes.h
+       vg_symtypes.h           \
+       vki_unistd.h            \
+       vki_unistd-amd64-linux.h\
+       vki_unistd-arm-linux.h  \
+       vki_unistd-x86-linux.h
 
 EXTRA_DIST = \
        valgrind.vs \
diff --git a/coregrind/amd64-linux/Makefile.am b/coregrind/amd64-linux/Makefile.am
deleted file mode 100644 (file)
index c485764..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-include $(top_srcdir)/Makefile.all.am
-include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
-
-noinst_HEADERS = \
-       vki_unistd.h
diff --git a/coregrind/arm-linux/Makefile.am b/coregrind/arm-linux/Makefile.am
deleted file mode 100644 (file)
index c485764..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-include $(top_srcdir)/Makefile.all.am
-include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
-
-noinst_HEADERS = \
-       vki_unistd.h
similarity index 99%
rename from coregrind/amd64-linux/vki_unistd.h
rename to coregrind/vki_unistd-amd64-linux.h
index 0c94fa7efd090e126ef990dde229726bac8826b8..d6cd28da04e426da289bb59485062201eb2bf6f8 100644 (file)
@@ -24,8 +24,8 @@
    The GNU General Public License is contained in the file COPYING.
 */
 
-#ifndef __AMD64_LINUX_VKI_UNISTD_H_
-#define __AMD64_LINUX_VKI_UNISTD_H_
+#ifndef __VKI_UNISTD_AMD64_LINUX_H
+#define __VKI_UNISTD_AMD64_LINUX_H
 
 // From linux-2.6.9/include/asm-x86_64/unistd.h
 
 #define __NR_waitid            247
 
 
-#endif /* __AMD64_LINUX_VKI_UNISTD_H_ */
+#endif /* __VKI_UNISTD_AMD64_LINUX_H */
similarity index 99%
rename from coregrind/arm-linux/vki_unistd.h
rename to coregrind/vki_unistd-arm-linux.h
index 6ecfc9714328658780715e9c140ba479981e085e..21ae8b563003b3378044e523d2a4a2a9a50e64ec 100644 (file)
@@ -24,8 +24,8 @@
    The GNU General Public License is contained in the file COPYING.
 */
 
-#ifndef __ARM_LINUX_VKI_UNISTD_H_
-#define __ARM_LINUX_VKI_UNISTD_H_
+#ifndef __VKI_UNISTD_ARM_LINUX_H
+#define __VKI_UNISTD_ARM_LINUX_H
 
 // From linux-2.6.8.1/include/asm-arm/unistd.h
 
 #define __NR_pciconfig_read            (__NR_SYSCALL_BASE+272)
 #define __NR_pciconfig_write           (__NR_SYSCALL_BASE+273)
 
-#endif /* __ARM_LINUX_VKI_UNISTD_H_ */
+#endif /* __VKI_UNISTD_ARM_LINUX_H */
similarity index 98%
rename from coregrind/x86-linux/vki_unistd.h
rename to coregrind/vki_unistd-x86-linux.h
index a03cdcfb11310c6543d94b4ba94afd75633821c6..f46af8cf8457d74c85c97dd2e9a83b5f7fdbbecf 100644 (file)
@@ -24,8 +24,8 @@
    The GNU General Public License is contained in the file COPYING.
 */
 
-#ifndef __X86_LINUX_VKI_UNISTD_H_
-#define __X86_LINUX_VKI_UNISTD_H_
+#ifndef __VKI_UNISTD_X86_LINUX_H
+#define __VKI_UNISTD_X86_LINUX_H
 
 // From linux-2.6.9/include/asm-i386/unistd.h
 
 #define __NR_sys_kexec_load    283
 #define __NR_wait              284
 
-#endif /* __X86_LINUX_VKI_UNISTD_H_ */
+#endif /* __VKI_UNISTD_X86_LINUX_H */
diff --git a/coregrind/vki_unistd.h b/coregrind/vki_unistd.h
new file mode 100644 (file)
index 0000000..4953c1d
--- /dev/null
@@ -0,0 +1,49 @@
+
+/*--------------------------------------------------------------------*/
+/*--- Generic header for Valgrind's kernel interface.              ---*/
+/*---                                                 vki_unistd.h ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+   This file is part of Valgrind, a dynamic binary instrumentation
+   framework.
+
+   Copyright (C) 2005 Nicholas Nethercote
+      njn@valgrind.org
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307, USA.
+
+   The GNU General Public License is contained in the file COPYING.
+*/
+
+#ifndef __VKI_UNISTD_H
+#define __VKI_UNISTD_H
+
+#if defined(VGP_x86_linux)
+#  include "vki_unistd-x86-linux.h"   
+#elif defined(VGP_amd64_linux)
+#  include "vki_unistd-amd64-linux.h" 
+#elif defined(VGP_arm_linux)
+#  include "vki_unistd-arm-linux.h" 
+#else
+#  error Unknown platform
+#endif
+
+#endif   // __VKI_UNISTD_H
+
+/*--------------------------------------------------------------------*/
+/*--- end                                                          ---*/
+/*--------------------------------------------------------------------*/
diff --git a/coregrind/x86-linux/.cvsignore b/coregrind/x86-linux/.cvsignore
deleted file mode 100644 (file)
index 282522d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-Makefile.in
diff --git a/coregrind/x86-linux/Makefile.am b/coregrind/x86-linux/Makefile.am
deleted file mode 100644 (file)
index c485764..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-include $(top_srcdir)/Makefile.all.am
-include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
-
-noinst_HEADERS = \
-       vki_unistd.h
index f9e1c99aaafd3cdfb180646c35d74f5e32e97756..3fa86c9112075478c35e0fa657f846ecd880c95d 100644 (file)
@@ -1,4 +1,4 @@
-#include "../../../coregrind/x86-linux/vki_unistd.h"
+#include "../../../coregrind/vki_unistd-x86-linux.h"
 
 #include <assert.h>
 #include <errno.h>