Reputation: 71
Win32 has _open()
, _open_osfhandle()
, etc. - but is there a Win32 version of fcntl(..., F_DUPFD. ...)
which can duplicate a given file descriptor, and uses the lowest available file descriptor GREATER OR EQUAL than the given arg (e.g. this is NOT Win32 _dup()
or _dup2()
!!)?
I'm basically looking for the Linux/Solaris/Illumos implementation of this fcntl()
function for Win32, or emulation code:
F_DUPFD (int)
Duplicate the file descriptor fd using the lowest-numbered
available file descriptor greater than or equal to arg.
This is different from dup2(2), which uses exactly the
file descriptor specified.
Upvotes: 0
Views: 106