delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/16/01:12:53

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4407
From: jstev AT gladstone DOT uoregon DOT edu (Josh Stevens)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Findfirst works in beta4
Date: Mon, 15 Jan 1996 02:55:19 GMT
Organization: University of Oregon
Lines: 21
Message-ID: <4dcfeb$2m3@pith.uoregon.edu>
References: <DL0zt3 DOT 8C0 AT jade DOT mv DOT net> <4d3lsr$4d8 AT pith DOT uoregon DOT edu> <4d48ip$58s AT pith DOT uoregon DOT edu> <30f5e0c9 DOT sandmann AT clio DOT rice DOT edu>
NNTP-Posting-Host: cisco-ts5-line25.uoregon.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Charles Sandmann <sandmann AT clio DOT rice DOT edu> wrote:

>> There is no other copy of dir.h anywhere else on my system.  All the
>> h files I'm using are straight from the beta4 archives.  Do you have
>> any other suggestions?  Thanks.

>Write a small test program which does a findfirst on argv[1] and prints
>sizeof(ffblk) and each field in the block.  Are you using the distribution
>GCC?  It's like the packed attribute is being ignored (?).

When I do this, the total of the sizes of the individual fields comes
up two bytes short of the size of the structure.

>Does stat() work on a file?  It calls findfirst() but was compiled with
>a consistent structure.

As far as I can tell, stat() works perfectly.

-Josh


- Raw text -


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