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.183 by root, Tue Jul 5 09:24:11 2011 UTC vs.
Revision 1.184 by root, Tue Jul 5 20:34:42 2011 UTC

667 grp->sv2 = 0; 667 grp->sv2 = 0;
668 668
669 eio_grp_cancel (grp); 669 eio_grp_cancel (grp);
670} 670}
671 671
672static void
673create_respipe (void) 672static void create_respipe (void)
674{ 673{
675 if (s_epipe_renew (&respipe)) 674 if (s_epipe_renew (&respipe))
676 croak ("IO::AIO: unable to initialize result pipe"); 675 croak ("IO::AIO: unable to initialize result pipe");
677} 676}
678 677
732# define MAP_FIXED 0 731# define MAP_FIXED 0
733#endif 732#endif
734 733
735#define MMAP_MAGIC PERL_MAGIC_ext 734#define MMAP_MAGIC PERL_MAGIC_ext
736 735
737static int
738mmap_free (pTHX_ SV *sv, MAGIC *mg) 736static int mmap_free (pTHX_ SV *sv, MAGIC *mg)
739{ 737{
740 int old_errno = errno; 738 int old_errno = errno;
741 munmap (mg->mg_ptr, (size_t)mg->mg_obj); 739 munmap (mg->mg_ptr, (size_t)mg->mg_obj);
742 errno = old_errno; 740 errno = old_errno;
743 741
759 0, 0, 0, 0, mmap_free 757 0, 0, 0, 0, mmap_free
760}; 758};
761 759
762/*****************************************************************************/ 760/*****************************************************************************/
763 761
764static SV *
765get_cb (SV *cb_sv) 762static SV * get_cb (SV *cb_sv)
766{ 763{
767 SvGETMAGIC (cb_sv); 764 SvGETMAGIC (cb_sv);
768 return SvOK (cb_sv) ? s_get_cv_croak (cb_sv) : 0; 765 return SvOK (cb_sv) ? s_get_cv_croak (cb_sv) : 0;
769} 766}
770 767

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines