delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2016/12/20/18:45:10

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: <CAA2C=vDtAf_X5GZyGnchr_9rzGiAk4MMoN6GepSt21CY-bWjLw@mail.gmail.com>
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>
<CAA2C=vA0GqVe4SyWGX5KSV+CouPqZb80szmsKGrC=9=s-T1VuQ AT mail DOT gmail DOT com>
<18c0b177-657f-4c87-afd4-50eeba2efa80 AT googlegroups DOT com> <CAA2C=vDtAf_X5GZyGnchr_9rzGiAk4MMoN6GepSt21CY-bWjLw AT mail DOT gmail 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]" <djgpp AT delorie DOT com>
Injection-Date: Tue, 20 Dec 2016 23:27:53 +0000
Bytes: 1838
Lines: 5
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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

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...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019