diff options
author | Jim Meyering <jim@meyering.net> | 1994-03-25 23:38:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-03-25 23:38:00 +0000 |
commit | 8bf5a6ed183fe03026e0f24b751a8303860c2d55 (patch) | |
tree | f3b7990388d4762e89c6f1cbf6580dbe30cee2aa /src/cat.c | |
parent | 8bcd22c5104e44227dccd458e6e50940d9e9a462 (diff) | |
download | coreutils-8bf5a6ed183fe03026e0f24b751a8303860c2d55.tar.xz |
.
Diffstat (limited to 'src/cat.c')
-rw-r--r-- | src/cat.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -288,7 +288,13 @@ main (argc, argv) out_ino = stat_buf.st_ino; } else - check_redirection = 0; + { + check_redirection = 0; +#ifdef lint /* Suppress `used before initialized' warning. */ + out_dev = 0; + out_ino = 0; +#endif + } /* Check if any of the input files are the same as the output file. */ @@ -549,9 +555,11 @@ cat (inbuf, insize, outbuf, outsize, quote, HP-UX returns ENOTTY on pipes. SunOS returns EINVAL and More/BSD returns ENODEV on special files - like /dev/null. */ + like /dev/null. + Irix-5 returns ENOSYS on pipes. */ if (errno == EOPNOTSUPP || errno == ENOTTY - || errno == EINVAL || errno == ENODEV) + || errno == EINVAL || errno == ENODEV + || errno == ENOSYS) use_fionread = 0; else { |