uml: implement O_APPEND
Changes
1 files changed · +2 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| arch/um/os-Linux/file.c | modified | +2 | −0 | View file |
arch/um/os-Linux/file.c
View filediff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c
index d7404c6..b5afcfd 100644
--- a/arch/um/os-Linux/file.c
+++ b/arch/um/os-Linux/file.c
@@ -191,6 +191,8 @@ int os_open_file(const char *file, struct openflags flags, int mode)
f |= O_TRUNC;
if (flags.e)
f |= O_EXCL;
+ if (flags.a)
+ f |= O_APPEND;
fd = open64(file, f, mode);
if (fd < 0)