浏览代码

uml: implement O_APPEND

The .a flags in openflags never had an implementation.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Jeff Dike 17 年之前
父节点
当前提交
bf53d85ec2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/um/os-Linux/file.c

+ 2 - 0
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;
 		f |= O_TRUNC;
 	if (flags.e)
 	if (flags.e)
 		f |= O_EXCL;
 		f |= O_EXCL;
+	if (flags.a)
+		f |= O_APPEND;
 
 
 	fd = open64(file, f, mode);
 	fd = open64(file, f, mode);
 	if (fd < 0)
 	if (fd < 0)