Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rename(3F) — Sun WorkShop 5.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rename(2)

perror(3F)

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

libF77.a

SEE ALSO

rename(2), perror(3F)

BUGS

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

SunOS 5.0  —  Last change: 07 July 1995

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026