From owner-freebsd-hackers Fri Jun 16 18:15:12 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA26852 for hackers-outgoing; Fri, 16 Jun 1995 18:15:12 -0700 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id SAA26846 for ; Fri, 16 Jun 1995 18:15:09 -0700 Received: by sequent.kiae.su id AA13813 (5.65.kiae-2 ); Sat, 17 Jun 1995 05:14:06 +0400 Received: by sequent.KIAE.su (UUMAIL/2.0); Sat, 17 Jun 95 05:14:05 +0400 Received: (from ache@localhost) by astral.msk.su (8.6.8/8.6.6) id FAA00173; Sat, 17 Jun 1995 05:11:48 +0400 To: Terry Lambert Cc: hackers@freebsd.org, peter@haywire.DIALix.COM References: <9506161732.AA12315@cs.weber.edu> In-Reply-To: <9506161732.AA12315@cs.weber.edu>; from Terry Lambert at Fri, 16 Jun 95 11:32:22 MDT Message-Id: Organization: Olahm Ha-Yetzirah Date: Sat, 17 Jun 1995 05:11:47 +0400 (MSD) X-Mailer: Mail/@ [v2.38 FreeBSD] From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= aka "Andrey A. Chernov, Black Mage" X-Class: Fast Subject: Re: penalty of using off_t for arithmatic with gcc's long Lines: 30 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1274 Sender: hackers-owner@freebsd.org Precedence: bulk In message <9506161732.AA12315@cs.weber.edu> Terry Lambert writes: >> 1) fseek argument: it is "long" per POSIX standard. You can't >> read > 2GB in POSIX enviroment in any case with 4bytes longs >> using fseek. >This is not true. The off_t typedef "must be an atomic type" per >POSIX. 1) I say nothing here about atomic off_t, I say about "long" type of fseek argument, you can see it in any POSIX docs copy. 2) In my POSIX specs (maybe I look at wrong place?) I don't read that off_t must be atomic, it says "integral". >> If you include , you don't need to cast lseek() argument to off_t. >Because the prototype hides the bogosity from you ...a bad thing if you >move the code between non-POSIX/non-ANSI 100% compliant systems -- like >BSD. BSD just doesn't have this particular non-compliance bogosity, >which doesn't guarantee that it doesn't have others. My NN patch make it works even without prototype hiding using correct variable/cast types directly. -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849