lkml.org 
[lkml]   [2008]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 4/20] UML - Implement O_APPEND
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)

\
 
 \ /
  Last update: 2008-01-17 22:49    [W:0.023 / U:1.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site