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.190 by root, Mon Jul 18 02:02:26 2011 UTC vs.
Revision 1.194 by root, Fri Jul 29 08:35:36 2011 UTC

918 918
919 aio_stash = gv_stashpv ("IO::AIO" , 1); 919 aio_stash = gv_stashpv ("IO::AIO" , 1);
920 aio_req_stash = gv_stashpv ("IO::AIO::REQ", 1); 920 aio_req_stash = gv_stashpv ("IO::AIO::REQ", 1);
921 aio_grp_stash = gv_stashpv ("IO::AIO::GRP", 1); 921 aio_grp_stash = gv_stashpv ("IO::AIO::GRP", 1);
922 922
923 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 923 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ > const_iv; civ--)
924 newCONSTSUB (aio_stash, (char *)civ->name, newSViv (civ->iv)); 924 newCONSTSUB (aio_stash, (char *)civ[-1].name, newSViv (civ[-1].iv));
925 925
926 newCONSTSUB (aio_stash, "PAGESIZE", newSViv (PAGESIZE)); 926 newCONSTSUB (aio_stash, "PAGESIZE", newSViv (PAGESIZE));
927 927
928 reinit (); 928 reinit ();
929} 929}
930 930
931void 931void
932reinit () 932reinit ()
933 PROTOTYPE: 933 PROTOTYPE:
934 CODE:
935 reinit ();
936 934
937void 935void
938max_poll_reqs (unsigned int nreqs) 936max_poll_reqs (unsigned int nreqs)
939 PROTOTYPE: $ 937 PROTOTYPE: $
940 CODE: 938 CODE:
994void 992void
995aio_fsync (SV *fh, SV *callback=&PL_sv_undef) 993aio_fsync (SV *fh, SV *callback=&PL_sv_undef)
996 ALIAS: 994 ALIAS:
997 aio_fsync = EIO_FSYNC 995 aio_fsync = EIO_FSYNC
998 aio_fdatasync = EIO_FDATASYNC 996 aio_fdatasync = EIO_FDATASYNC
997 aio_syncfs = EIO_SYNCFS
999 PPCODE: 998 PPCODE:
1000{ 999{
1001 int fd = s_fileno_croak (fh, 0); 1000 int fd = s_fileno_croak (fh, 0);
1002 dREQ; 1001 dREQ;
1003 1002
1590 CODE: 1589 CODE:
1591 RETVAL = posix_fadvise (fh, offset, length, advice); 1590 RETVAL = posix_fadvise (fh, offset, length, advice);
1592 OUTPUT: 1591 OUTPUT:
1593 RETVAL 1592 RETVAL
1594 1593
1595ssize_t 1594IV
1596sendfile (aio_wfd ofh, aio_rfd ifh, off_t offset, size_t count) 1595sendfile (aio_wfd ofh, aio_rfd ifh, off_t offset, size_t count)
1597 CODE: 1596 CODE:
1598 RETVAL = eio_sendfile_sync (ofh, ifh, offset, count); 1597 RETVAL = eio_sendfile_sync (ofh, ifh, offset, count);
1599 OUTPUT: 1598 OUTPUT:
1600 RETVAL 1599 RETVAL

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines