fd-dup2

Name

fd-dup2 -- Dups an fd to a particular fd.

Type: primop

Synopsis

fd-dup2( fromfd tofd, rc);

Arguments

fromfd

An instance of <fixnum>

tofd

An instance of <fixnum>

Return Values

rc

An instance of <fixnum>

Description

Copies a file descriptor to a particular one. [Check dup2() for additional semantics like closing tofd or not, etc.]