using _FILE_OFFSET_BITS=64 with a non-gcc compiler
Bruno Haible
haible@ilog.fr
Tue Nov 6 23:21:00 GMT 2001
Ulrich Drepper writes:
> > Are 'readdir64' and 'getrlimit64' defined or reserved in the standard?
>
> These obviously are defined.
>
> > Are 'dirent64' and 'rlimit64' defined or reserved in the standard?
>
> These are names of structs. Identifiers of these names are not defined.
I see. How about another approach.
- In every file which defines a __readdir64 function we also add
'__lfs_readdir' as a strong alias of it.
- In <dirent.h> we replace the piece of code (used only if
defined __USE_FILE_OFFSET64 && !defined __REDIRECT)
#define readdir readdir64
with
#define readdir __lfs_readdir
extern struct dirent *readdir (DIR *__dirp) __THROW;
Would that be namespace clean in your opinion? Shall I prepare a patch
for it?
Bruno
More information about the Libc-alpha
mailing list