Sync getcwd with gnulib
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 20 Aug 2020 12:04:16 +0000 (09:04 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 2 Sep 2020 12:16:05 +0000 (09:16 -0300)
commitfcdbd910679997f257de70e9e49801dc4db93222
treea025ab7a3ac968496152fc2842c19c56d33cca64
parent23af890b3f04e80da783ba64e6b6d94822e01d54
Sync getcwd with gnulib

This is the first of a series of patches to sync with Gnulib commit
615b43e1f9.  This patch adopts most of the changes of Gnulib, except it
retains GETCWD_RETURN_TYPE and does not always use a 64-bit internal
API. These remaining discrepancies will be addressed in later patches
in this series.

Checked on x86_64-linux-gnu and i686-linux-gnu.
sysdeps/posix/getcwd.c
sysdeps/unix/sysv/linux/getcwd.c