using _FILE_OFFSET_BITS=64 with a non-gcc compiler
Bruno Haible
haible@ilog.fr
Fri Nov 9 10:26:00 GMT 2001
Ulrich Drepper writes:
> This is creating penalties for every single user since the PLT and GOT
> and whatelse is growing.
How about yet another approach:
In <dirent.h> we replace the piece of code (used only if
defined __USE_FILE_OFFSET64 && !defined __REDIRECT)
#define readdir readdir64
with
static inline struct dirent *readdir (DIR *__dirp)
{
return (struct dirent *) readdir64 (__dirp);
}
This is just as namespace clean as <sys/stat.h> is, and has no effect
for people using GNU C, neither in libc.so nor in the include files.
Bruno
More information about the Libc-alpha
mailing list