From owner-freebsd-hackers Mon Nov 9 12:08:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA15388 for freebsd-hackers-outgoing; Mon, 9 Nov 1998 12:08:29 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA15379 for ; Mon, 9 Nov 1998 12:08:27 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by freefall.freebsd.org (8.8.8/8.8.5) with ESMTP id MAA28260 for ; Mon, 9 Nov 1998 12:08:30 -0800 (PST) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id MAA00487; Mon, 9 Nov 1998 12:06:12 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199811092006.MAA00487@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Dan Nelson cc: Thomas David Rivers , freebsd-hackers@freefall.cdrom.com Subject: Re: A stdio question... does fpos_t really need to be 'long long'? In-reply-to: Your message of "Mon, 09 Nov 1998 11:09:55 CST." <19981109110955.A5248@emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 09 Nov 1998 12:06:12 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In the last episode (Nov 09), Thomas David Rivers said: > > Ok - here's a question for the stdio internal gurus... > > > > ftell() is defined to return a 'long' (32 bits). > > fpos_t is defined as a 'long long' (64 bits). > > fgetpos() accepts an fpos_t as it's second argument, and is > > implemented as: > > > > retval = (*pos = ftell(fp)) == (fpos_t) -1; > > return (retval); > > > > If this is the case... then why is fpos_t a 'long long'? If, in > > fact, it can never be set that large? > > I noticed this back in April and commented on it. I believe the > consensus was that fsetpos()/fgetpos()/fseek()/ftell() should be > wrappers for the X/Open functions fseeko() and ftello(), which take > off_t arguments. > > Unfortunately, I never submitted patches, and neither did anyone else. > > -Dan Nelson > dnelson@emsphone.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message So submit them, dammit! 8) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message