RE: struct dirent doesn't contain d_namlen and d_type fields.

2005-04-22 Thread Dave Korn
Original Message >From: thomas.revell >Sent: 22 April 2005 12:09 > Does anyone know how I can simulate the d_type field? Or if it's even > relevant in Cygwin at all? > > Any advice will be much appreciated. > > Regards, > > Thomas Revell The posix standard says the only thing you ca

RE: struct dirent doesn't contain d_namlen and d_type fields.

2005-04-22 Thread thomas . revell
Hi, Thanks for your earlier advice. To wander onto a slightly different topic now, the code uses the ALIGNBYTES macro, which as far as I can tell should be in machine/param.h This file seems to be empty though, just containing a comment that it is a placeholder. Does this macro exist in Cygwin,

RE: struct dirent doesn't contain d_namlen and d_type fields.

2005-04-22 Thread thomas . revell
OK, slightly more information now: I trawled Google for a while, and found this message, which says that ALIGNBYTES should be defined as sizeof (int) -1 http://mail-index.netbsd.org/current-users/1994/06/15/0011.html Does this seem sensible to you? Regards, Tom Revell -- Unsubscribe info: