.he 'DUP (II)'1/15/73'DUP (II)'
NAME dup -- duplicate an open file descriptor
SYNOPSIS (file descriptor in r0)
sys dup / dup = 41.; not in assembler
a file descriptor returned from
will allocate another file descriptor
The new file descriptor is returned in r0.
is used more to manipulate the value
duplicate a file descriptor.
Since the algorithm to allocate
combinations of dup
\b\b\b___
and close
\b\b\b\b\b_____ can be
manipulate file descriptors
manipulating standard input and/or
SEE ALSO creat(II), open(II), close(II)
the given file descriptor is invalid;
there are already 10 open files.