From owner-freebsd-hackers Sat Sep 21 23:13:08 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA28792 for hackers-outgoing; Sat, 21 Sep 1996 23:13:08 -0700 (PDT) Received: (from hsu@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA28775; Sat, 21 Sep 1996 23:13:07 -0700 (PDT) Date: Sat, 21 Sep 1996 23:13:07 -0700 (PDT) From: Jeffrey Hsu Message-Id: <199609220613.XAA28775@freefall.freebsd.org> To: jb@cimlogic.com.au Subject: Re: libc_r bug Cc: hackers@FreeBSD.org Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > _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?