/[cmucl]/src/lisp/OpenBSD-os.h
ViewVC logotype

Contents of /src/lisp/OpenBSD-os.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Thu Sep 15 18:26:50 2005 UTC (8 years, 7 months ago) by rtoy
Branch: MAIN
CVS Tags: double-double-array-base, double-double-init-sparc-2, double-double-base, snapshot-2006-11, snapshot-2006-10, double-double-init-sparc, release-19d, double-double-init-ppc, release-19c, release-19c-base, double-double-init-%make-sparc, double-double-array-checkpoint, double-double-reader-checkpoint-1, release-19d-base, double-double-irrat-end, release-19d-pre2, release-19d-pre1, double-double-init-checkpoint-1, double-double-reader-base, double-double-init-x86, snapshot-2005-11, double-double-sparc-checkpoint-1, snapshot-2005-10, snapshot-2005-12, release-19c-pre1, double-double-irrat-start, snapshot-2006-02, snapshot-2006-03, snapshot-2006-01, snapshot-2006-06, snapshot-2006-07, snapshot-2006-04, snapshot-2006-05, snapshot-2006-08, snapshot-2006-09
Branch point for: double-double-reader-branch, double-double-array-branch, release-19d-branch, double-double-branch, release-19c-branch
Changes since 1.2: +2 -2 lines
File MIME type: text/plain
Indent all source files using GNU indent using the config in
.indent.pro.
1 /*
2
3 $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/OpenBSD-os.h,v 1.3 2005/09/15 18:26:50 rtoy Exp $
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 #define MAP_ANONYMOUS MAP_ANON
19 #define MAP_VARIABLE 0
20
21 typedef caddr_t os_vm_address_t;
22 typedef vm_size_t os_vm_size_t;
23 typedef off_t os_vm_offset_t;
24 typedef int os_vm_prot_t;
25
26 #define OS_VM_PROT_READ PROT_READ
27 #define OS_VM_PROT_WRITE PROT_WRITE
28 #define OS_VM_PROT_EXECUTE PROT_EXEC
29
30 #define OS_VM_DEFAULT_PAGESIZE 4096
31
32 #define POSIX_SIGS
33 #define HANDLER_ARGS int signal, siginfo_t *code, struct sigcontext *context
34 #define CODE(code) ((code) ? code->si_code : 0)
35
36 #define uc_sigmask sc_mask
37 int sc_reg(struct sigcontext *, int);
38
39 #endif /* _OPENBSD_OS_H_ */

  ViewVC Help
Powered by ViewVC 1.1.5