/[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.2 - (show annotations)
Thu Jan 13 19:55:00 2005 UTC (9 years, 3 months ago) by fgilham
Branch: MAIN
CVS Tags: release-19b-pre1, release-19b-pre2, snapshot-2005-07, snapshot-2005-03, release-19b-base, snapshot-2005-06, snapshot-2005-05, snapshot-2005-04, ppc_gencgc_snap_2005-05-14, snapshot-2005-02, snapshot-2005-09, snapshot-2005-08
Branch point for: release-19b-branch, ppc_gencgc_branch
Changes since 1.1: +7 -1 lines
File MIME type: text/plain
Add #ifndef _FOO_H_ etc. lines to all .h files.  Moved a few lines in
lisp.c into the correct <foo>-os.h files.
1 /*
2
3 $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/OpenBSD-os.h,v 1.2 2005/01/13 19:55:00 fgilham 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