From owner-cvs-src@FreeBSD.ORG Sat Aug 5 13:45:35 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6E1616A4DF for ; Sat, 5 Aug 2006 13:45:35 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from antivirus.uni-rostock.de (mailrelay1.uni-rostock.de [139.30.8.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 665A243D45 for ; Sat, 5 Aug 2006 13:45:22 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from antivirus.exch.rz.uni-rostock.de ([127.0.0.1]) by antivirus.uni-rostock.de with Microsoft SMTPSVC(6.0.3790.1830); Sat, 5 Aug 2006 15:45:21 +0200 Received: from antivirus.uni-rostock.de (unverified) by antivirus.exch.rz.uni-rostock.de (Content Technologies SMTPRS 4.3.20) with ESMTP id for ; Sat, 5 Aug 2006 15:45:21 +0200 Received: from mail pickup service by antivirus.uni-rostock.de with Microsoft SMTPSVC; Sat, 5 Aug 2006 15:45:21 +0200 X-SCL: 4 67.7% Received: from mail.uni-rostock.de ([139.30.8.11]) by antivirus.uni-rostock.de with Microsoft SMTPSVC (6.0.3790.1830); Sat, 5 Aug 2006 15:45:13 +0200 Received: from conversion-daemon.mail2.uni-rostock.de by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005)) id <0J3J00I010UJ7A@mail.uni-rostock.de> (original mail from joerg@britannica.bec.de) for cvs-src@freebsd.org; Sat , 05 Aug 2006 15:45:12 +0200 (MEST) Received: from britannica.bec.de (storm.stura.uni-rostock.de [139.30.252.72]) by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005)) with ESMTP id <0J3J008HS27CZK@mail.uni-rostock.de> for cvs-src@freebsd.org; Sat, 05 Aug 2006 15:45:12 +0200 (MEST) Received: by britannica.bec.de (Postfix, from userid 1000) id D43015B12; Sat, 05 Aug 2006 15:44:47 +0200 (CEST) Date: Sat, 05 Aug 2006 15:44:47 +0200 From: Joerg Sonnenberger In-reply-to: <200608042347.k74NlU5k073307@repoman.freebsd.org> To: cvs-src@freebsd.org Message-id: <20060805134447.GC2020@britannica.bec.de> MIME-version: 1.0 Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 References: <200608042347.k74NlU5k073307@repoman.freebsd.org> X-OriginalArrivalTime: 05 Aug 2006 13:45:13.0265 (UTC) FILETIME=[6057EA10:01C6B895] Subject: Re: cvs commit: src/sys/sys stat.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2006 13:45:35 -0000 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