X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,TW_CG,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4C5CA945.6070601@monai.ca> References: <20100806134005 DOT GD22459 AT ednor DOT casa DOT cgf DOT cx> <20100806141140 DOT GC31783 AT calimero DOT vinschen DOT de> <20100806163925 DOT GE31783 AT calimero DOT vinschen DOT de> <20100806173153 DOT GB23627 AT ednor DOT casa DOT cgf DOT cx> <20100806182832 DOT GH31783 AT calimero DOT vinschen DOT de> <4C5CA945 DOT 6070601 AT monai DOT ca> Date: Fri, 6 Aug 2010 23:21:27 -0400 Message-ID: Subject: Re: The dirent struct From: Chris Sutcliffe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 6 August 2010 20:31, Steven Monai wrote: > On 2010/08/06 11:48 AM, Chris Sutcliffe wrote: >> I've decided to take a different approach and decided to implement it >> as follows: >> >> #ifdef __CYGWIN__ >> =A0 =A0 itr->d_fileno =3D entry->d_ino; >> =A0 =A0 itr->d_reclen =3D strlen(entry->d_name); >> #else >> =A0 =A0 itr->d_fileno =3D entry->d_fileno; >> =A0 =A0 itr->d_reclen =3D entry->d_reclen; >> #endif >> >> I assume this is appropriate? > > No, not according to this: > > http://cygwin.com/ml/cygwin/2009-09/msg00031.html > > Quoting cgf from there: > > "Defining d_*rec*len as strlen(d_name) would not be correct since that > is supposed to be the length of the record not the name." Interesting. From an rtorrent perspective it's working as expected, but as I previously stated, although rtorrent grabs the value, it doesn't actually seem to do anything with it. I'll leave it as is for now (I figure having something there is better than nothing at all). Cheers! 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