From owner-freebsd-arch Sat Mar 16 7:58: 5 2002 Delivered-To: freebsd-arch@freebsd.org Received: from green.bikeshed.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 39B8237B400; Sat, 16 Mar 2002 07:58:00 -0800 (PST) Received: from localhost (green@localhost) by green.bikeshed.org (8.11.6/8.11.6) with ESMTP id g2GFvqt45950; Sat, 16 Mar 2002 10:57:52 -0500 (EST) (envelope-from green@green.bikeshed.org) Message-Id: <200203161557.g2GFvqt45950@green.bikeshed.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Poul-Henning Kamp Cc: Bruce Evans , "M. Warner Losh" , des@ofug.org, arch@FreeBSD.ORG Subject: Re: HEADS UP: caddr_t sweep In-Reply-To: Your message of "Sat, 16 Mar 2002 13:10:50 +0100." <37367.1016280650@critter.freebsd.dk> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 16 Mar 2002 10:57:51 -0500 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > I would like the argument in ioctl funtions to either become > a void * argument or for caddr_t to become a void *. Pointer arithmetic is defined for char *. The void type has no size and therefore pointer arithmetic is not defined for it (except as a hack in GCC...). The problem with caddr_t being a char * is that C does not actually require that every pointer can be coerced to/from char *, but it does require that for void *. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org <> bfeldman@tislabs.com \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message