- create coregrind/x86-linux/ directory.
- move vg_unistd.h into x86-linux/, because it's platform-dependent. Also
rename it as vki_unistd.h to make clear it's a kernel interface thing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2681
add_includes = -I$(top_builddir)/coregrind -I$(top_srcdir)/coregrind \
-I$(top_srcdir)/coregrind/$(VG_ARCH) \
+ -I$(top_srcdir)/coregrind/$(VG_PLATFORM) \
-I$(top_builddir)/include -I$(top_srcdir)/include \
-I$(top_srcdir)/include/$(VG_ARCH)
grep NNN /usr/include/asm/unistd.h
This should tell you something like __NR_mysyscallname.
- Copy this entry to coregrind/vg_unistd.h.
+ Copy this entry to coregrind/$(VG_PLATFORM)/vki_unistd.h.
2. Do 'man 2 mysyscallname' to get some idea of what the syscall
does. Note that the actual kernel interface can differ from this,
coregrind/demangle/Makefile
coregrind/docs/Makefile
coregrind/x86/Makefile
+ coregrind/x86-linux/Makefile
addrcheck/Makefile
addrcheck/tests/Makefile
addrcheck/docs/Makefile
include $(top_srcdir)/Makefile.all.am
include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
-SUBDIRS = $(VG_ARCH) demangle . docs
+SUBDIRS = $(VG_ARCH) $(VG_PLATFORM) demangle . docs
AM_CPPFLAGS += -DVG_LIBDIR="\"$(valdir)"\" -I$(srcdir)/demangle \
-DKICKSTART_BASE=$(KICKSTART_BASE) \
ume.h \
ume_arch.h \
vg_symtab2.h \
- vg_unistd.h \
vg_symtypes.h \
vg_toolint.h \
vg_unsafe.h
/* For system call numbers __NR_... */
-#include "vg_unistd.h"
+#include "vki_unistd.h"
#include "core_asm.h" // asm stuff
#include "tool.h" // tool stuff
*/
#include "core_asm.h"
-#include "vg_unistd.h"
+#include "vki_unistd.h"
/*
int VG_(cpuid)(UInt eax,
*/
#include "core_asm.h"
-#include "vg_unistd.h"
+#include "vki_unistd.h"
.globl VG_(do_syscall)
/* These includes are only used for making sense of the args for
system calls. */
-#include "vg_unistd.h" /* for system call numbers */
+#include "vki_unistd.h" /* for system call numbers */
#include <sys/mman.h> /* for PROT_* */
#include <sys/utsname.h> /* for uname */
#include <sys/time.h> /* for struct timeval & struct timezone */
--- /dev/null
+Makefile
+Makefile.in
--- /dev/null
+include $(top_srcdir)/Makefile.all.am
+include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
+
+AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fomit-frame-pointer -g
+
+noinst_HEADERS = \
+ vki_unistd.h
The GNU General Public License is contained in the file COPYING.
*/
-#ifndef _VG_ASM_I386_UNISTD_H_
-#define _VG_ASM_I386_UNISTD_H_
+#ifndef __X86_LINUX_VKI_UNISTD_H_
+#define __X86_LINUX_VKI_UNISTD_H_
+
/* Taken from Linux 2.6.0-test1 include/asm-i386/unistd.h */
/*
#define NR_syscalls 284
-#endif /* _VG_ASM_I386_UNISTD_H_ */
+#endif /* __X86_LINUX_VKI_UNISTD_H_ */