Skip to contentSkip to conversation

UML - Implement O_APPEND

PATCH New Jeff Dike 1 participant 1 message Jan 17, 2008 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 4/20 UML - Implement O_APPEND

The .a flags in openflags never had an implementation.

---
 arch/um/os-Linux/file.c |    2 ++
 1 file changed, 2 insertions(+)
arch/um/os-Linux/file.c +2 -0
Index: linux-2.6.22/arch/um/os-Linux/file.c
===================================================================
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel