delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/15/15:24:14

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: where's the UNIX walker
15 Sep 1998 15:24:14 -0700 :
Message-ID: <9809150724.AA22332.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <19980915065657 DOT 13098 DOT qmail AT hotmail DOT com>
To: "K M" <unixguru68 AT hotmail DOT com>
Cc: gnu-win32 AT cygnus DOT com

"K M" <unixguru68 AT hotmail DOT com> writes:
> I've downloaded and installed the latest( B19) GNU tools and
> things seem to be fine; however, when I try to compile a UNIX
> program that calls ftw(),gcc can't find ftw.h. I can't locate
> any refernce tp ftw in the distribution at all.
> Where is ftw or how can I get someting like this to compile?

Quite possibly because ftw is neither ANSI nor POSIX. You can always 
use opendir(), readdir() etc which are part of POSIX and essentially
get the same behaviour (you have to code the recursion yourself, but
that's quite trivial).

I understand that Unix95 spec does have some variant of ftw (nftw?), 
and if that's the case, then it may show up in newlib in the future.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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