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.267 by root, Sat Aug 25 19:25:32 2018 UTC vs.
Revision 1.268 by root, Thu Nov 29 19:49:48 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_MKDEV_H
24# include <sys/mkdev.h>
25#elif HAVE_SYS_SYSMACROS_H
26# include <sys/sysmacros.h>
27#endif
28
29#if _POSIX_MEMLOCK || _POSIX_MEMLOCK_RANGE || _POSIX_MAPPED_FILES
30# include <sys/mman.h>
31#endif
32 22
33/* the incompetent fool that created musl keeps __linux__, refuses 23/* the incompetent fool that created musl keeps __linux__, refuses
34 * to implement any linux standard apis, and also has no way to test 24 * to implement any linux standard apis, and also has no way to test
35 * for his broken iplementation. don't complain to me if this fails 25 * for his broken iplementation. don't complain to me if this fails
36 * for you. 26 * for you.
116 106
117/*****************************************************************************/ 107/*****************************************************************************/
118 108
119#include "config.h" 109#include "config.h"
120 110
111#if HAVE_SYS_MKDEV_H
112# include <sys/mkdev.h>
113#elif HAVE_SYS_SYSMACROS_H
114# include <sys/sysmacros.h>
115#endif
116
117#if _POSIX_MEMLOCK || _POSIX_MEMLOCK_RANGE || _POSIX_MAPPED_FILES
118# include <sys/mman.h>
119#endif
120
121#if HAVE_ST_XTIMENSEC 121#if HAVE_ST_XTIMENSEC
122# define ATIMENSEC PL_statcache.st_atimensec 122# define ATIMENSEC PL_statcache.st_atimensec
123# define MTIMENSEC PL_statcache.st_mtimensec 123# define MTIMENSEC PL_statcache.st_mtimensec
124# define CTIMENSEC PL_statcache.st_ctimensec 124# define CTIMENSEC PL_statcache.st_ctimensec
125#elif HAVE_ST_XTIMESPEC 125#elif HAVE_ST_XTIMESPEC
1273 const_eio (SEEK_CUR) 1273 const_eio (SEEK_CUR)
1274 const_eio (SEEK_END) 1274 const_eio (SEEK_END)
1275 1275
1276 const_eio (MCL_FUTURE) 1276 const_eio (MCL_FUTURE)
1277 const_eio (MCL_CURRENT) 1277 const_eio (MCL_CURRENT)
1278 const_eio (MCL_ONFAULT)
1278 1279
1279 const_eio (MS_ASYNC) 1280 const_eio (MS_ASYNC)
1280 const_eio (MS_INVALIDATE) 1281 const_eio (MS_INVALIDATE)
1281 const_eio (MS_SYNC) 1282 const_eio (MS_SYNC)
1282 1283

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines