Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 1998 16:38:53 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        Thomas David Rivers <rivers@dignus.com>, freebsd-hackers@freefall.cdrom.com
Subject:   Re: A stdio question... does fpos_t really need to be 'long long'?
Message-ID:  <19981109163853.A20712@emsphone.com>
In-Reply-To: <199811092006.MAA00487@dingo.cdrom.com>; from "Mike Smith" on Mon Nov  9 12:06:12 GMT 1998
References:  <19981109110955.A5248@emsphone.com> <199811092006.MAA00487@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 09), Mike Smith said:
> Dan said:
> > 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)

grumble grumble.. :)

Ok.  Could someone go over PR bin/8637 and tell me if it looks okay?
I've rebuilt libc on my machine and it seems to work; I can seek to the
end of a 5gb datafile and get my position correctly.

The only bad thing in my patch is the error you get if you ftell() on a
FILE* that is positioned past 2 gig.  errno.h doesn't have an
EOVERFLOW, which is what X/Open says ftell should return.  I put EFBIG
in instead.

Whoops.  Something I realize I forgot already is manpage tweaks to
document fseeko and ftello.

	-Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981109163853.A20712>