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.262 by root, Sun Aug 12 05:21:35 2018 UTC vs.
Revision 1.264 by root, Tue Aug 14 11:44:52 2018 UTC

17#include <sys/socket.h> 17#include <sys/socket.h>
18#include <sys/stat.h> 18#include <sys/stat.h>
19#include <limits.h> 19#include <limits.h>
20#include <fcntl.h> 20#include <fcntl.h>
21#include <sched.h> 21#include <sched.h>
22
23#if HAVE_SYS_SYSMACROS_H
24# include <sys/sysmacros.h>
25#endif
22 26
23#if _POSIX_MEMLOCK || _POSIX_MEMLOCK_RANGE || _POSIX_MAPPED_FILES 27#if _POSIX_MEMLOCK || _POSIX_MEMLOCK_RANGE || _POSIX_MAPPED_FILES
24# include <sys/mman.h> 28# include <sys/mman.h>
25#endif 29#endif
26 30
1628 1632
1629 REQ_SEND; 1633 REQ_SEND;
1630} 1634}
1631 1635
1632void 1636void
1633stat_xtime () 1637st_xtime ()
1634 ALIAS: 1638 ALIAS:
1635 stat_atime = 1 1639 st_atime = 1
1636 stat_mtime = 2 1640 st_mtime = 2
1637 stat_ctime = 4 1641 st_ctime = 4
1638 stat_xtime = 7 1642 st_xtime = 7
1639 PPCODE: 1643 PPCODE:
1640 EXTEND (SP, 3); 1644 EXTEND (SP, 3);
1641 if (ix & 1) PUSHs (newSVnv (PL_statcache.st_atime + 1e-9 * ATIMENSEC)); 1645 if (ix & 1) PUSHs (newSVnv (PL_statcache.st_atime + 1e-9 * ATIMENSEC));
1642 if (ix & 2) PUSHs (newSVnv (PL_statcache.st_mtime + 1e-9 * MTIMENSEC)); 1646 if (ix & 2) PUSHs (newSVnv (PL_statcache.st_mtime + 1e-9 * MTIMENSEC));
1643 if (ix & 4) PUSHs (newSVnv (PL_statcache.st_ctime + 1e-9 * CTIMENSEC)); 1647 if (ix & 4) PUSHs (newSVnv (PL_statcache.st_ctime + 1e-9 * CTIMENSEC));
1644 1648
1645void 1649void
1646stat_xtimensec () 1650st_xtimensec ()
1647 ALIAS: 1651 ALIAS:
1648 stat_atimensec = 1 1652 st_atimensec = 1
1649 stat_mtimensec = 2 1653 st_mtimensec = 2
1650 stat_ctimensec = 4 1654 st_ctimensec = 4
1651 stat_xtimensec = 7 1655 st_xtimensec = 7
1652 PPCODE: 1656 PPCODE:
1653 EXTEND (SP, 3); 1657 EXTEND (SP, 3);
1654 if (ix & 1) PUSHs (newSViv (ATIMENSEC)); 1658 if (ix & 1) PUSHs (newSViv (ATIMENSEC));
1655 if (ix & 2) PUSHs (newSViv (MTIMENSEC)); 1659 if (ix & 2) PUSHs (newSViv (MTIMENSEC));
1656 if (ix & 4) PUSHs (newSViv (CTIMENSEC)); 1660 if (ix & 4) PUSHs (newSViv (CTIMENSEC));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines