Renames a file, FIFO, device, etc.
#include <nks/fsio.h> int NXRename ( NXPathCtx_t sourcePathCtx, const void *oldname, NXPathCtx_t targetPathCtx, const void *newname, NXBool_t overwrite);
(IN) Specifies the file system path context of the object to rename. Along with the oldname parameter, it specifies the object.
(IN) Points to the current name of an existing object.
(IN) Specifies the file system path context for the renamed object. Along with the newname parameter, it specifies the new name of the object.
(IN) Points to a new name (in Unicode or ASCII) for the specified object.
(IN) Specifies whether to overwrite the target object if it already exists.
If successful, returns 0. Otherwise, returns one of the following error codes:
NXRename renames a file object. After a file is successfully renamed, attempts to open that file by the old name fail unless the file is recreated.
The target path context must be identical to the source path context or NX_ENOTSUP is returned because the NetWare file system does not support the ability to have different handles for the source and target.