From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102533,9cb83db7783ea62a X-Google-Attributes: gid102533,public X-Google-Thread: 1164f8,9cb83db7783ea62a X-Google-Attributes: gid1164f8,public X-Google-Thread: fc721,9cb83db7783ea62a X-Google-Attributes: gidfc721,public X-Google-Thread: f9abd,9cb83db7783ea62a X-Google-Attributes: gidf9abd,public X-Google-Thread: fb420,9cb83db7783ea62a X-Google-Attributes: gidfb420,public From: campbejr@phu989.mms.sbphrd.com (John R. Campbell) Subject: Re: FS: Dec Alphastation 500/500 Must sell Date: 1997/04/30 Message-ID: #1/1 X-Deja-AN: 238494327 References: <5k35s3$pv4@aurora.cs.athabascau.ca> <5k404v$gl1@cynic.portal.ca> <5k8268$3so@cynic.portal.ca> Organization: SmithKline Beecham Pharmaceuticals Research & Development Reply-To: soup@jtan.com Newsgroups: misc.forsale.computers.workstation,alt.dec,biz.dec,biz.dec.workstations,comp.sys.dec On 30 Apr 1997 11:14:32 -0700, Curt Sampson wrote: >In article , >John R. Campbell wrote: > >> Actually, due to the architecture of Unix and the lseek() call, >> the size of a volume should not exceed that of the maximum positive >> integer value of a long (i.e. (2**31)-1, 0x7ffffff). > >No. It should not exceed the maximum positive value of the second >argument to lseek. In the case of NetBSD, lseek is declared as > > off_t lseek(int fildes, off_t offset, int whence) > >and an off_t is signed 64 bit type. Sure... *NOW* it is. I date back to the bad old days of V7, SysIII and SysV on various machines; It is only (fairly recently) that the old programs need to be altered to fit. In order to support "long long" (I prefer "very long", but this hasn't been accepted by any compiler writers) the compiler itself must allow for such a "scalar" data type (i.e. one with no sub- parts). This "off_t" type came rather late in the game and has been getting deployed. Unfortunately for us fossils, lots of "old" source code didn't consider the offset of lseek to be anything other than the old (venerable) "long int"- Sure, it is now bogus, but this is how it was defined in various prototypes. Now, remember that this means that the processor itself must do a good (competent) job of manipulating such a scalar object. I don't like depending upon a library routine to do it, even though (for many systems) it must. Also, for some systems, code compatibility with older versions of the software is important... -- John R. Campbell Speaker to Machines soup@jtan.com "As a SysAdmin, yes, I CAN read your e-mail, but I DON'T get that bored!"-me Disclaimer: I'm just a consultant at the bottom of the food chain, so, if you're thinking I speak for anyone but myself, you must have more lawyers than sense.