diff options
| author | Robert Morris | 2020-07-16 11:38:08 -0400 |
|---|---|---|
| committer | Robert Morris | 2020-07-16 11:38:08 -0400 |
| commit | f3979b7212f1bb9d72947f54abead5be973c6aed (patch) | |
| tree | 9e2e5cc663d2a3d56358121761755a4d3e878d6b /kernel/fcntl.h | |
| parent | c98e1afe7996b639fd36285240e9171b4866fe9d (diff) | |
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 |
