BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kfdup2 - duplicate an existing data transport into a specific stream

LIBRARY CALL

kfile *kfdup2(
   kfile *file1,
   kfile *file2)

INPUT

OUTPUT

none

RETURN VALUE

the newly dup'ed stream on success, or NULL upon failure

DESCRIPTION

kfdup2() is used to duplicate an existing khoros transport stream. The "file1" is an entry in the process's transport descriptor table. The newly dupedd entry will be stored in the transport table entry specified by "file2". If file2 is open then it will be closed (kfclose) before the dup of file1 is put into file2.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/kstdio.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.