sandbox: Add a function to read a host file
authorSimon Glass <sjg@chromium.org>
Tue, 6 Nov 2018 22:21:25 +0000 (15:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Nov 2018 02:14:22 +0000 (19:14 -0700)
commit566bf3a8698780079196da742c363ca3b627ca31
tree7e964e22c7aeda92a9a6e72ce3df124e971033a8
parenta5c13b68e7516d3680c87f7207dcf337a1b3dd7c
sandbox: Add a function to read a host file

Add a way to read a file from the host filesystem. This can be useful for
reading test data, for example. Also fix up the writing function which was
not the right version, and drop the debugging lines.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
include/os.h