The "Errors" section of the fcntl(2) man page contains the following:- [EMFILE] Cmd is F_DUPFD and the maximum allowed number of file de- scriptors are currently open. ... [EMFILE] The argument cmd is F_DUPED and the maximum number of file descriptors permitted for the process are already in use, or no file descriptors greater than or equal to arg are available. However, there is no such cmd as FD_DUPED. Fix: Assuming F_DUPED is a typo and the second entry was meant to replace the first, apply this diff in /usr/src/lib/libc/sys:- How-To-Repeat: man fcntl
State Changed From-To: open->closed Suggested fix applied.