X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.176.84.154 with SMTP id p26mr773556uaa.15.1482276473164; Tue, 20 Dec 2016 15:27:53 -0800 (PST) X-Received: by 10.157.56.132 with SMTP id p4mr216151otc.20.1482276473122; Tue, 20 Dec 2016 15:27:53 -0800 (PST) Newsgroups: comp.os.msdos.djgpp Date: Tue, 20 Dec 2016 15:27:52 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.113.69.76; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp NNTP-Posting-Host: 94.113.69.76 References: <97c92faf-c9df-4ccf-85f9-d10ab659a8c4 AT googlegroups DOT com> <18c0b177-657f-4c87-afd4-50eeba2efa80 AT googlegroups DOT com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4aa75867-ccbd-4ead-8738-9bf8a94760d0@googlegroups.com> Subject: Re: DJGPP problem with getting file size via fstat or not implemented yet? From: "RayeR (glaux AT centrum DOT cz) [via djgpp AT delorie DOT com]" Injection-Date: Tue, 20 Dec 2016 23:27:53 +0000 Content-Type: text/plain; charset=UTF-8 Bytes: 1838 Lines: 5 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id uBKNj2aO012973 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 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...