mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
Update.
* manual/filesys.texi (Working Directory): Fix last patch. Patch by Martin Buchholz <martin@xemacs.org>. 2000-03-10 Andreas Jaeger <aj@suse.de>
This commit is contained in:
parent
0aa9fad6d0
commit
d1d62b539d
@ -1,3 +1,8 @@
|
|||||||
|
2000-03-10 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* manual/filesys.texi (Working Directory): Fix last patch.
|
||||||
|
Patch by Martin Buchholz <martin@xemacs.org>.
|
||||||
|
|
||||||
2000-03-10 Andreas Jaeger <aj@suse.de>
|
2000-03-10 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
* manual/creature.texi (Feature Test Macros): Fix language.
|
* manual/creature.texi (Feature Test Macros): Fix language.
|
||||||
|
@ -91,17 +91,18 @@ using only the standard behavior of @code{getcwd}:
|
|||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
char *
|
char *
|
||||||
gnu_getcwd (size_t size)
|
gnu_getcwd ()
|
||||||
@{
|
@{
|
||||||
|
size_t size = 100;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
@{
|
@{
|
||||||
char *buffer = (char *) xmalloc (size);
|
char *buffer = (char *) xmalloc (size);
|
||||||
char *value = getcwd (buffer, size);
|
if (getcwd (buffer, size) == buffer)
|
||||||
if (value == buffer)
|
return buffer;
|
||||||
return value;
|
|
||||||
free (buffer);
|
free (buffer);
|
||||||
if (errno != ERANGE)
|
if (errno != ERANGE)
|
||||||
return value;
|
return 0;
|
||||||
size *= 2;
|
size *= 2;
|
||||||
@}
|
@}
|
||||||
@}
|
@}
|
||||||
|
Loading…
Reference in New Issue
Block a user