× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Brad,
I think you are correct, as there is no "close64" or "read64" or "write64" as far as I can tell ... ;-)
Mark S. Waterbury

On Friday, September 4, 2020, 6:54:15 PM EDT, Brad Stone <bvstone@xxxxxxxxx> wrote:

So I'm playing around with this and downloading a test file (10GB).  It
appears all I really needed to update was stat and open to stat64 and
open64.

Is there any harm in leaving the read, write and close APIs as they are
now?  Most of my applications read and write in specified size chunks and
won't ever try to do more than so much data at a time.

Thanks!



On Wed, Sep 2, 2020 at 6:43 PM Brad Stone <bvstone@xxxxxxxxx> wrote:

Thanks all!  I will give it a shot.



On Wed, Sep 2, 2020 at 6:06 PM Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
wrote:

As the others have said, many of the old IFS APIs, including stat() use
32-bit integers and are therefore limited to 2GB or 4GB file sizes.

Use stat64() instead, which uses 64-bit integers.

If you don't have prototypes you can find them here:

http://www.scottklement.com/rpg/copybooks/ifsio_h.rpgle.txt


On 9/2/2020 2:10 PM, Brad Stone wrote:
Just curious if anyone has run into an issue with the max size a stream
file can be when working with it through RPG and the IFS APIs.

I have someone with 25GB file and it's erroring out on the stat() call
to
check for it's existance (I don't have the RC right now).  Also, EDTF
reports an error as well "Object is too large to process."

Thanks.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.