*BSD News Article 84492


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!garlic.com!news.scruz.net!noos.hooked.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!usc!chi-news.cic.net!news.uiowa.edu!news1.icaen!dsiebert
From: dsiebert@icaen.uiowa.edu (Doug Siebert)
Newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals
Subject: Re: Solaris 2.6
Date: 6 Dec 1996 22:07:00 GMT
Organization: Iowa Computer Aided Engineering Network, University of Iowa
Lines: 25
Distribution: inet
Message-ID: <58a5e4$3kv@server05.icaen.uiowa.edu>
References: <32986299.AC7@mail.esrin.esa.it> <5844u3$mb@saltmine.radix.net> <587t33$2va@anorak.coverform.lan> <casper.32a7ec57@mail.fwi.uva.nl> <589l19$shp@cynic.portal.ca>
NNTP-Posting-Host: l-cel016.icaen.uiowa.edu
Xref: euryale.cc.adfa.oz.au comp.unix.solaris:91781 comp.unix.bsd.misc:1730 comp.unix.internals:11521

cjs@cynic.portal.ca (Curt Sampson) writes:

>In article <casper.32a7ec57@mail.fwi.uva.nl>,
>Casper H.S. Dik <casper@fwi.uva.nl> wrote:

>>BTW, how did BSD solve "ftell()"?  Did they make a long 64 bits?
>>
>>(ftell() returns a *long*, not an off_t)

>Um...what's to solve? ANSI mandates that fseek/ftell use longs,
>regardless of their size. If you need to retrieve or set a position
>that won't fit into a long, you use fgetpos/fsetpos, just like the
>standard says.


Dunno what Sun is doing for that but HP has "ftello()" in 10.20 to handle
64 bit filesizes.  I assume that's part of the large files summit changes.
When longs go to 64 bits on Solaris and HP-UX respectively this kludge,
along with many of the others, can go away.

-- 
Douglas Siebert                Director of Computing Facilities
douglas-siebert@uiowa.edu      Division of Mathematical Sciences, U of Iowa

Ack!  My reality check just bounced!!