use pread(2)
Signed-off-by: Sho Nakatani <lay.sakura@gmail.com>