From bf53d85ec20c228e0efdadbdb12c0f92283fcfd0 Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Mon, 4 Feb 2008 22:31:18 -0800 Subject: [PATCH] uml: implement O_APPEND The .a flags in openflags never had an implementation. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/um/os-Linux/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c index d7404c621ff7..b5afcfd0f861 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) -- GitLab