Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13448 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8568 invoked by uid 1010); 22 Oct 2004 09:45:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8314 invoked from network); 22 Oct 2004 09:45:11 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 22 Oct 2004 09:45:11 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id i9M9jAW5029682 for ; Fri, 22 Oct 2004 05:45:10 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9M9jAr29542 for ; Fri, 22 Oct 2004 05:45:10 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i9M9j9Bs009606 for ; Fri, 22 Oct 2004 10:45:09 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i9M9j8J8009605 for internals@lists.php.net; Fri, 22 Oct 2004 10:45:08 +0100 Date: Fri, 22 Oct 2004 10:45:08 +0100 To: internals@lists.php.net Message-ID: <20041022094508.GA9395@redhat.com> Mail-Followup-To: internals@lists.php.net References: <20041022062249.GA8983@redhat.com> <4e89b426041022015310a5165f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4e89b426041022015310a5165f@mail.gmail.com> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] _FILE_OFFSET_BITS=64 considered harmful From: jorton@redhat.com (Joe Orton) On Fri, Oct 22, 2004 at 09:53:14AM +0100, Wez Furlong wrote: > What I planned to do with the streams API for 5.1 was define > php_stream_off_t to be a 64-bit type (regardless of LFS support), > adjust the API where it is needed, and handle the LFS stuff centrally, > using the transitional LFS functions you mentioned if they are > present. The difference in that approach is that you introduce a bunch of new error cases on platforms *without* LFS support, where you'd have to check for passing an out-of-range 64-bit php_stream_off_t value to a function taking a 32-bit off_t. I think using php_stream_off_t = off_t or off64_t as appropriate is simpler for that reason. But both approaches are feasible, the important thing is to avoid using -D_FILE_OFFSET_BITS=64, which just breaks so much. Regards, joe