ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.xs
(Generate patch)

Comparing IO-AIO/AIO.xs (file contents):
Revision 1.162 by root, Sun Jan 10 23:05:12 2010 UTC vs.
Revision 1.163 by root, Sun Jan 10 23:44:02 2010 UTC

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
596static int 596static int
597mmap_free (pTHX_ SV *sv, MAGIC *mg) 597mmap_free (pTHX_ SV *sv, MAGIC *mg)
598{ 598{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines