Date: Sat, 05 Aug 2006 15:44:47 +0200 From: Joerg Sonnenberger <joerg@britannica.bec.de> To: cvs-src@freebsd.org Subject: Re: cvs commit: src/sys/sys stat.h Message-ID: <20060805134447.GC2020@britannica.bec.de> In-Reply-To: <200608042347.k74NlU5k073307@repoman.freebsd.org> References: <200608042347.k74NlU5k073307@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 04, 2006 at 11:47:30PM +0000, John Birrell wrote: > Note thar FreeBSD stat() and fstat() are 64-bit functions now and Solaris > still persists with both 32- and 64-bit versions. The reason is that you need 32bit versions when you want to keep binary compatibility within e.g. libc. off_t can be 32bit and 64bit and moving to 64bit can be done by either: (1) Introduction of a new type and new functions, keeping the default as it was. This happened on Solaris and Linux. (2) Introduce a new libc major version (requiring a rebuild of everything) and make the 32bit compatibility system calls only. This is what happened on the BSDs and which removes a lot of hassles. Using stuff like stat64 is evil and NEVER be done. Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060805134447.GC2020>