From owner-freebsd-current@FreeBSD.ORG Wed Sep 23 12:00:09 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71F3D106566B for ; Wed, 23 Sep 2009 12:00:09 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id B5C538FC0A for ; Wed, 23 Sep 2009 12:00:08 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA25749; Wed, 23 Sep 2009 15:00:05 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4ABA0DC5.6070502@icyb.net.ua> Date: Wed, 23 Sep 2009 15:00:05 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Stefan Ehmann References: <654636.94077.qm@web63908.mail.re1.yahoo.com> <200909222244.23901.shoesoft@gmx.net> In-Reply-To: <200909222244.23901.shoesoft@gmx.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Barney Cordoba , freebsd-current@freebsd.org, pluknet Subject: Re: where is device_get_parent function defined X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2009 12:00:09 -0000 on 22/09/2009 23:44 Stefan Ehmann said the following: > On Tuesday 22 September 2009 16:21:54 Barney Cordoba wrote: >> --- On Tue, 9/22/09, pluknet wrote: > ... >>> Following style(9): >>> ### >>> The function type should be on a >>> line by itself preceding the function. >>> >>> static char * >>> function(int a1, int a2, float fl, >>> int a4) >>> ### >>> >>> So you can safely use the caret sign in regex: grep >>> ^keyword path >> Except for the 50K recursive warnings from the module build directories >> you're correct. > > In that case, I normally use: > find /usr/src/ -type f | xargs grep ^device_get_parent > > Additionally specifying -name '*.c' should even be faster. > I am surprised with this whole 'recursive' issue because in a clean source tree there are no recursive symlinks. They only come to be if a developer forgets to run 'make obj' before doing 'make' in modules directories. I think that it is a good practice to never pollute the source tree with build objects, they should belong to /usr/obj or equivalent. -- Andriy Gapon