From mboxrd@z Thu Jan 1 00:00:00 1970 From: grog@lemis.com (Greg 'groggy' Lehey) Date: Fri, 23 May 2003 13:47:27 +0930 Subject: [TUHS] question about V7 ls(1) vs. sys/stat.h and ls.c In-Reply-To: <20030523033209.GE29449@nodewarrior.org> References: <200305220924.h4M9OPki011867@localhost.localdomain> <20030523033209.GE29449@nodewarrior.org> Message-ID: <20030523041727.GM80220@wantadilla.lemis.com> 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: