Remove "-HEADER-" from SYMBOL and VALUE-CELL widetag names
[sbcl.git] / src / runtime / android-os.h
bloba2f661130d2540f59e40febb082d7e4e78e3eae3
1 /*
2 * This software is part of the SBCL system. See the README file for
3 * more information.
5 * This software is derived from the CMU CL system, which was
6 * written at Carnegie Mellon University and released into the
7 * public domain. The software is in the public domain and is
8 * provided with absolutely no warranty. See the COPYING and CREDITS
9 * files for more information.
12 #include <stdlib.h>
13 #include <sys/types.h>
14 #include <sys/mman.h>
15 #include <signal.h>
16 #include <string.h>
17 /* #include <dlfcn.h> */
18 #include <sys/time.h>
19 #include <sys/stat.h>
20 #include <unistd.h>
21 #include <sys/syscall.h>
22 #include <asm/unistd.h>
23 #include <linux/version.h>
25 // Needs to be defined before including target-arch.h
26 typedef caddr_t os_vm_address_t;
27 typedef size_t os_vm_size_t;
28 typedef off_t os_vm_offset_t;
29 typedef int os_vm_prot_t;
31 #include "target-arch-os.h"
32 #include "target-arch.h"
33 #define linuxversion(a, b, c) (((a)<<16)+((b)<<8)+(c))
35 #define OS_VM_PROT_READ PROT_READ
36 #define OS_VM_PROT_WRITE PROT_WRITE
37 #define OS_VM_PROT_EXECUTE PROT_EXEC
39 #define SIG_MEMORY_FAULT SIGSEGV
41 /* Note that this must be higher than the highest numbered
42 * synchronously generated signal that we handle (that is SIGSEGV),
43 * due to Linux signal handling pecularities. See thread "Signal
44 * delivery order" from 2009-03-14 on kernel-devel@vger.kernel.org. */
45 #define SIG_STOP_FOR_GC (SIGUSR2)