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.148 by root, Wed Jun 17 01:14:48 2009 UTC vs.
Revision 1.150 by root, Wed Jul 1 08:11:24 2009 UTC

117 117
118#include "libeio/eio.h" 118#include "libeio/eio.h"
119 119
120#ifndef POSIX_FADV_NORMAL 120#ifndef POSIX_FADV_NORMAL
121# define POSIX_FADV_NORMAL 0 121# define POSIX_FADV_NORMAL 0
122# define NO_FADVISE 1
122#endif 123#endif
123 124
124#ifndef POSIX_FADV_SEQUENTIAL 125#ifndef POSIX_FADV_SEQUENTIAL
125# define POSIX_FADV_SEQUENTIAL 0 126# define POSIX_FADV_SEQUENTIAL 0
126#endif 127#endif
1192 1193
1193int 1194int
1194fadvise (aio_rfd fh, off_t offset, off_t length, IV advice) 1195fadvise (aio_rfd fh, off_t offset, off_t length, IV advice)
1195 PROTOTYPE: $$$$ 1196 PROTOTYPE: $$$$
1196 CODE: 1197 CODE:
1197{
1198 #if _XOPEN_SOURCE >= 600 1198#if _XOPEN_SOURCE >= 600 && !NO_FADVISE
1199 RETVAL = posix_fadvise (fh, offset, length, advice); 1199 RETVAL = posix_fadvise (fh, offset, length, advice);
1200 #else 1200#else
1201 RETVAL = errno = ENOSYS; 1201 RETVAL = errno = ENOSYS;
1202 #endif 1202#endif
1203}
1204 OUTPUT: 1203 OUTPUT:
1205 RETVAL 1204 RETVAL
1206 1205
1207ssize_t 1206ssize_t
1208sendfile (aio_wfd ofh, aio_rfd ifh, off_t offset, size_t count) 1207sendfile (aio_wfd ofh, aio_rfd ifh, off_t offset, size_t count)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines