From owner-freebsd-hackers Sun Jul 23 11:54:50 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mout2.silyn-tek.de (mout2.silyn-tek.de [194.25.165.70]) by hub.freebsd.org (Postfix) with ESMTP id 37FA537B6C8; Sun, 23 Jul 2000 11:54:44 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from [192.168.32.34] (helo=mx2.silyn-tek.de) by mout2.silyn-tek.de with esmtp (Exim 3.13 #1) id 13GQtc-000287-00; Sun, 23 Jul 2000 20:54:40 +0200 Received: from p3e9d38dd.dip0.t-ipconnect.de ([62.157.56.221] helo=neutron.cichlids.com) by mx2.silyn-tek.de with esmtp (Exim 3.13 #1) id 13GQtZ-0004by-00; Sun, 23 Jul 2000 20:54:37 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 21D3CAB91; Sun, 23 Jul 2000 20:56:33 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 3A75D14BAF; Sun, 23 Jul 2000 20:54:37 +0200 (CEST) Date: Sun, 23 Jul 2000 20:54:37 +0200 To: bde@freebsd.org, phk@freebsd.org, hackers@freebsd.org Subject: type of _BSD_TIME_T_ in machine/ansi.h Message-ID: <20000723205437.A10537@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! Currently, I see the following: root@parca /sys $ grep _BSD_TIME_T {alpha,i386}/include/ansi.h alpha/include/ansi.h:#define _BSD_TIME_T_ int /* time() */ i386/include/ansi.h:#define _BSD_TIME_T_ long /* time()... */ I wonder if we want to change that to __int32_t in both files? Additionally, I have the following patch, which is needed at the moment to suppress warnings (on alpha): Index: kern_shutdown.c =================================================================== RCS file: /usr/home/ncvs/src/sys/kern/kern_shutdown.c,v retrieving revision 1.76 diff -u -r1.76 kern_shutdown.c --- kern_shutdown.c 2000/07/04 11:25:22 1.76 +++ kern_shutdown.c 2000/07/23 18:20:22 @@ -175,21 +175,37 @@ printf("Uptime: "); f = 0; if (ts.tv_sec >= 86400) { +#ifdef __alpha__ + printf("%dd", ts.tv_sec / 86400); +#else printf("%ldd", ts.tv_sec / 86400); +#endif ts.tv_sec %= 86400; f = 1; } if (f || ts.tv_sec >= 3600) { +#ifdef __alpha__ + printf("%dh", ts.tv_sec / 3600); +#else printf("%ldh", ts.tv_sec / 3600); +#endif ts.tv_sec %= 3600; f = 1; } if (f || ts.tv_sec >= 60) { +#ifdef __alpha__ + printf("%dm", ts.tv_sec / 60); +#else printf("%ldm", ts.tv_sec / 60); +#endif ts.tv_sec %= 60; f = 1; } +#ifdef __alpha__ + printf("%ds\n", ts.tv_sec); +#else printf("%lds\n", ts.tv_sec); +#endif } /* -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message