From owner-freebsd-questions Tue Sep 14 12:38:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sand4.global.net.uk (sand4.global.net.uk [194.126.80.248]) by hub.freebsd.org (Postfix) with ESMTP id 6396B151EF for ; Tue, 14 Sep 1999 12:38:29 -0700 (PDT) (envelope-from mark@globalnet.co.uk) Received: from p54s04a02.client.global.net.uk ([195.147.148.85] helo=marder-1.) by sand4.global.net.uk with esmtp (Exim 2.12 #1) id 11QyP8-0003vu-00; Tue, 14 Sep 1999 20:38:14 +0100 Received: (from mark@localhost) by marder-1. (8.9.2/8.8.8) id UAA00877; Tue, 14 Sep 1999 20:29:50 +0100 (BST) (envelope-from mark) Date: Tue, 14 Sep 1999 20:29:50 +0100 From: Mark Ovens To: Greg Lehey Cc: Ben Smithurst , "Michael W. Akers" , questions@freebsd.org Subject: Re: Where's the source Luke? Message-ID: <19990914202949.A278@marder-1> References: <19990913200752.A2529@marder-1> <19990913222616.A48265@lithium.scientia.demon.co.uk> <01BEFDE7.E679FEA0@c67050-a.plstn1.sfba.home.com> <19990913235609.A276@marder-1> <19990914115142.Z10106@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19990914115142.Z10106@freebie.lemis.com>; from Greg Lehey on Tue, Sep 14, 1999 at 11:51:42AM +0930 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Sep 14, 1999 at 11:51:42AM +0930, Greg Lehey wrote: > On Monday, 13 September 1999 at 23:56:09 +0100, Mark Ovens wrote: > > On Mon, Sep 13, 1999 at 01:00:04PM -0700, Michael W. Akers wrote: > >> > >> Found it in /usr/src/lib/libstand > > > > Thanks:) > > > > Since it's part of the kernel I figured it would be under /usr/src/sys. > > Guess I should have started one level higher. > > No, that's for the standalone utilities. > Is this not the one I want as it's a call from vidcontrol(1) I want to follow? > On Monday, 13 September 1999 at 22:26:16 +0100, Ben Smithurst wrote: > > Mark Ovens wrote: > > > >> Can someone tell me where to find the source code for ioctl()? I've > >> searched all the .c files under /usr/src/sys and have found plenty > >> of functions called xxxx_ioctl, e.g. kbd_ioctl(), but not a plain > >> ``ioctl()''. > > > > It seems to be in /sys/kern/sys_generic.c. Just grep for ^ioctl > > This is the correct answer. Use ctags or etags to find function > definitions. Doh! now I realized why I missed it when I grep'd the whole tree; I'm used to putting the return type on the same line, not the previous line, so just seeing: ./kern/sys_generic.c:391: ioctl(p, uap) it looks like a call (OK, if it was it would have a trailing ``;'', but that is easy to miss in several hundred lines of output). Thanks anyway for the info. > > Greg > -- > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- STATE-OF-THE-ART: Any computer you can't afford. OBSOLETE: Any computer you own. ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message