rrd_open.c (rrd_read): Mimicing read() behaviour for EOF case and NULL buffer case.