(is_ENAMETOOLONG): New macro.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 Dec 2004 07:12:14 +0000 (07:12 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 Dec 2004 07:12:14 +0000 (07:12 +0000)
commit3b8fa2ba330127e0db79d101a8fcdca7ca868820
tree9f2e84bd35546c6f2722b90f1544e9daa624e2e1
parent52a0364803e279e98b3afd0cfc8dbf8b5afa2c78
(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