Bug#313219: gnome-vfs2 crashes in read_entire_file with HAL and Linux 2.4

Ivan Wong Ivan Wong <email@ivanwong.info>, 313219@bugs.debian.org
Wed, 15 Jun 2005 01:24:11 +0800


> 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@ivanwong.info>
GPG: 1024D/7775FDBB: CE88 DBE0 5AF3 D4AC 91F5  6C0E 2C84 B2AD 7775 FDBB