… | |
… | |
18 | #include <fcntl.h> |
18 | #include <fcntl.h> |
19 | #include <sched.h> |
19 | #include <sched.h> |
20 | |
20 | |
21 | #if _POSIX_MEMLOCK || _POSIX_MAPPED_FILES |
21 | #if _POSIX_MEMLOCK || _POSIX_MAPPED_FILES |
22 | # include <sys/mman.h> |
22 | # include <sys/mman.h> |
23 | #endif |
|
|
24 | |
|
|
25 | #if !_POSIX_MAPPED_FILES |
|
|
26 | # define mmap(addr,length,prot,flags,fd,offs) (errno = ENOSYS, -1) |
|
|
27 | # define munmap(addr,length) (errno = ENOSYS, -1) |
|
|
28 | #endif |
23 | #endif |
29 | |
24 | |
30 | /* perl namespace pollution */ |
25 | /* perl namespace pollution */ |
31 | #undef VERSION |
26 | #undef VERSION |
32 | |
27 | |
… | |
… | |
589 | create_respipe (); |
584 | create_respipe (); |
590 | } |
585 | } |
591 | |
586 | |
592 | /*****************************************************************************/ |
587 | /*****************************************************************************/ |
593 | |
588 | |
|
|
589 | #if !_POSIX_MAPPED_FILES |
|
|
590 | # define mmap(addr,length,prot,flags,fd,offs) (errno = ENOSYS, -1) |
|
|
591 | # define munmap(addr,length) (errno = ENOSYS, -1) |
|
|
592 | #endif |
|
|
593 | |
594 | #define MMAP_MAGIC PERL_MAGIC_ext |
594 | #define MMAP_MAGIC PERL_MAGIC_ext |
595 | |
595 | |
596 | static int |
596 | static int |
597 | mmap_free (pTHX_ SV *sv, MAGIC *mg) |
597 | mmap_free (pTHX_ SV *sv, MAGIC *mg) |
598 | { |
598 | { |