summaryrefslogtreecommitdiff
path: root/modules/getcwd-lgpl
blob: ff1385725cdb270c93df9452997fef1457d184e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description:
Ensure getcwd(NULL, 0) returns a buffer allocated by the malloc() function.

Files:
lib/getcwd-lgpl.c
m4/getcwd.m4

Depends-on:
unistd
free-posix      [test $REPLACE_GETCWD = 1]
strdup          [test $REPLACE_GETCWD = 1]

configure.ac:
gl_FUNC_GETCWD_LGPL
if test $REPLACE_GETCWD = 1; then
  AC_LIBOBJ([getcwd-lgpl])
fi
gl_UNISTD_MODULE_INDICATOR([getcwd])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Eric Blake