|
|
1.1 root 1: .TH RENAME 3F "18 July 1983"
2: .UC 4
3: .SH NAME
4: rename \- rename a file
5: .SH SYNOPSIS
6: .B integer function rename (from, to)
7: .br
8: .B character*(*) from, to
9: .SH DESCRIPTION
10: .I From
11: must be the pathname of an existing file.
12: .I To
13: will become the new pathname for the file.
14: If
15: .I to
16: exists, then both
17: .I from
18: and
19: .I to
20: must be the same type of file, and must reside on the same filesystem.
21: If
22: .I to
23: exists, it will be removed first.
24: .PP
25: The returned value will be 0 if successful; a system error code otherwise.
26: .SH FILES
27: .ie \nM /usr/ucb/lib/libU77.a
28: .el /usr/lib/libU77.a
29: .SH "SEE ALSO"
30: rename(2), perror(3F)
31: .SH BUGS
32: Pathnames can be no longer than MAXPATHLEN as defined in
33: .RI < sys/param.h >.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.