binaryninja/scc-docs/dup2.txt
Giulio De Pasquale 52e9dc828b dindon
2018-12-13 18:39:52 +00:00

16 lines
417 B
Plaintext

dup2
====
:title: Shellcode Compiler Runtime
---------------------------------------------
int dup2(int oldFd, int newFd);
---------------------------------------------
Duplicates the file handle `oldFd` such that the new file handle is `newFd`. If file handle `newFd` is
already open, the existing file handle is closed. Returns the new file handle.
See also
--------
link:close.html[close],
link:dup.html[dup]