[TUHS] question about V7 ls(1) vs. sys/stat.h and ls.c
Greg 'groggy' Lehey
grog at lemis.com
Fri May 23 14:17:27 AEST 2003
On Thursday, 22 May 2003 at 20:32:09 -0700, Chris Palmer wrote:
> Aharon Robbins writes:
>
>> long
>> nblock(size)
>> long size;
>> {
>> return((size+511)>>9);
>> }
>
> Unfortunately I can't answer any of your questions; I can only ask a new
> one: What's with that "511" in there?
Sector size - 1, just like the 9 is log(2) (511). It converts bytes
to sectors.
Greg
--
Finger grog at lemis.com for PGP public key
See complete headers for address and phone numbers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20030523/acb7628b/attachment.sig>
More information about the TUHS
mailing list