<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/lib/xgetcwd.c, branch DU-FTS</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=DU-FTS</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=DU-FTS'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2003-01-10T22:45:14Z</updated>
<entry>
<title>Include xgetcwd.h.</title>
<updated>2003-01-10T22:45:14Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-10T22:45:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=784d409601c64fc701d3fce1cc3ac7015e74699c'/>
<id>urn:sha1:784d409601c64fc701d3fce1cc3ac7015e74699c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert some of the previous change; intead,</title>
<updated>2001-09-04T20:28:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2001-09-04T20:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c01a38db4d78aea9457d664430dbd287b0f71907'/>
<id>urn:sha1:c01a38db4d78aea9457d664430dbd287b0f71907</id>
<content type='text'>
fix the HAVE_GETCWD_NULL code to behave more like the
!HAVE_GETCWD_NULL code used to.

Include "xalloc.h".
(xgetcwd): Do not return NULL when memory is exhausted; instead,
invoke xalloc_die.
</content>
</entry>
<entry>
<title>Fix the !HAVE_GETCWD_NULL code to behave more</title>
<updated>2001-09-03T18:21:53Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2001-09-03T18:21:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cb2a0f5e50b56213986ec1f8116773465b0b8fdb'/>
<id>urn:sha1:cb2a0f5e50b56213986ec1f8116773465b0b8fdb</id>
<content type='text'>
like the HAVE_GETCWD_NULL code.
Include pathmax.h if not HAVE_GETCWD.
Do not include xalloc.h.
(INITIAL_BUFFER_SIZE): New symbol.
Do not use xmalloc / xrealloc, since the caller is responsible for
handling errors.  Preserve errno around `free' during failure.
Do not overrun buffer when using getwd.
</content>
</entry>
<entry>
<title>(xgetcwd): Use HAVE_GETCWD_NULL, not (defined __GLIBC__ &amp;&amp; __GLIBC__ &gt;= 2),</title>
<updated>2001-09-03T07:43:44Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2001-09-03T07:43:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ae60bce16e081e1ecbb527f7380af038f2ce075b'/>
<id>urn:sha1:ae60bce16e081e1ecbb527f7380af038f2ce075b</id>
<content type='text'>
to decide whether to use getcwd (NULL, 0).
</content>
</entry>
<entry>
<title>fix typo</title>
<updated>2001-09-01T06:13:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2001-09-01T06:13:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=414d5f13bee6e7e833784e264ddff902b0a4bcae'/>
<id>urn:sha1:414d5f13bee6e7e833784e264ddff902b0a4bcae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(xgetcwd): Reorganize to avoid some duplication.</title>
<updated>2001-08-31T11:39:16Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2001-08-31T11:39:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=72ee797c4477d0e09efbba7c3bcc1d9d621be8f7'/>
<id>urn:sha1:72ee797c4477d0e09efbba7c3bcc1d9d621be8f7</id>
<content type='text'>
Use an initial, malloc'd, buffer of length 128 rather than
a statically allocated one of length 1024.
</content>
</entry>
<entry>
<title>Don't include pathmax.h.</title>
<updated>2001-08-31T10:36:12Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2001-08-31T10:36:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ee65e66c6cc7833fccec6f2a0d18ea88d5456e01'/>
<id>urn:sha1:ee65e66c6cc7833fccec6f2a0d18ea88d5456e01</id>
<content type='text'>
Include stdlib.h and unistd.h if available.
Include xalloc.h.
(xmalloc, xstrdup, free): Remove decls.
(xgetcwd): Don't assume sizes fit in unsigned.
Check for overflow when computing sizes.
Simplify reallocation code.
</content>
</entry>
<entry>
<title>(xgetcwd) [defined __GLIBC__ &amp;&amp; __GLIBC__ &gt;= 2]:</title>
<updated>2001-08-12T20:11:39Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2001-08-12T20:11:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=79dbd85e74360835c284b3c064ba5b356dbf3a28'/>
<id>urn:sha1:79dbd85e74360835c284b3c064ba5b356dbf3a28</id>
<content type='text'>
Simply `return getcwd (NULL, 0);'.
[! (defined __GLIBC__ &amp;&amp; __GLIBC__ &gt;= 2)]:
Use 1300 as initial value for length, not PATH_MAX.
</content>
</entry>
<entry>
<title>(xgetcwd): If the required pathname length is smaller</title>
<updated>2000-06-21T20:16:03Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2000-06-21T20:16:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=978bf5f7509a9e48078886fd62d7a258dab12efc'/>
<id>urn:sha1:978bf5f7509a9e48078886fd62d7a258dab12efc</id>
<content type='text'>
than 1024, return a memory chunk of least possible size, instead
of size PATH_MAX + 2. In the loop, increment the size proportionally.
Use free/xmalloc instead of xrealloc to avoid copying for very long paths.
</content>
</entry>
<entry>
<title>libitize</title>
<updated>1996-11-04T18:11:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>1996-11-04T18:11:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2876587b559036939a92df7bb1c7152ef0a462b6'/>
<id>urn:sha1:2876587b559036939a92df7bb1c7152ef0a462b6</id>
<content type='text'>
</content>
</entry>
</feed>
