From owner-freebsd-questions Mon Sep 13 16: 4:41 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sand2.global.net.uk (sand2.global.net.uk [195.147.246.100]) by hub.freebsd.org (Postfix) with ESMTP id BA9BE14CAA for ; Mon, 13 Sep 1999 16:04:31 -0700 (PDT) (envelope-from mark@globalnet.co.uk) Received: from pe7s05a02.client.global.net.uk ([195.147.149.232] helo=marder-1.) by sand2.global.net.uk with esmtp (Exim 2.05 #1) id 11Qf9B-0002AV-00; Tue, 14 Sep 1999 00:04:30 +0100 Received: (from mark@localhost) by marder-1. (8.9.2/8.8.8) id XAA00351; Mon, 13 Sep 1999 23:56:10 +0100 (BST) (envelope-from mark) Date: Mon, 13 Sep 1999 23:56:09 +0100 From: Mark Ovens To: "Michael W. Akers" Cc: "questions@FreeBSD.ORG" Subject: Re: Where's the source Luke? Message-ID: <19990913235609.A276@marder-1> References: <01BEFDE7.E679FEA0@c67050-a.plstn1.sfba.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <01BEFDE7.E679FEA0@c67050-a.plstn1.sfba.home.com>; from Michael W. Akers on Mon, Sep 13, 1999 at 01:00:04PM -0700 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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