<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/cat.c, branch v6.2</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.2</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2006-06-08T20:13:37Z</updated>
<entry>
<title>Ensure that cat works with any of the options, -A -v -e -E -T,</title>
<updated>2006-06-08T20:13:37Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-06-08T20:13:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=790892db657ac79b0ba5f7a69cc7e70eb4fed8e0'/>
<id>urn:sha1:790892db657ac79b0ba5f7a69cc7e70eb4fed8e0</id>
<content type='text'>
when applied to files in /proc and /sys, even when the FIONREAD
ioctl produces nonsensical results.  Before this change, cat would
produce no output (or truncated output), for some linux kernels.

* src/cat.c (write_pending): New function, factored out of cat.
(cat): Also interpret a negative ioctl/FIONREAD count as indicating
that there are bytes to read.  Some versions of linux-2.6.16 do that.
Write any pending output before returning.
Reported by Dan Jacobson in &lt;http://bugs.debian.org/370583&gt;.
* NEWS: Mention this bug fix.
* tests/misc/cat-proc: New file.  Test for the above.
* tests/misc/Makefile.am (TESTS): Add cat-proc.
</content>
</entry>
<entry>
<title>Undo previous change.</title>
<updated>2005-12-14T18:09:04Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-12-14T18:09:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=dcc1bc175949754fe5b2296445446bd127f57597'/>
<id>urn:sha1:dcc1bc175949754fe5b2296445446bd127f57597</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(main): Check for close (STDOUT_FILENO) failure.</title>
<updated>2005-12-14T01:39:46Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-12-14T01:39:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f5e1bca49d27e39a24026b903287ad47ae66c53c'/>
<id>urn:sha1:f5e1bca49d27e39a24026b903287ad47ae66c53c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(usage, main, long_options) [O_BINARY]:</title>
<updated>2005-07-11T18:21:11Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-07-11T18:21:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8770c00ef45e3c6c4dd3d5ce1e55a6fb1adb13dc'/>
<id>urn:sha1:8770c00ef45e3c6c4dd3d5ce1e55a6fb1adb13dc</id>
<content type='text'>
Remove support for -B.  Use same rules as other programs to decide
whether to use binary I/O, except that the -bensAE options always
select text mode.
(main): Avoid setmode; use POSIX-specified routines instead.
</content>
</entry>
<entry>
<title>Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.</title>
<updated>2005-07-09T07:37:58Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-07-09T07:37:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8bf75032ee4a518616d0e2af818182450db574c6'/>
<id>urn:sha1:8bf75032ee4a518616d0e2af818182450db574c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Include stropt.h if available.</title>
<updated>2005-07-08T22:54:15Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-07-08T22:54:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=db7d10bd9d755f4dfbd45aac780bca6b9dd10626'/>
<id>urn:sha1:db7d10bd9d755f4dfbd45aac780bca6b9dd10626</id>
<content type='text'>
Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE
to decide whether to include &lt;sys/ioctl.h&gt;.
</content>
</entry>
<entry>
<title>Don't embed `this'-style quotes in format strings.</title>
<updated>2005-06-16T21:40:43Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-06-16T21:40:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0cda9b5eb8a8b9e297a95817f02bda12c21de94e'/>
<id>urn:sha1:0cda9b5eb8a8b9e297a95817f02bda12c21de94e</id>
<content type='text'>
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
</content>
</entry>
<entry>
<title>Update FSF postal mail address.</title>
<updated>2005-05-14T07:58:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-05-14T07:58:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=44d59bb168eaf820bdfd13ee9df442cde795f9c7'/>
<id>urn:sha1:44d59bb168eaf820bdfd13ee9df442cde795f9c7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update FSF postal mail address.</title>
<updated>2005-05-14T06:57:06Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-05-14T06:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c0c815af8db441526ef112700b9185df6006c771'/>
<id>urn:sha1:c0c815af8db441526ef112700b9185df6006c771</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(close_stdout_wrapper): Likewise.</title>
<updated>2005-04-09T16:29:29Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-04-09T16:29:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=493aba2ae5bb9b3c4281c693ee6fe88526fe5b82'/>
<id>urn:sha1:493aba2ae5bb9b3c4281c693ee6fe88526fe5b82</id>
<content type='text'>
Don't close STDOUT_FILENO explicitly; close_stdout does it.
</content>
</entry>
</feed>
