提交 bf53d85e 编写于 作者: J Jeff Dike 提交者: Linus Torvalds

uml: implement O_APPEND

The .a flags in openflags never had an implementation.
Signed-off-by: NJeff Dike <jdike@linux.intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 80e39311
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册