getcwd
======

POSIX specification:
 http://www.opengroup.org/onlinepubs/9699919799/functions/getcwd.html

Gnulib module: getcwd or getcwd-lgpl

Portability problems fixed by either Gnulib module getcwd or getcwd-lgpl:

  * On glibc platforms, getcwd (NULL, n) allocates memory for the result. On some other platforms, this call is not allowed.  Conversely, mingw fails to honor non-zero n.

  * On some platforms, the prototype for getcwd uses int instead of size_t for the size argument: mingw.

Portability problems fixed by Gnulib module getcwd:

  * This function is missing on some older platforms.

  * This function does not handle long file names (greater than PATH_MAX) correctly on some platforms.

Portability problems not fixed by Gnulib: