getcwd-lgpl 404 Bytes
Newer Older
Eric Blake's avatar
Eric Blake committed
1
Description:
2
Ensure getcwd(NULL, 0) returns a buffer allocated by the malloc() function.
Eric Blake's avatar
Eric Blake committed
3 4 5 6 7 8 9

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

Depends-on:
unistd
10
strdup          [test $REPLACE_GETCWD = 1]
Eric Blake's avatar
Eric Blake committed
11 12 13

configure.ac:
gl_FUNC_GETCWD_LGPL
14 15 16
if test $REPLACE_GETCWD = 1; then
  AC_LIBOBJ([getcwd-lgpl])
fi
Eric Blake's avatar
Eric Blake committed
17 18 19 20 21 22 23 24 25 26 27 28
gl_UNISTD_MODULE_INDICATOR([getcwd])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Eric Blake