www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/02/14/14:59:10

Date: Mon, 14 Feb 94 11:53:10 -0500
From: DJ Delorie <dj AT ctron DOT com>
To: tola AT tukki DOT jyu DOT fi
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: 2 DJGPP questions

> 1. In the DJGPP FAQ there were a mention about an external debugger for 
>    DJGPP ? Where can this be found (well any debugger would be ok) ?

go32 -d edebug32 some_program arguments

edebug32 is in bin/edebug32 (or use bin/ed32-dpmi).

> 2. How can you tell if directory entry is file or directory ? I know
>    there is a structure called 'dirent' but that doesn't seem to incude
>    that information, or does it ?
>    Of course a dirty way of checking this would be to try to open the
>    dir.entry (given by readdir) and if it opens fine it must be a normal 
>    file.. Is there a better way ?

Use stat() and S_IFDIR().


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019