From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francesco Potorti` Newsgroups: gmane.emacs.devel Subject: recursing through directories Date: Mon, 22 Apr 2002 16:48:32 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1019487452 31856 127.0.0.1 (22 Apr 2002 14:57:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2002 14:57:32 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16zfG0-0008Hh-00 for ; Mon, 22 Apr 2002 16:57:32 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16zfGk-0007Kx-00 for ; Mon, 22 Apr 2002 16:58:18 +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 16zfFg-0005mn-00; Mon, 22 Apr 2002 10:57:12 -0400 Original-Received: from pot.cnuce.cnr.it ([146.48.83.182]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zf7J-0005FH-00 for ; Mon, 22 Apr 2002 10:48:34 -0400 Original-Received: from pot by pot.cnuce.cnr.it with local (Exim 3.35 #1 (Debian)) id 16zf7I-0003hj-00 for ; Mon, 22 Apr 2002 16:48:32 +0200 Original-To: Emacs developers X-fingerprint: 4B2 6187 5C3 D6B1 2E31 7666 9DF 2DC9 BE21 6115 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:3037 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3037 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. Does anyone have a snippet of code as an example of usage? Not really necessary, but it could help.