getcwd: fix mingw bugs
[gnulib.git] / doc / posix-functions / getcwd.texi
1 @node getcwd
2 @section @code{getcwd}
3 @findex getcwd
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getcwd.html}
6
7 Gnulib module: getcwd or getcwd-lgpl
8
9 Portability problems fixed by either Gnulib module @code{getcwd} or
10 @code{getcwd-lgpl}:
11 @itemize
12 @item
13 On glibc platforms, @code{getcwd (NULL, n)} allocates memory for the result.
14 On some other platforms, this call is not allowed.  Conversely, mingw fails
15 to honor non-zero @code{n}.
16 @item
17 On some platforms, the prototype for @code{getcwd} uses @code{int}
18 instead of @code{size_t} for the size argument:
19 mingw.
20 @end itemize
21
22 Portability problems fixed by Gnulib module @code{getcwd}:
23 @itemize
24 @item
25 This function is missing on some older platforms.
26 @item
27 This function does not handle long file names (greater than @code{PATH_MAX})
28 correctly on some platforms.
29 @end itemize
30
31 Portability problems not fixed by Gnulib:
32 @itemize
33 @end itemize