Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2002 19:09:52 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Alfred Perlstein <bright@mu.org>, tanimura@freebsd.org, dillon@freebsd.org, smp@freebsd.org
Subject:   Re: fd locking.
Message-ID:  <3C40FA80.89C73745@mindspring.com>
References:  <XFMail.020112174456.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
> Could you change these to return a reference to the fp like crhold()?
> 
> Thus you end up with code like
> 
> newfp = fhold(oldfp) which reads better and documents what the old
> and new references are.  It's actually a Terry suggestion. :)

FWIW, the reason I wanted this was to let me instrument the
operations transparently to the caller, which you can't do
unless this is the way it works.  That it also looks pretty
is just gravy.  8-).

-- Terry

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C40FA80.89C73745>