duplicate-fileno

[procedure] duplicate-fileno old [new]

Chicken: dup(2) or dup2(2). old and new should be a file descriptor. See also port->fileno.