Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 22 Apr 2005 12:08:51 +0100 From: thomas DOT revell AT powerconv DOT alstom DOT com Subject: struct dirent doesn't contain d_namlen and d_type fields. To: cygwin AT cygwin DOT com Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-IsSubscribed: yes Hi everyone, I'm currently working on porting some (old) Solaris based programs to Cygwin. At some points, these make use of the d_namlen and d_type fields in the dirent structure. The trouble is, Cygwin doesn't seem to have these. I suppose I could simulate d_namlen by calling strlen () on the d_name field (if anyone knows of some reason why this is a bad idea, please let me know). 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 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/