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.74 by root, Wed Oct 25 17:57:30 2006 UTC vs.
Revision 1.75 by root, Thu Oct 26 06:44:48 2006 UTC

47/* used for struct dirent, AIX doesn't provide it */ 47/* used for struct dirent, AIX doesn't provide it */
48#ifndef NAME_MAX 48#ifndef NAME_MAX
49# define NAME_MAX 4096 49# define NAME_MAX 4096
50#endif 50#endif
51 51
52#ifndef PTHREAD_STACK_MIN
53/* care for broken platforms, e.g. windows */
54# define PTHREAD_STACK_MIN 16384
55#endif
56
52#if __ia64 57#if __ia64
53# define STACKSIZE 65536 58# define STACKSIZE 65536
54#elif __i386 || __x86_64 /* 16k is unreasonably high :( */ 59#elif __i386 || __x86_64 /* 16k is unreasonably high :( */
55# define STACKSIZE PTHREAD_STACK_MIN 60# define STACKSIZE PTHREAD_STACK_MIN
56#else 61#else
702#if !HAVE_FDATASYNC 707#if !HAVE_FDATASYNC
703# define fdatasync fsync 708# define fdatasync fsync
704#endif 709#endif
705 710
706#if !HAVE_READAHEAD 711#if !HAVE_READAHEAD
707# define readahead aio_readahead 712# define readahead(fd,offset,count) aio_readahead (fd, offset, count, self)
708 713
709static ssize_t readahead (int fd, off_t offset, size_t count) 714static ssize_t aio_readahead (int fd, off_t offset, size_t count, worker *self)
710{ 715{
711 dBUF; 716 dBUF;
712 717
713 while (count > 0) 718 while (count > 0)
714 { 719 {
719 count -= len; 724 count -= len;
720 } 725 }
721 726
722 errno = 0; 727 errno = 0;
723} 728}
729
724#endif 730#endif
725 731
726#if !HAVE_READDIR_R 732#if !HAVE_READDIR_R
727# define readdir_r aio_readdir_r 733# define readdir_r aio_readdir_r
728 734

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines