… | |
… | |
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 | |
931 | void |
931 | void |
932 | reinit () |
932 | reinit () |
933 | PROTOTYPE: |
933 | PROTOTYPE: |
934 | CODE: |
|
|
935 | reinit (); |
|
|
936 | |
934 | |
937 | void |
935 | void |
938 | max_poll_reqs (unsigned int nreqs) |
936 | max_poll_reqs (unsigned int nreqs) |
939 | PROTOTYPE: $ |
937 | PROTOTYPE: $ |
940 | CODE: |
938 | CODE: |
… | |
… | |
994 | void |
992 | void |
995 | aio_fsync (SV *fh, SV *callback=&PL_sv_undef) |
993 | aio_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 | |
1595 | ssize_t |
1594 | IV |
1596 | sendfile (aio_wfd ofh, aio_rfd ifh, off_t offset, size_t count) |
1595 | sendfile (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 |