Deleted Added
full compact
rename.2 (108040) rename.2 (108087)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)rename.2 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)rename.2 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/sys/rename.2 108040 2002-12-18 13:33:04Z ru $
33.\" $FreeBSD: head/lib/libc/sys/rename.2 108087 2002-12-19 09:40:28Z ru $
34.\"
35.Dd June 4, 1993
36.Dt RENAME 2
37.Os
38.Sh NAME
39.Nm rename
40.Nd change the name of a file
41.Sh LIBRARY

--- 88 unchanged lines hidden (view full) ---

130.It Bq Er EPERM
131The directory containing
132.Fa from
133is marked sticky,
134and neither the containing directory nor
135.Fa from
136are owned by the effective user ID.
137.It Bq Er EPERM
34.\"
35.Dd June 4, 1993
36.Dt RENAME 2
37.Os
38.Sh NAME
39.Nm rename
40.Nd change the name of a file
41.Sh LIBRARY

--- 88 unchanged lines hidden (view full) ---

130.It Bq Er EPERM
131The directory containing
132.Fa from
133is marked sticky,
134and neither the containing directory nor
135.Fa from
136are owned by the effective user ID.
137.It Bq Er EPERM
138The
138The file pointed at by the
139.Fa to
139.Fa to
140file exists,
140argument
141exists,
141the directory containing
142.Fa to
143is marked sticky,
144and neither the containing directory nor
145.Fa to
146are owned by the effective user ID.
147.It Bq Er ELOOP
148Too many symbolic links were encountered in translating either pathname.
149.It Bq Er ENOTDIR
150A component of either path prefix is not a directory.
151.It Bq Er ENOTDIR
142the directory containing
143.Fa to
144is marked sticky,
145and neither the containing directory nor
146.Fa to
147are owned by the effective user ID.
148.It Bq Er ELOOP
149Too many symbolic links were encountered in translating either pathname.
150.It Bq Er ENOTDIR
151A component of either path prefix is not a directory.
152.It Bq Er ENOTDIR
153The
152.Fa from
154.Fa from
155argument
153is a directory, but
154.Fa to
155is not a directory.
156.It Bq Er EISDIR
156is a directory, but
157.Fa to
158is not a directory.
159.It Bq Er EISDIR
160The
157.Fa to
161.Fa to
162argument
158is a directory, but
159.Fa from
160is not a directory.
161.It Bq Er EXDEV
162The link named by
163.Fa to
164and the file named by
165.Fa from

--- 13 unchanged lines hidden (view full) ---

179An I/O error occurred while making or updating a directory entry.
180.It Bq Er EROFS
181The requested link requires writing in a directory on a read-only file
182system.
183.It Bq Er EFAULT
184Path
185points outside the process's allocated address space.
186.It Bq Er EINVAL
163is a directory, but
164.Fa from
165is not a directory.
166.It Bq Er EXDEV
167The link named by
168.Fa to
169and the file named by
170.Fa from

--- 13 unchanged lines hidden (view full) ---

184An I/O error occurred while making or updating a directory entry.
185.It Bq Er EROFS
186The requested link requires writing in a directory on a read-only file
187system.
188.It Bq Er EFAULT
189Path
190points outside the process's allocated address space.
191.It Bq Er EINVAL
187.Fa From
192The
193.Fa from
194argument
188is a parent directory of
189.Fa to ,
190or an attempt is made to rename
191.Ql .\&
192or
193.Ql \&.. .
194.It Bq Er ENOTEMPTY
195is a parent directory of
196.Fa to ,
197or an attempt is made to rename
198.Ql .\&
199or
200.Ql \&.. .
201.It Bq Er ENOTEMPTY
195.Fa To
202The
203.Fa to
204argument
196is a directory and is not empty.
197.El
198.Sh SEE ALSO
199.Xr open 2 ,
200.Xr symlink 7
201.Sh STANDARDS
202The
203.Fn rename
204system call is expected to conform to
205.St -p1003.1-96 .
205is a directory and is not empty.
206.El
207.Sh SEE ALSO
208.Xr open 2 ,
209.Xr symlink 7
210.Sh STANDARDS
211The
212.Fn rename
213system call is expected to conform to
214.St -p1003.1-96 .