Re: fdexpand() & open file tracking

2018-07-02 Thread Martin Pieuchot
On 02/07/18(Mon) 11:22, Martin Pieuchot wrote: > Let's use a array of structures to keep track of open files. This will > allow us to simplify locking when expending it. > > While here consistently use M_ZERO when (re)allocating M_FILEDESC > structures. I doubt the memset() solution makes any

fdexpand() & open file tracking

2018-07-02 Thread Martin Pieuchot
Let's use a array of structures to keep track of open files. This will allow us to simplify locking when expending it. While here consistently use M_ZERO when (re)allocating M_FILEDESC structures. I doubt the memset() solution makes any difference these days and the resulting code is simpler to