Oracle Solaris Studio 12.4 Man Pages

Exit Print View

Updated: January 2015
 
 

rename(3F)

Name

rename - rename a file

Synopsis

integer function rename (from, to)
character*(*) from, to

Description

The argument from must be the path name of an existing file. The argument to is the new path name for the file. If to exists, then both from and to must be the same type of file, and must reside on the same file system. If to exists, it is removed first.

The returned value is 0 if successful, a system error code otherwise.

Files

libfui.a

See also

rename(2), perror(3F)

Bugs

Path names cannot be longer than MAXPATHLEN as defined in <sys/param.h>.