/[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.1 - (show annotations)
Thu Dec 6 19:15:44 2001 UTC (12 years, 4 months ago) by pmai
Branch: MAIN
CVS Tags: snapshot-2003-10, snapshot-2004-10, release-18e-base, snapshot-2004-08, snapshot-2004-09, remove_negative_zero_not_zero, snapshot-2004-05, snapshot-2004-06, snapshot-2004-07, dynamic-extent-base, LINKAGE_TABLE, PRE_LINKAGE_TABLE, mod-arith-base, sparc_gencgc_merge, snapshot-2004-12, snapshot-2004-11, amd64-merge-start, release-18e-pre2, prm-before-macosx-merge-tag, cold-pcl-base, snapshot-2003-11, release-19a-base, sparc_gencgc, snapshot-2003-12, release-19a-pre1, release-19a-pre3, release-19a-pre2, release-19a, UNICODE-BASE, release-18e, snapshot-2004-04, snapshot-2005-01, lisp-executable-base, release-18e-pre1
Branch point for: mod-arith-branch, sparc_gencgc_branch, RELENG_18, dynamic-extent, UNICODE-BRANCH, lisp-executable, release-18e-branch, cold-pcl, release-19a-branch
File MIME type: text/plain
Added specialised port to OpenBSD (2.9).  Many parts of the original
code which were previously conditionalized on :FreeBSD, are now
conditionalized on :BSD instead, with the :BSD feature now implying a
4.4BSD(lite2) derived OS.  This should make future BSD-ports easier.
FreeBSD and OpenBSD are differentiated by having either :FreeBSD or
:OpenBSD on the features list.

Currently the OpenBSD port does not have working ELF support, because
OpenBSD 2.9 is still non-ELF by default.  So don't put ELF on the
features list when building for OpenBSD, or fix the code to work
correctly in this case instead.
1 /*
2
3 $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/OpenBSD-os.h,v 1.1 2001/12/06 19:15:44 pmai 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 #include <sys/types.h>
11 #include <sys/mman.h>
12 #include <sys/signal.h>
13
14 #define MAP_ANONYMOUS MAP_ANON
15 #define MAP_VARIABLE 0
16
17 typedef caddr_t os_vm_address_t;
18 typedef vm_size_t os_vm_size_t;
19 typedef off_t os_vm_offset_t;
20 typedef int os_vm_prot_t;
21
22 #define OS_VM_PROT_READ PROT_READ
23 #define OS_VM_PROT_WRITE PROT_WRITE
24 #define OS_VM_PROT_EXECUTE PROT_EXEC
25
26 #define OS_VM_DEFAULT_PAGESIZE 4096
27
28 #define POSIX_SIGS
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);

  ViewVC Help
Powered by ViewVC 1.1.5