This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: using _FILE_OFFSET_BITS=64 with a non-gcc compiler


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]