From owner-cvs-all Wed May 6 18:30:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA06529 for cvs-all-outgoing; Wed, 6 May 1998 18:30:15 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA06420 for ; Wed, 6 May 1998 18:29:58 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id BAA05083; Thu, 7 May 1998 01:58:26 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199805070058.BAA05083@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Mike Smith cc: John Birrell , committers@FreeBSD.ORG Subject: Re: cvs commit: src/sys/sys termios.h In-reply-to: Your message of "Wed, 06 May 1998 15:34:51 PDT." <199805062234.PAA00632@antipodes.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 07 May 1998 01:58:26 +0100 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > > To get a working FreeBSD/Alpha using a NetBSD kernel, I want to make as > > few changes to FreeBSD sources as possible, and avoid destabilizing i386 > > in the process. On alpha, that means int is 32 bits, long is 64 bits. > > Where there are variables in user-space that are passed to the kernel in > > FreeBSD/NetBSD and the size of these variables differs when compiled on > > alpha, I change the variable so that there is no effective change to i386. > > This commonly means that things coded as long and used as 32-bit integers > > are changed to int. And pointers that are cast to int are changed to cast > > to long. > > Is there a serious impediment to using *int32_t/*int64_t instead? > These give you explicitly-sized storage, and make it clear that you > mean them to stay that way... The one *real* pain in the a** about int32_t/int64_t is that they must be cast in printf()/scanf()s. > -- > \\ Sometimes you're ahead, \\ Mike Smith > \\ sometimes you're behind. \\ mike@smith.net.au > \\ The race is long, and in the \\ msmith@freebsd.org > \\ end it's only with yourself. \\ msmith@cdrom.com -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message