-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support fstat larger than 4G while st_size is 64bit on Windows #1074
base: master
Are you sure you want to change the base?
Conversation
@@ -2,6 +2,7 @@ | |||
#include "ace/OS_NS_unistd.h" | |||
#include "ace/OS_NS_fcntl.h" | |||
#include "ace/OS_NS_errno.h" | |||
#include "ace/OS_NS_time.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider moving ACE_MAKE_QWORD
so this include isn't needed.
else | ||
{ | ||
stp->st_size = fdata.nFileSizeLow; | ||
stp->st_size = ACE_MAKE_QWORD(fdata.nFileSizeLow, fdata.nFileSizeHigh); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be ACE_COMBINE_PARTS
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the ACE_OS::stat functions, do they have the same problem?
Looks to be reported in the past, see http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=4079 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs some more testing and check whether the macro is correct
Any suggestions for a test? |
No description provided.