c69dcdb03ffe62d085d738e0321e9370cc0a5235
[projects/cmucl/cmucl.git] / src / lisp / OpenBSD-os.h
1 /*
2
3  $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/OpenBSD-os.h,v 1.6 2007/06/12 03:21:46 cshapiro Rel $
4
5  This code was written as part of the CMU Common Lisp project at
6  Carnegie Mellon University, and has been placed in the public domain.
7
8 */
9
10 #ifndef _OPENBSD_OS_H_
11 #define _OPENBSD_OS_H_
12
13
14 #include <sys/types.h>
15 #include <sys/mman.h>
16 #include <sys/signal.h>
17
18 typedef caddr_t os_vm_address_t;
19 typedef vm_size_t os_vm_size_t;
20 typedef off_t os_vm_offset_t;
21 typedef int os_vm_prot_t;
22
23 #define OS_VM_PROT_READ PROT_READ
24 #define OS_VM_PROT_WRITE PROT_WRITE
25 #define OS_VM_PROT_EXECUTE PROT_EXEC
26
27 #define OS_VM_DEFAULT_PAGESIZE  4096
28
29 #define HANDLER_ARGS int signal, siginfo_t *code, struct sigcontext *context
30 #define CODE(code)  ((code) ? code->si_code : 0)
31
32 #define uc_sigmask sc_mask
33 int *sc_reg(struct sigcontext *, int);
34
35 #endif /* _OPENBSD_OS_H_ */