RENAME(2)
NAME
rename − rename a file
SYNOPSIS
int rename(old-pathname,new-pathname)
char *old-pathname,*new-pathname;
DESCRIPTION
The AUX system call rename renames a file. Both arguments are null-terminated character strings that represent valid pathnames. The new pathname must not already exist, and both pathnames must reside in the same logical volume.
SEE ALSO
link(2), DOMAIN C User’s Guide.
DIAGNOSTICS
rename returns 0 on success and -1 on failure, with errno set to indicate the error.