From 8bf5a6ed183fe03026e0f24b751a8303860c2d55 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 25 Mar 1994 23:38:00 +0000 Subject: . --- src/cat.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/cat.c') diff --git a/src/cat.c b/src/cat.c index 63128e053..23371745b 100644 --- a/src/cat.c +++ b/src/cat.c @@ -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 { -- cgit v1.2.3-54-g00ecf