3 ;;; This code is in the public domain.
5 ;;; The cmucl implementation of simple-streams was done by Paul Foley,
6 ;;; who placed the code in the public domain. Sbcl port by Rudi
9 ;;; Some constants that are not (yet?) in sbcl itself. Basically,
10 ;;; constants needed for calling mmap from sbcl.
12 ;;; TODO (Rudi 2003-05-12): The contents of this file, along with
13 ;;; unix.lisp, should presumably end up somewhere else, either in sbcl
14 ;;; itself or in sb-posix.
16 ("stdio.h" "sys/types.h" "sys/stat.h" "fcntl.h" "errno.h" "sys/mman.h")
18 ((:integer eacces "EACCES" "Error code for access error")
19 (:integer prot-none "PROT_NONE" "mmap: no protection")
20 (:integer prot-read "PROT_READ" "mmap: read protection")
21 (:integer prot-write "PROT_WRITE" "mmap: write protection")
22 (:integer prot-exec "PROT_EXEC" "mmap: execute protection")
23 (:integer map-shared "MAP_SHARED" "mmap: shared memory")
24 (:integer map-private "MAP_PRIVATE" "mmap: private mapping")
25 (:integer map-fixed "MAP_FIXED" "mmap: map at given location"))