a8dba967ec21a941aae1fc6f9e4397761bb06590
[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 other platforms, this call is not allowed.
15 @end itemize
16
17 Portability problems fixed by Gnulib module @code{getcwd}:
18 @itemize
19 @item
20 This function is missing on some older platforms.
21 @item
22 This function does not handle long file names (greater than @code{PATH_MAX})
23 correctly on some platforms.
24 @end itemize
25
26 Portability problems not fixed by Gnulib:
27 @itemize
28 @end itemize