diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-05-29 17:25:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-05-29 17:25:36 +0000 |
commit | ad4e943fca1d5f03a1d23c742365d39d374ff942 (patch) | |
tree | e592a3480766d8ef3569fa54bcf5c0eef7100c05 /winsup/cygwin/dtable.cc | |
parent | 8a11b13ff0f6d3e673f23060dca76d6358f4ac3f (diff) | |
download | cygnal-ad4e943fca1d5f03a1d23c742365d39d374ff942.tar.gz cygnal-ad4e943fca1d5f03a1d23c742365d39d374ff942.tar.bz2 cygnal-ad4e943fca1d5f03a1d23c742365d39d374ff942.zip |
* dtable.cc (dtable::set_file_pointers_for_exec): Call SetFilePointer
correctly for 64 bit file access. Comment out functionality.
* fhandler.cc (fhandler_base::open): Don't set append_mode.
(fhandler_base::write): Check for O_APPEND instead of append_mode.
Call SetFilePointer correctly for 64 bit file access. Handle
errors from SetFilePointer.
* fhandler.h (class fhandler_base): Drop append_mode status flag.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Handle
seeking correctly for 64 bit file access.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 17efacb69..c40b5e6ae 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -690,12 +690,16 @@ dtable::fixup_before_exec (DWORD target_proc_id) void dtable::set_file_pointers_for_exec () { +/* This is not POSIX-compliant. */ +#if 0 + LONG off_high = 0; lock (); fhandler_base *fh; for (size_t i = 0; i < size; i++) if ((fh = fds[i]) != NULL && fh->get_flags () & O_APPEND) - SetFilePointer (fh->get_handle (), 0, 0, FILE_END); + SetFilePointer (fh->get_handle (), 0, &off_high, FILE_END); unlock (); +#endif } void |