Use a temporary variable to hold bytes-read count
Use a temporary variable to hold the result returned by read() with
length 1, so that static analysis tools don't mistakenly conclude that
we don't do anything with the value when we're only explicitly comparing
it to -1, 0, or 1.