head(1): check for stdio errors
authorcheloha <cheloha@openbsd.org>
Mon, 7 Feb 2022 17:19:57 +0000 (17:19 +0000)
committercheloha <cheloha@openbsd.org>
Mon, 7 Feb 2022 17:19:57 +0000 (17:19 +0000)
commitd9b0e4ff016f71f5867f6873471a9231e335a9eb
treece1ca7be5a4db8f0b30388ab4e46832a5413a2dd
parent41cf59d49f350dbf50b9865f54cefa56eb163c49
head(1): check for stdio errors

- Output errors are terminal.

- Input errors yield a warning and cause head(1) to fail
  gracefully.

Tweaked by millert@.

Thread: https://marc.info/?l=openbsd-tech&m=164419238123928&w=2

ok millert@
usr.bin/head/head.c