Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 1996 23:13:07 -0700 (PDT)
From:      Jeffrey Hsu <hsu>
To:        jb@cimlogic.com.au
Cc:        hackers@FreeBSD.org
Subject:   Re: libc_r bug
Message-ID:  <199609220613.XAA28775@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
  > _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?



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