Date: Sun, 31 Dec 2000 12:30:12 +0100 From: alex@big.endian.de (Alexander Langer) To: audit@freebsd.org Subject: _BSD_TIME_T in i386 to int Message-ID: <20001231123012.A7652@cichlids.cichlids.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001231123012.A7652>