From owner-freebsd-alpha Tue Dec 22 04:24:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA09072 for freebsd-alpha-outgoing; Tue, 22 Dec 1998 04:24:09 -0800 (PST) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from ics.com (ics.com [140.186.40.192]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA09060 for ; Tue, 22 Dec 1998 04:24:05 -0800 (PST) (envelope-from kaleb@ics.com) Received: from kaleb.keithley.belmont.ma.us (pmdialin1.ics.com [140.186.40.175]) by ics.com (8.9.0.Beta5/8.9.0.Beta5) with ESMTP id HAA14640 Tue, 22 Dec 1998 07:24:00 -0500 (EST) Received: from kaleb.keithley.belmont.ma.us (localhost [127.0.0.1]) by kaleb.keithley.belmont.ma.us (8.9.1/8.9.1) with SMTP id IAA07723 for ; Tue, 22 Dec 1998 08:48:30 -0500 (EST) (envelope-from kaleb@ics.com) Message-ID: <367FA329.7566F4CF@ics.com> Date: Tue, 22 Dec 1998 08:48:26 -0500 From: "Kaleb S. KEITHLEY" Organization: Integrated Computer Solutions X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 3.0-RELEASE i386) MIME-Version: 1.0 To: freebsd-alpha@FreeBSD.ORG Subject: Re: time_t and clock_t References: <19981222211218N.simokawa@sat.t.u-tokyo.ac.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hidetoshi Shimokawa wrote: > > Hi, > > According to /usr/include/machine/ansi.h, time_t and clock_t are "int" on > alpha and "long" on i386 respectively. I know "int" on alpha and "long" on > i386 are same size 32bit, but I don't think it's resonable that time_t on > alpha is "int". FWIW, time_t and clock_t are also int on Digital Unix. > At least, "tv_sec" part of timeval is declared as "long". > Why don't we change time_t as "long"? Are time_t and clock_t supposed to be 32-bit types? I'll have to check my POSIX specs when I get to work. > It should make our life easier. How so? Using the right type name consistently should be all that's necessary to make life easier, right? -- Kaleb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message