Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

likema
Copy link
Contributor

@likema likema commented Apr 11, 2020

No description provided.

@@ -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"
Copy link
Member

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.

@jwillemsen jwillemsen added the needs review Needs to be reviewed label May 7, 2020
else
{
stp->st_size = fdata.nFileSizeLow;
stp->st_size = ACE_MAKE_QWORD(fdata.nFileSizeLow, fdata.nFileSizeHigh);
Copy link
Member

@jwillemsen jwillemsen Jun 8, 2020

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?

Copy link
Member

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?

@jwillemsen
Copy link
Member

Looks to be reported in the past, see http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=4079

Copy link
Member

@jwillemsen jwillemsen left a 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

@jwillemsen
Copy link
Member

Any suggestions for a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Needs to be reviewed
Development

Successfully merging this pull request may close these issues.

4 participants