1.0.22.22: (SETF FIND-CLASSOID) to drop DEFTYPE lambda-lists and source-locations
[sbcl/tcr.git] / src / runtime / linux-os.h
blobcfeaed4a11ace4e0307b28f696f020d680db889f
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 <sys/signal.h>
16 #include <ucontext.h>
17 #include <string.h>
18 /* #include <dlfcn.h> */
19 #include <sys/time.h>
20 #include <sys/stat.h>
21 #include <unistd.h>
22 #include <sys/syscall.h>
23 #include <asm/unistd.h>
24 #include <linux/version.h>
26 // Needs to be defined before including target-arch.h
27 typedef caddr_t os_vm_address_t;
28 typedef size_t os_vm_size_t;
29 typedef off_t os_vm_offset_t;
30 typedef int os_vm_prot_t;
32 #include "target-arch-os.h"
33 #include "target-arch.h"
34 #define linuxversion(a, b, c) (((a)<<16)+((b)<<8)+(c))
36 #define OS_VM_PROT_READ PROT_READ
37 #define OS_VM_PROT_WRITE PROT_WRITE
38 #define OS_VM_PROT_EXECUTE PROT_EXEC
40 #define SIG_MEMORY_FAULT SIGSEGV
42 #define SIG_INTERRUPT_THREAD (SIGRTMIN)
43 #define SIG_STOP_FOR_GC (SIGRTMIN+1)