Manual page read(2) at https://man7.org/linux/man-pages/man2/read.2.html, states:
On success, the number of bytes read is returned (zero indicates end of file)….It is not an error if this number is smaller than the number of bytes requested; this may happen for example because fewer bytes are...