BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

krename - rename a khoros transport from path1 to path2

LIBRARY CALL

int krename(
   const char *oldname,
   const char *newname)

INPUT

OUTPUT

none

RETURN VALUE

0 on success, -1 on failure and sets errno to indicate the error

DESCRIPTION

krename() is used to move the contents from one file to another. If the two files are standard UNIX files then krename() simply use the system rename(), but if this fails then the khoros transport mechanisms are used to copy the data from the first file to the second, and then the first is unlinked using kunlink().

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

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.