|
|
#include <xfn/xfn.h>
int fn_ctx_rename(FN_ctx_t *ctx,
const FN_composite_name_t *oldname,
const FN_composite_name_t *newname,
unsigned int exclusive,
FN_status_t *status);
If exclusive is zero, the operation overwrites any old binding of newname. If exclusive is nonzero, the operation fails if newname is already bound.
Normal resolution always follows links. In a fn_ctx_rename() operation, resolution of oldname continues to the target context; the terminal atomic name is not resolved. If the terminal atomic name is bound to a link, the link is not followed and the operation binds newname to the link and unbinds the terminal atomic name of oldname.
In naming systems that support attributes and store the attributes along with the names, the unbind of the terminal atomic name of oldname also removes its associated attributes. It is implementation dependent whether these attributes become associated with newname.
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97