BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kdup - duplicate an existing khoros transport descriptor

LIBRARY CALL

int kdup(
   int id)

INPUT

OUTPUT

none

RETURN VALUE

the newly dup'ed descriptor on success, or -1 upon failure

DESCRIPTION

kdup() is used to duplicate an existing khoros transport descriptor. The "id" is integer index in the process's transport descriptor table. The new descriptor returned kdup() will be the lowest table entry id.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

If too many descriptors are active then errno will be set to EMFILE and -1 will be returned. If id is not a valid or active descriptor then errno will be set to EBADF and -1 will be returned.

RESTRICTIONS

none

MODIFICATION

none

FILES

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

SEE ALSO

kutils(3)

COPYRIGHT

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