lbmk/util/spkmodem_recv
Leah Rowe 3c2a287eea util/spkmodem-recv: handle sample errors correctly
when calling fread(), errno may be set to EOVEFLOW if
the range being read will cause an integer overflow

if end-of-file is reached, errno may not be set. when
calling this function, you must check errno or check
feof() - ferror() should also be checked, so this check
is added immediately afterwards in the code

ferror() does not set errno, so ERR() is used to set
errno to ECANCELED as program exit status

further separate reading of frames into a new function

Signed-off-by: Leah Rowe <leah@libreboot.org>
2023-06-04 15:19:53 +01:00
..
.gitignore util/spkmodem_recv: Import from coreboot 2023-05-16 23:09:42 +01:00
Makefile util/spkmodem_recv: Add clean to the Makefile 2023-05-16 23:11:35 +01:00
description.md util/spkmodem_recv: Import from coreboot 2023-05-16 23:09:42 +01:00
spkmodem-recv.c util/spkmodem-recv: handle sample errors correctly 2023-06-04 15:19:53 +01:00