*BSD News Article 84379


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!cs.utexas.edu!howland.erols.net!news.mathworks.com!uunet!in2.uu.net!204.191.160.4!van-bc!news.mindlink.net!nntp.portal.ca!cynic.portal.ca!not-for-mail
From: cjs@cynic.portal.ca (Curt Sampson)
Newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals
Subject: Re: Solaris 2.6
Date: 6 Dec 1996 09:27:05 -0800
Organization: Internet Portal Services, Inc.
Lines: 23
Distribution: inet
Message-ID: <589l19$shp@cynic.portal.ca>
References: <32986299.AC7@mail.esrin.esa.it> <5844u3$mb@saltmine.radix.net> <587t33$2va@anorak.coverform.lan> <casper.32a7ec57@mail.fwi.uva.nl>
NNTP-Posting-Host: cynic.portal.ca
Xref: euryale.cc.adfa.oz.au comp.unix.solaris:91627 comp.unix.bsd.misc:1706 comp.unix.internals:11486

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.

Or has Sun decided to rewrite ANSI C along with these other changes?

BTW, long is CPU-dependent, not OS-dependent. I run NetBSD on an
i386, a Sun 3/60, a Sparc and an alpha, the first three use 32-bit
longs, the last 64-bit longs.

cjs
-- 
Curt Sampson    cjs@portal.ca		Info at http://www.portal.ca/
Internet Portal Services, Inc.	
Vancouver, BC   (604) 257-9400		De gustibus, aut bene aut nihil.