From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: recursing through directories Date: Mon, 22 Apr 2002 17:06:59 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1019488163 680 127.0.0.1 (22 Apr 2002 15:09:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2002 15:09:23 +0000 (UTC) Cc: Emacs developers Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16zfRT-0000Ar-00 for ; Mon, 22 Apr 2002 17:09:23 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16zfSD-0007ct-00 for ; Mon, 22 Apr 2002 17:10:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zfRH-0006Nh-00; Mon, 22 Apr 2002 11:09:11 -0400 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16zfPC-0006II-00; Mon, 22 Apr 2002 11:07:02 -0400 Original-Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 96D9B1E425; Mon, 22 Apr 2002 17:07:01 +0200 (MEST) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f Original-To: Francesco Potorti` X-Yow: Dehydrated EGGS are STREWN across ROULETTE TABLES.. In-Reply-To: (Francesco Potorti`'s message of "Mon, 22 Apr 2002 16:48:32 +0200") Original-Lines: 21 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3038 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3038 Francesco Potorti` writes: |> I am going to add a new functionality to etags (by popular request). |> |> Until now, when a directory name was given, etags would raise an error. |> I want etags to recurse through it and look for source files. |> |> Looking at the libc functions, I think that scandir is the most useful |> for this job. Is it standard enough? The man page says it is |> conformant to bsd4.3, so I should have no problems. The fact is that |> the etags source is very conservative about systems compatibility. Maybe ftw would be better, since it's POSIX (scandir isn't). Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."