From: Jeff Dike Date: Tue, 5 Feb 2008 06:31:18 +0000 (-0800) Subject: uml: implement O_APPEND X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf53d85ec20c228e0efdadbdb12c0f92283fcfd0;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 --- 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)