Manual Page Result
0
Command: rename | Section: 3 | Source: 4.4BSD | File: rename.3
RENAME(3F) RENAME(3F)
NAME
rename - rename a file
SYNOPSIS
integer function rename (from, to)
character*(*) from, to
DESCRIPTION
From must be the pathname of an existing file. To will become the new
pathname for the file. If to exists, then both from and to must be the
same type of file, and must reside on the same filesystem. If to ex-
ists, it will be removed first.
The returned value will be 0 if successful; a system error code other-
wise.
FILES
/usr/lib/libU77.a
SEE ALSO
rename(2), perror(3F)
BUGS
Pathnames can be no longer than MAXPATHLEN as defined in <sys/param.h>.
4.2 Berkeley Distribution April 30, 1991 RENAME(3F)