ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/01/12/03:15:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Jim Michaels <jmichae3 AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: dirent structure wrong according to online documentation
Date: Mon, 12 Jan 2009 00:00:32 -0800 (PST)
Organization: http://groups.google.com
Lines: 32
Message-ID: <5525a459-96b6-42b6-84ad-48aaa6eaeacd@f40g2000pri.googlegroups.com>
References: <45698add-916e-4b28-89af-80eb795bba60 AT z27g2000prd DOT googlegroups DOT com>
<200901040903 DOT n0493pTa030645 AT envy DOT delorie DOT com> <22e6bf83-f793-4ffc-855d-d1dad838c578 AT e1g2000pra DOT googlegroups DOT com>
<u1vvhms75 DOT fsf AT gnu DOT org>
NNTP-Posting-Host: 76.115.70.155
Mime-Version: 1.0
X-Trace: posting.google.com 1231747232 20119 127.0.0.1 (12 Jan 2009 08:00:32 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 12 Jan 2009 08:00:32 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: f40g2000pri.googlegroups.com; posting-host=76.115.70.155;
posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe)
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 n0C8F2LA001537
Reply-To: djgpp AT delorie DOT com

On Jan 5, 12:08 pm, Eli Zaretskii <e DOT  DOT  DOT  AT gnu DOT org> wrote:
> > From: Jim Michaels <jmich DOT  DOT  DOT  AT yahoo DOT com>
> > Date: Mon, 5 Jan 2009 00:26:48 -0800 (PST)
>
> > d.cpp: In function 'int main()':
> > d.cpp:7: error: 'struct dirent' has no member named 'd_type'
>
> > I checked the header file myself.  it's not there.
>
> This is with DJGPP v2.03, I presume?
>
> Anyway, why do you need d_type so badly?

actually, I downloaded this from current, but not from CVS.  I used
the latest version of everything for compilation lately.
C:\Documents and Settings\Jim>gpp --version
gpp.exe (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


C:\DOCUME~1\Jim>


I see this structure in dirent.h:
struct dirent {
  char d_namlen;
  char d_name[256];
};

- Raw text -


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