Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 1996 18:27:58 -0700
From:      Julian Elischer <julian@whistle.com>
To:        Michael Hancock <michaelh@cet.co.jp>
Cc:        Jeffrey Hsu <hsu@freefall.freebsd.org>, jb@cimlogic.com.au, hackers@FreeBSD.org
Subject:   Re: libc_r bug
Message-ID:  <3245E79E.6EEA4806@whistle.com>
References:  <Pine.SV4.3.93.960923100330.11191C-100000@parkplace.cet.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Hancock wrote:
> 
> On Sat, 21 Sep 1996, Jeffrey Hsu wrote:
> 
> >   > _thread_fd_table_init() just sets up
> >   > the table for a fd. fds 0, 1 and 2 don't have to be valid.
> >
> > Since we can't tell whether a given fd might need a call to
> > _thread_fd_table_init() or not, the correctness before all else
> > principle would argue for either pre-allocating all the fd entries
> > or doing it on demand by placing a call to _thread_fd_table_init()
> > in write() and all the other places where it might be needed.  Of
> > these two, I prefer the second.  What about you?
> >
> 
> I prefer on demand too.
but what's the overhead on every file operation?

> 
> Regards,
> 
> Mike Hancock



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3245E79E.6EEA4806>