(is_ENAMETOOLONG): New macro.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 Dec 2004 07:26:53 +0000 (07:26 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 Dec 2004 07:26:53 +0000 (07:26 +0000)
commitf84e1c2d6a3fdcc1768f745714ab889a84415dc7
treecd9d7d093afb799d14127e78ef5c16a29d8bcfb8
parent112ca20edbdbbede4ffeac64892bb4fc5e1b04d6
(is_ENAMETOOLONG): New macro.
(__getcwd.c): Don't restore errno; glibc doesn't.
[HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
first, falling back to our code only if its results look suspicious.
Ensure that the resulting buffer is only as large as necessary.
lib/getcwd.c