diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 11:55:07 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 04:40:26 -0600 |
commit | 50b288aca324649fb5b357ce75972a5261cf94fc (patch) | |
tree | 7684005feef776fa06fc966d5ec8b72c29232869 /include | |
parent | cdd140af5c6b623d31ac87a8054cee55fb70d3f0 (diff) | |
download | u-boot-50b288aca324649fb5b357ce75972a5261cf94fc.tar.gz u-boot-50b288aca324649fb5b357ce75972a5261cf94fc.tar.bz2 u-boot-50b288aca324649fb5b357ce75972a5261cf94fc.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/os.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 7116f87578..9e3a561b65 100644 --- a/include/os.h +++ b/include/os.h @@ -75,6 +75,7 @@ int os_open(const char *pathname, int flags); #define OS_O_RDWR 2 #define OS_O_MASK 3 /* Mask for read/write flags */ #define OS_O_CREAT 0100 +#define OS_O_TRUNC 01000 /** * Access to the OS close() system call |