Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2000 20:54:37 +0200
From:      alex@big.endian.de (Alexander Langer)
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>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000723205437.A10537>