projects/linux·commit bf53d85e

uml: implement O_APPEND

bf53d85e · Jeff Dike <[email protected]> · 2008-02-04 22:31:18 -08:00

The .a flags in openflags never had an implementation.

Signed-off-by: Jeff Dike <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
bf53d85ec20c228e0efdadbdb12c0f92283fcfd0
Parents
80e39311

Changes

1 files changed · +2 −0

FileStatusAddDelContent
arch/um/os-Linux/file.cmodified+2−0View file

arch/um/os-Linux/file.c

View file
diff --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)