Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 21:02:13 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Brian Somers <brian@Awfulhak.org>, Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, freebsd-arch@FreeBSD.ORG, brian@Awfulhak.org
Subject:   Re: RFC: unit_list routines 
Message-ID:  <200105232002.f4NK2DF10033@hak.lan.Awfulhak.org>
In-Reply-To: Message from Poul-Henning Kamp <phk@critter.freebsd.dk>  of "Wed, 23 May 2001 21:46:55 %2B0200." <50437.990647215@critter> 

next in thread | previous in thread | raw e-mail | index | archive | help
> In message <200105231944.f4NJiXF09637@hak.lan.Awfulhak.org>, Brian Somers write
> s:
> >> > > Using bits when there are large numbers of units gets awkward.
> >> > 
> >> > Just wrap it in macros.  I almost posted an implementation with my
> >> > last message, but decided that since it was so trivial it would be
> >> > almost insulting for me to do so.
> >> 
> >> Not true - I'm too thick skinned to be insulted :oI
> >> 
> >> I'll look at a macro implementation.
> >
> >Ok, I've thought about this :-/  I don't think it's practical to 
> >do this with bits if someone does
> >
> >  # ppp -unit 16777215
> >
> >I then have to go off and allocate an array of 0x7fffff bytes just to 
> >record the fact that someone's using a silly unit number.
> 
> If true, the rman code should have a big "XXX: rewrite" on top of it.

rman doesn't use bitmasks - I was following up on Garrett's 
suggestion that some bitmask macros should do the trick.

> -- 
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk@FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe    
> Never attribute to malice what can adequately be explained by incompetence.

-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105232002.f4NK2DF10033>