Liverpoololympia.com

Just clear tips for every day

Lifehacks

Does dup2 copy a file?

Does dup2 copy a file? The dup() system call creates a copy of a file descriptor. It uses the lowest-numbered unused descriptor for the new descriptor. If the copy is successfully created, then the original and copy file descriptors may Read more…