delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/07/06:18:31

Date: Thu, 7 Dec 2000 13:15:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Boggy <spam AT trap DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: where is the declaration of __dj_DIR?
In-Reply-To: <ht9u2t44gmqh10rr3td06iopot5hot85vb@4ax.com>
Message-ID: <Pine.SUN.3.91.1001207131102.26994A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 7 Dec 2000, Boggy wrote:

> i'm trying to compile grep in another compiler and i would like to
> know where i can find the declaration of __dj_DIR. TIA.

??? How is the specific structure of DIR relevant to compiling `grep'?  
Each compiler whose library supports `opendir' and `readdir' should have 
its own definition of DIR, and compiling grep will (and should) use that 
compiler-specific definition.  You cannot use a definition from another 
compiler, and you should _never_ use members of the DIR structure which 
are not published by documented APIs.

Anyway, the DJGPP-specific definition of DIR is in the file 
src/libc/posix/dirent/dirstruc.h in djlsr203.zip.

- Raw text -


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