Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* manual/filesys.texi (Working Directory): Fix last patch.
	Patch by Martin Buchholz  <martin@xemacs.org>.

2000-03-10  Andreas Jaeger  <aj@suse.de>
  • Loading branch information
Andreas Jaeger committed Mar 10, 2000
1 parent 0aa9fad commit d1d62b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* manual/creature.texi (Feature Test Macros): Fix language.
Expand Down
11 changes: 6 additions & 5 deletions manual/filesys.texi
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,18 @@ using only the standard behavior of @code{getcwd}:

@smallexample
char *
gnu_getcwd (size_t size)
gnu_getcwd ()
@{
size_t size = 100;
while (1)
@{
char *buffer = (char *) xmalloc (size);
char *value = getcwd (buffer, size);
if (value == buffer)
return value;
if (getcwd (buffer, size) == buffer)
return buffer;
free (buffer);
if (errno != ERANGE)
return value;
return 0;
size *= 2;
@}
@}
Expand Down

0 comments on commit d1d62b5

Please sign in to comment.