X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=3.4 required=5.0 tests=AWL,BAYES_00,SARE_SUB_ENC_UTF8 X-Spam-Check-By: sourceware.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" User-Agent: Web-Based Email 5.4.05 Message-Id: <20110319140945.d50bba72719f91cdb61cd892ddf83b25.2221dc2256.wbe@email11.secureserver.net> From: To: cygwin AT cygwin DOT com Subject: How to reinvent /usr/bin/find in cygwin/gnu/gnat =?UTF-8?Q?Ada=3F?= Date: Sat, 19 Mar 2011 14:09:45 -0700 Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Darn! I forgot to switch to plain text again before I sent this out the first time. I'm sending this out again in plain text. I apologize if it appears twice. I want to recursively crawl a directory tree on windows using cygwin/gnu/ada. I'm not sure if I should use the unix function opendir (and friends) or the windows functions FindFirstFile and FindNextFile. Maybe the opendir would be preferable since it would be portable. Can someone point me to some examples of cygwin/ada programs calling Win32 functions like FindFirstFile/FindNextFile that pass a struct like WIN32_FIND_DATA? Can someone point me to some examples of cygwin/ada programs calling a standard function like opendir? I found examples of calling C functions I have written from ada where I had the .o files from the g++ compiler. I also got an example working of ada calling c++ functions (I wrote) compiled in a DLL where I had the .lib file from MSVC. (Actually, it looks like ada does not need the .lib file like the MSVC linker does -- interesting. But I still need to know the name of the DLL.) I'm not sure of the names of the DLL files, lib files or .o files for calling opendir (and friends like readdir) or FindFirstFile/FindNextFile from ada because I don't know what to google search for. Can someone point me to some examples? Thanks! Siegfried -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple