X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.31.150.143 with SMTP id y137mr494624vkd.38.1482292812145; Tue, 20 Dec 2016 20:00:12 -0800 (PST) X-Received: by 10.157.17.3 with SMTP id g3mr248735ote.8.1482292811993; Tue, 20 Dec 2016 20:00:11 -0800 (PST) Newsgroups: comp.os.msdos.djgpp Date: Tue, 20 Dec 2016 20:00:11 -0800 (PST) In-Reply-To: <4aa75867-ccbd-4ead-8738-9bf8a94760d0@googlegroups.com> Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=104.55.20.34; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO NNTP-Posting-Host: 104.55.20.34 References: <97c92faf-c9df-4ccf-85f9-d10ab659a8c4 AT googlegroups DOT com> <18c0b177-657f-4c87-afd4-50eeba2efa80 AT googlegroups DOT com> <4aa75867-ccbd-4ead-8738-9bf8a94760d0 AT googlegroups DOT com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <633b6928-1167-46de-b537-282939e76eda@googlegroups.com> Subject: Re: DJGPP problem with getting file size via fstat or not implemented yet? From: "rugxulo AT gmail DOT com [via djgpp AT delorie DOT com]" Injection-Date: Wed, 21 Dec 2016 04:00:12 +0000 Content-Type: text/plain; charset=UTF-8 Bytes: 2584 Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi, On Tuesday, December 20, 2016 at 5:27:53 PM UTC-6, RayeR wrote: > > OK, I changed the condition to > > if (!hFile || fstat (fileno (hFile), &statbuf) || > !S_ISREG(statbuf.st_mode)) > > as you suggested and it works. I dont have large NTFS partition > to try the limit. Maybe someone else with insight into djdev > can tell us which of this functions supports large files. I > personally don't care too, I never wavpacked large files and I > still use FAT16 & 32... IIRC, there was an attempt (by CWS?), circa 2.04 beta, to partially support 4 GB files in FAT32 under Win9x. But I don't know how well it was tested, and it might not have been worth it (too kludgy? needs oddball DOS function calls? e.g. int 21h, 716Ch ??). It may not even work at all under 2k/XP, dunno. Besides, FreeDOS' FAT32 is limited to 2 GB per file anyways, not sure about other implementations. Anyways, we still have old real-mode WavPack DOS binaries from 2002. However, if you think your port is stable enough, I'll mirror it to iBiblio for FreeDOS and us, if you want. P.S. FreeDOS 1.2 final is scheduled to be released in a week.