chickadee » chicken » file » posix » duplicate-fileno

duplicate-fileno OLD #!optional NEWprocedure

If NEW is given, then the file-descriptor NEW is opened to access the file with the file-descriptor OLD. Otherwise a fresh file-descriptor accessing the same file as OLD is returned.