File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / sys-mmap.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (7 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

    1: #ifndef LI_SYS_MMAP_H
    2: #define LI_SYS_MMAP_H
    3: #include "first.h"
    4: 
    5: #if defined(HAVE_SYS_MMAN_H)
    6: # include <sys/mman.h>
    7: #else /* HAVE_SYS_MMAN_H */
    8: 
    9: # define PROT_SHARED 0
   10: # define MAP_SHARED 0
   11: # define PROT_READ 0
   12: 
   13: # define mmap(a, b, c, d, e, f) (-1)
   14: # define munmap(a, b) (-1)
   15: 
   16: #endif /* HAVE_SYS_MMAN_H */
   17: 
   18: /* NetBSD 1.3.x needs it; also make it available if mmap() is not present */
   19: #if !defined(MAP_FAILED)
   20: # define MAP_FAILED ((char*)-1)
   21: #endif
   22: 
   23: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>