| 1778 | } |
| 1779 | |
| 1780 | static void |
| 1781 | fdgrowtable_exp(struct filedesc *fdp, int nfd) |
| 1782 | { |
| 1783 | int nfd1; |
| 1784 | |
| 1785 | FILEDESC_XLOCK_ASSERT(fdp); |
| 1786 | |
| 1787 | nfd1 = fdp->fd_nfiles * 2; |
| 1788 | if (nfd1 < nfd) |
| 1789 | nfd1 = nfd; |
| 1790 | fdgrowtable(fdp, nfd1); |
| 1791 | } |
| 1792 | |
| 1793 | /* |
| 1794 | * Grow the file table to accommodate (at least) nfd descriptors. |
no test coverage detected