From owner-freebsd-audit Sun Dec 31 3:30:27 2000 From owner-freebsd-audit@FreeBSD.ORG Sun Dec 31 03:30:24 2000 Return-Path: Delivered-To: freebsd-audit@freebsd.org Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by hub.freebsd.org (Postfix) with ESMTP id 30A2A37B400 for ; Sun, 31 Dec 2000 03:30:24 -0800 (PST) Received: from fwd02.sul.t-online.com by mailout06.sul.t-online.com with smtp id 14Cggw-0001AE-02; Sun, 31 Dec 2000 12:30:22 +0100 Received: from neutron.cichlids.com (520050424122-0001@[62.157.56.132]) by fmrl02.sul.t-online.com with esmtp id 14Cggm-0990qWC; Sun, 31 Dec 2000 12:30:12 +0100 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 29911AB0C for ; Sun, 31 Dec 2000 12:30:40 +0100 (CET) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id A579714A70; Sun, 31 Dec 2000 12:30:12 +0100 (CET) Date: Sun, 31 Dec 2000 12:30:12 +0100 To: audit@freebsd.org Subject: _BSD_TIME_T in i386 to int Message-ID: <20001231123012.A7652@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. From: alex@big.endian.de (Alexander Langer) X-Sender: 520050424122-0001@t-dialin.net Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello folks! We have been discussing the type of _BSD_TIME_T_ some months ago. BDE mentioned, that in his tree he has changed the type of _BSD_TIME_T_ to match the alpha version, i.e. "int" and not long. What about this patch in this case? I have a working kernel running with this patch, though I didn't test "make world". However, since sizeof(int) == sizeof(long) on IA32, this really shouldn't make a problem. _But_, it detects applications who think _BSD_TIME_T_ is long in error. Opinions? cvs diff: Diffing . Index: ansi.h =================================================================== RCS file: /usr/home/ncvs/src/sys/i386/include/ansi.h,v retrieving revision 1.19 diff -u -r1.19 ansi.h --- ansi.h 2000/10/27 11:45:26 1.19 +++ ansi.h 2000/12/30 19:53:10 @@ -52,7 +52,7 @@ #define _BSD_RUNE_T_ _BSD_CT_RUNE_T_ /* rune_t (see below) */ #define _BSD_SIZE_T_ unsigned int /* sizeof() */ #define _BSD_SSIZE_T_ int /* byte count or error */ -#define _BSD_TIME_T_ long /* time()... */ +#define _BSD_TIME_T_ int /* time()... */ #define _BSD_TIMER_T_ int /* timer_gettime()... */ #define _BSD_WCHAR_T_ _BSD_CT_RUNE_T_ /* wchar_t (see below) */ -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message