linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 4/20] UML - Implement O_APPEND
@ 2008-01-17 21:40 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2008-01-17 21:40 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML, uml-devel

The .a flags in openflags never had an implementation.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
---
 arch/um/os-Linux/file.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6.22/arch/um/os-Linux/file.c
===================================================================
--- linux-2.6.22.orig/arch/um/os-Linux/file.c	2007-12-13 13:50:52.000000000 -0500
+++ linux-2.6.22/arch/um/os-Linux/file.c	2007-12-13 15:23:13.000000000 -0500
@@ -191,6 +191,8 @@ int os_open_file(const char *file, struc
 		f |= O_TRUNC;
 	if (flags.e)
 		f |= O_EXCL;
+	if (flags.a)
+		f |= O_APPEND;
 
 	fd = open64(file, f, mode);
 	if (fd < 0)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-17 21:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-17 21:40 [uml-devel] [PATCH 4/20] UML - Implement O_APPEND Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox