[C] Fill in timestamps from log file on each read.
[C] Use more standard C error codes.
[C] Improve comments.