From owner-freebsd-hackers Tue Apr 22 08:21:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA19854 for hackers-outgoing; Tue, 22 Apr 1997 08:21:18 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id IAA19847 for ; Tue, 22 Apr 1997 08:21:08 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA09447; Tue, 22 Apr 1997 11:20:04 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Tue, 22 Apr 1997 11:20 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.3/8.7.3) with ESMTP id KAA28712; Tue, 22 Apr 1997 10:40:26 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.3/8.6.9) id KAA04079; Tue, 22 Apr 1997 10:46:44 -0400 (EDT) Date: Tue, 22 Apr 1997 10:46:44 -0400 (EDT) From: Thomas David Rivers Message-Id: <199704221446.KAA04079@lakes.water.net> To: ponds!staff.psinet.net.au!adrian, danny@panda.hilink.com.au Subject: Re: 64 bit number definitions? Cc: ponds!FreeBSD.ORG!freebsd-hackers Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Daniel O'Callaghan writes > > On Tue, 22 Apr 1997, Adrian Chadd wrote: > > > Is there anywhere a 64 bit type in C I can get my hands on? > > (the longest i've seen builtin to the compiler is the unsigned long, but I > > commonly write more than 4 gigabytes to tape at once). > > > > Which reminds me, freebsd's GNU tar apparently uses an "int" type for > > tot_written, that doesn't look like it cant count over 32k bytes. > > File offsets are described as off_t which is a quad_t, which is a 'long > long'. > > I don't know why off_t is not u_quad_t (unsigned long long). > > Snuggle up and read /usr/include/sys/types.h before going to sleep tonight. > > Danny > Just a guess - but probably for negative offsets to lseek(). - Dave Rivers -