diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-12-16 02:20:34 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-12-16 02:20:34 +0000 |
commit | fdef2d3785ed5cb41c5a8854f71a4a6c2707a401 (patch) | |
tree | 2c7b7a6b1bd2bc8d8bd5438603ebb1c661d2f220 | |
parent | e6e77a822539ea6cd676ade2bc3eda41a8486572 (diff) | |
download | ATCD-fdef2d3785ed5cb41c5a8854f71a4a6c2707a401.tar.gz |
*** empty log message ***
-rw-r--r-- | ChangeLog-98a | 6 | ||||
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | ace/FILE.cpp | 4 | ||||
-rw-r--r-- | ace/OS.i | 7 |
4 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog-98a b/ChangeLog-98a index b8abcbf8661..a2cd4f22fdb 100644 --- a/ChangeLog-98a +++ b/ChangeLog-98a @@ -1,3 +1,9 @@ +Mon Dec 15 20:17:10 1997 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu> + + * ace/OS.i: Tried to fix the fstat() wrapper on Win32 so that + it does the right think for HANDLES. Thanks to Lori Anderson + <lori@probita.com> for pointing this out. + Mon Dec 15 15:36:07 1997 Nanbor Wang <nw1@cumbia.cs.wustl.edu> * ace/Thread_Manager.cpp (exit,wait): Changed these two functions @@ -491,6 +491,7 @@ Dustin Laurence <laurence@alice.wonderland.caltech.edu> Ernie Makris <emakris@ziplink.net> Timothy A. Brown <tabrown@montana.com> Patrick J. McNerthney <pat@thememedia.com> +Lori Anderson <lori@probita.com> I would particularly like to thank Paul Stephenson, who worked with me at Ericsson and is now at ObjectSpace. Paul devised the recursive diff --git a/ace/FILE.cpp b/ace/FILE.cpp index a6928173f98..4d5770eb7ae 100644 --- a/ace/FILE.cpp +++ b/ace/FILE.cpp @@ -39,7 +39,9 @@ ACE_FILE::get_info (ACE_FILE_Info *finfo) { ACE_TRACE ("ACE_FILE::get_info"); struct stat filestatus; - int result = ACE_OS::fstat (this->get_handle (), &filestatus); + + int result = ACE_OS::fstat (this->get_handle (), + &filestatus); if (result == 0) { @@ -760,7 +760,12 @@ ACE_INLINE int ACE_OS::fstat (ACE_HANDLE handle, struct stat *stp) { // ACE_TRACE ("ACE_OS::fstat"); - ACE_OSCALL_RETURN (::_fstat ((int) handle, (struct _stat *) stp), int, -1); +ACE_INLINE int +ACE_OS::fstat (ACE_HANDLE handle, struct stat *stp) +{ + // ACE_TRACE ("ACE_OS::fstat"); + int fd = ::_open_osfhandle ((long) handle, 0); + ACE_OSCALL_RETURN (::_fstat (fd, (struct _stat *) stp), int, -1); } #endif /* WIN32 */ |