diff options
author | Jeff Dike <jdike@addtoit.com> | 2008-02-04 22:31:18 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 09:44:30 -0800 |
commit | bf53d85ec20c228e0efdadbdb12c0f92283fcfd0 (patch) | |
tree | de724ce6fa140fbc26b2f98fcfffbc5384bd8553 /arch/um/os-Linux | |
parent | 80e39311ff3d7d2267ea8d259aab8dc9d5a59d61 (diff) | |
download | blackbird-op-linux-bf53d85ec20c228e0efdadbdb12c0f92283fcfd0.tar.gz blackbird-op-linux-bf53d85ec20c228e0efdadbdb12c0f92283fcfd0.zip |
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>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r-- | arch/um/os-Linux/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c index d7404c621ff7..b5afcfd0f861 100644 --- a/arch/um/os-Linux/file.c +++ b/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; if (flags.e) f |= O_EXCL; + if (flags.a) + f |= O_APPEND; fd = open64(file, f, mode); if (fd < 0) |