aboutsummaryrefslogtreecommitdiff
path: root/aio-posix.c
diff options
context:
space:
mode:
authorKirk Allan <kallan@suse.com>2015-11-10 16:19:11 -0700
committerMichael Roth <mdroth@linux.vnet.ibm.com>2015-11-11 10:21:02 -0600
commit52074d0f662fc51293d4cde8077631f754784405 (patch)
tree84027a52585955b142e0d0e889b7b8f867afa7c3 /aio-posix.c
parent3c07587d49458341510360557c849e93e9afaf59 (diff)
qga: fix append file open modes for win32
For append file open modes, use FILE_APPEND_DATA for the desired access for writing at the end of the file. Version 2: For "a+", "ab+", and "a+b" modes use FILE_APPEND_DATA|GENERIC_READ. ORing in GENERIC_READ starts a read at the begining of the file. All writes will append to the end fo the file. Added white space to maintain the alignment of the guest_file_open_modes[]. Signed-off-by: Kirk Allan <kallan@suse.com> Cc: qemu-stable@nongnu.org * use FILE_GENERIC_APPEND macro, which provides same semantics as FILE_APPEND_DATA, but retains other flags from GENERIC_WRITE Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'aio-posix.c')
0 files changed, 0 insertions, 0 deletions