diff options
author | Robert Morris <[email protected]> | 2020-07-16 11:38:08 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2020-08-10 11:19:10 -0400 |
commit | af9eb9114c2f8700d4315eaa1e2d637c2aaaf210 (patch) | |
tree | 9e2e5cc663d2a3d56358121761755a4d3e878d6b /kernel/fcntl.h | |
parent | 672217ae2a3d68b73b2229ab368979ef7790e28a (diff) | |
download | xv6-labs-af9eb9114c2f8700d4315eaa1e2d637c2aaaf210.tar.gz xv6-labs-af9eb9114c2f8700d4315eaa1e2d637c2aaaf210.tar.bz2 xv6-labs-af9eb9114c2f8700d4315eaa1e2d637c2aaaf210.zip |
make "echo hello > x" truncate file x.
Diffstat (limited to 'kernel/fcntl.h')
-rw-r--r-- | kernel/fcntl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fcntl.h b/kernel/fcntl.h index d565483..44861b9 100644 --- a/kernel/fcntl.h +++ b/kernel/fcntl.h @@ -2,3 +2,4 @@ #define O_WRONLY 0x001 #define O_RDWR 0x002 #define O_CREATE 0x200 +#define O_TRUNC 0x400 |