File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / man / man3 / rename.3f
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

.TH RENAME 3F "18 July 1983"
.UC 4
.SH NAME
rename \- rename a file
.SH SYNOPSIS
.B integer function rename (from, to)
.br
.B character*(*) from, to
.SH DESCRIPTION
.I From
must be the pathname of an existing file.
.I To
will become the new pathname for the file.
If
.I to
exists, then both
.I from
and
.I to
must be the same type of file, and must reside on the same filesystem.
If
.I to
exists, it will be removed first.
.PP
The returned value will be 0 if successful; a system error code otherwise.
.SH FILES
.ie \nM /usr/ucb/lib/libU77.a
.el /usr/lib/libU77.a
.SH "SEE ALSO"
rename(2), perror(3F)
.SH BUGS
Pathnames can be no longer than MAXPATHLEN as defined in
.RI < sys/param.h >.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.