This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The dirent struct

On Aug  6 10:51, Chris Sutcliffe wrote:
> On 6 August 2010 10:11, Corinna Vinschen wrote:
> > On Aug Â6 09:40, Christopher Faylor wrote:
> >> On Fri, Aug 06, 2010 at 09:33:41AM -0400, Chris Sutcliffe wrote:
> >> >I assume d_fileno and d_reclen may be part of __d_unused1 or
> >> >__d_internal1? ÂI'd appreciate some help here, since I'm not sure what
> >> >to do at this point.
> >>
> >> No, they are not part of either of those fields. ÂIf they were
> >> they would be exposed.
> >>
> >> They simply are not implemented.
> >
> > And they don't have to. ÂPer POSIX, only d_ino and d_name can be
> > expected by a portable application(*).
> Fair enough, thankfully they are don't seem to be used by the code, so
> I added an '#ifndef __CYGWIN__' around them and have managed to get by
> this.

Btw., d_fileno is just another old name for d_ino.  The Linux headers
defines it thus as `#define d_fileno d_ino'.  We can do the same in
Cygwin.  Maybe that minimizes some porting effort.

As for d_reclen, there was a discussion already at one point:


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]