*BSD News Article 92998


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!izvestia.its.unimelb.edu.au!cs.mu.OZ.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!news.maxwell.syr.edu!worldnet.att.net!howland.erols.net!math.ohio-state.edu!jussieu.fr!fdn.fr!r2d2.fdn.org!sphynx.fdn.fr!caussep
From: caussep@sphynx.fdn.fr (Philippe CAUSSE)
Subject: Re: _BSD_OFF_T_ type long long
X-Newsreader: TIN [version 1.2 PL2]
Organization: individual - paris - france
Message-ID: <E84t3v.xF@sphynx.fdn.fr>
References: <33448ed9.0@usamrid.isd.net>
Date: Fri, 4 Apr 1997 21:02:19 GMT
Lines: 22
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38625

Jim Drinkwater (jd@isd.net) wrote:
: Why is _BSD_OFF_T_ defined as type long long (see below)
: in <machine/ansi.h>?  I am running FreeBSD 2.2-961014-SNAP.


: #define _BSD_OFF_T_     long long               /* file offset */

This has to be so because some data structures use 64bits integers,
notably in the file-system... This allows files bigger than 4Gb :-)

Under gcc, a "long long" is a 64-bits signed integer.
In C, try:  printf("Size is %d\n", sizeof(long long));

: Thanks in advance.

: ---
: Jim Drinkwater
: jd@isd.net
-- 
-------------------------------------------------------------------
P. Causse			http://www.fdn.fr/~pcausse
4.4BSD/X11R6/Motif-2.0/C++	mailto:caussep@sphynx.fdn.fr (UUCP)