From: Jeff Dike Date: Tue, 5 Feb 2008 06:31:18 +0000 (-0800) Subject: uml: implement O_APPEND X-Git-Tag: v2.6.25-rc1~808 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bf53d85ec20c228e0efdadbdb12c0f92283fcfd0;p=linux-2.6-omap-h63xx.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 d7404c621ff..b5afcfd0f86 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)