This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Avoid local PLT for dirfd
On Tue, 28 Feb 2012, Jakub Jelinek wrote:
> I'd say you should not introduce __dirfd, but instead just
> add libc_hidden_proto (dirfd) (in include/dirent.h) and
> libc_hidden_def (dirfd) (in the dirfd.c).
> Then you don't need to adjust any users of that function.
Or you could simply restore the old include order in include/dirent.h, so
that <dirstream.h> is again included before <dirent/dirent.h> and so the
macro version of dirfd gets used as it did until the recent header
changes.
--
Joseph S. Myers
joseph@codesourcery.com