Add a helper: read_once
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 Sep 2015 15:40:49 +0000 (11:40 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Sep 2015 19:14:00 +0000 (15:14 -0400)
commit0e002906a9814ca1ac1f4cb0343fe656640d3034
tree0cb5d3d1daa40bd762a0a5a289bb63a1aed88316
parent4e1d6653e1ae944da1c01ed25dcb729b2d88fe96
Add a helper: read_once

When dealing with devices, sometimes it's nice to be able to do exactly
one read syscall.
tests/read_once.c [new file with mode: 0644]