ICI Modules: sys: dup

Modules by name : by type


int = sys.dup(int [, int] )


Duplicate an existing file descriptor and returns the new one. If one argument is passed that file descriptor is duplicated by calling the dup system call, if two arguments are passed the dup2 system call is used and the return value will be the same as the second argument.