Add openmem() function to read from memory as if it were a file
authorH. Peter Anvin <hpa@zytor.com>
Thu, 9 Jul 2009 18:56:17 +0000 (11:56 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 9 Jul 2009 18:56:17 +0000 (11:56 -0700)
commit60f2833c31a57a0a8cc69a0ee6e20692d0cc5157
tree69b0d53f6917d8195c2541807137e8efefa60a58
parent0b4b1529f14037c5a4d61cf90b010464170b6d2a
Add openmem() function to read from memory as if it were a file

Reading from memory as if it were a file is pretty easy... we just
treat it as a really big block buffer and tell the file layer that we
already closed the underlying handle.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/include/dev.h
com32/lib/sys/file.h
com32/lib/sys/open.c
com32/lib/sys/openmem.c [new file with mode: 0644]