The dirent struct
Sat Aug 7 00:31:00 GMT 2010
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__
> itr->d_fileno = entry->d_ino;
> itr->d_reclen = strlen(entry->d_name);
> itr->d_fileno = entry->d_fileno;
> itr->d_reclen = entry->d_reclen;
> I assume this is appropriate?
No, not according to this:
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."
BTW, I look forward to trying out rtorrent in Cygwin. I am quite
familiar with rtorrent, as I use it quite often in Linux.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin