> I think I know why now. It's -D_FILE_OFFSET_BITS=64. i.e.
>
> gcc -D_POSIX_C_SOURCE=200112L -D_FILE_OFFSET_BITS=64 a.c
Look further, I think /usr/include/features.h gives some hints:
# ifndef __USE_FILE_OFFSET64
extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len,
int __advise) __THROW;
# else
# ifdef __REDIRECT
extern int __REDIRECT (posix_fadvise, (int __fd, __off64_t __offset,
__off64_t __len, int __advise)
__THROW,
posix_fadvise64);
# else
# define posix_fadvise posix_fadvise64
# endif
what about posix_fadvise64() with kernel 2.4?
Cheers,
--
Ivan, Wong Yat Cheung <[EMAIL PROTECTED]>
GPG: 1024D/7775FDBB: CE88 DBE0 5AF3 D4AC 91F5 6C0E 2C84 B2AD 7775 FDBB
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]