sandbox: Support file truncation with os_open()
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 17:55:07 +0000 (11:55 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:26 +0000 (04:40 -0600)
commit50b288aca324649fb5b357ce75972a5261cf94fc
tree7684005feef776fa06fc966d5ec8b72c29232869
parentcdd140af5c6b623d31ac87a8054cee55fb70d3f0
sandbox: Support file truncation with os_open()

At present files are not truncated on writing. This is a useful feature.
Add support for this.

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