| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| Date: | Fri, 6 Aug 2010 09:33:41 -0400 |
| Message-ID: | <AANLkTimghbyew2f+Q1fSTfpzv0cw7CrypX60vcW0Qgyb@mail.gmail.com> |
| Subject: | The dirent struct |
| From: | Chris Sutcliffe <ir0nh34d AT gmail DOT com> |
| To: | The Cygwin Mailing List <cygwin AT cygwin DOT com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
I'm well in to the process of porting rtorrent to Cygwin but I've hit
a bit of a snag with the dirent struct. Namely:
/usr/src/rtorrent/rtorrent-0.8.6-1/src/rtorrent-0.8.6/src/utils/directory.c=
c:79:
error: =91struct dirent=92 has no member named =91d_fileno=92
/usr/src/rtorrent/rtorrent-0.8.6-1/src/rtorrent-0.8.6/src/utils/directory.c=
c:80:
error: =91struct dirent=92 has no member named =91d_reclen=92
which sure enough, the Cygwin dirent struct does not:
struct dirent
{
long __d_version; /* Used internally */
__ino64_t d_ino;
unsigned char d_type;
unsigned char __d_unused1[3];
__uint32_t __d_internal1;
char d_name[NAME_MAX + 1];
};
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.
Thank you,
Chris
--=20
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |