From owner-freebsd-questions Mon Sep 13 16:46:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 0AE56153F8 for ; Mon, 13 Sep 1999 16:46:30 -0700 (PDT) (envelope-from mwakers@home.com) Received: from c67050-a.plstn1.sfba.home.com ([24.5.221.231]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with SMTP id <19990913234628.JFRV24479.mail.rdc1.sfba.home.com@c67050-a.plstn1.sfba.home.com>; Mon, 13 Sep 1999 16:46:28 -0700 Received: by c67050-a.plstn1.sfba.home.com with Microsoft Mail id <01BEFE08.02B56B70@c67050-a.plstn1.sfba.home.com>; Mon, 13 Sep 1999 16:49:57 -0700 Message-ID: <01BEFE08.02B56B70@c67050-a.plstn1.sfba.home.com> From: "Michael W. Akers" To: 'Mark Ovens' Cc: "questions@FreeBSD.ORG" Subject: RE: Where's the source Luke? Date: Mon, 13 Sep 1999 16:49:55 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark, At least in FBSD the files ARE within the source tree (somewhere). In MS you never know where the heck you will find a critical file. :P Mike Akers "May the Daemon be your guiding light ... ~}:P" P.S. What I wouldn't give to have a light saber staff at some of these meetings I go to. POW! ---------- From: Mark Ovens [SMTP:mark@dogma.freebsd-uk.eu.org] Sent: Monday, September 13, 1999 3:56 PM To: Michael W. Akers Cc: questions@FreeBSD.ORG Subject: Re: Where's the source Luke? On Mon, Sep 13, 1999 at 01:00:04PM -0700, Michael W. Akers wrote: > Mark, > 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. > Mike Akers > M. Akers Enterprises > > > ---------- > From: Mark Ovens [SMTP:mark@dogma.freebsd-uk.eu.org] > Sent: Monday, September 13, 1999 12:08 PM > To: questions@FreeBSD.ORG > Subject: Where's the source Luke? > > 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()''. > > I'm beginning to think that a call to ioctl() gets mapped to some > function specific to the device. > > The particular instance I'm interested in is in video_mode() in > vidcontrol.c: > > if (*index < argc) { > for (i = 0; modes[i].name != NULL; ++i) { > if (!strcmp(argv[*index], modes[i].name)) { > mode = modes[i].mode; > break; > } > } > > if (modes[i].name == NULL) > return; > =====>> if (ioctl(0, mode, NULL) < 0) <<=============== > warn("cannot set videomode"); > > Thanks. > > -- > 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 > > > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message