rename.2 (108087) | rename.2 (108221) |
---|---|
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 108087 2002-12-19 09:40:28Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/rename.2 108221 2002-12-23 16:04:51Z 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 --- 33 unchanged lines hidden (view full) --- 75If the final component of 76.Fa from 77is a symbolic link, 78the symbolic link is renamed, 79not the file or directory to which it points. 80.\".Sh CAVEAT 81.\"The system can deadlock if a loop in the file system graph is present. 82.\"This loop takes the form of an entry in directory | 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 --- 33 unchanged lines hidden (view full) --- 75If the final component of 76.Fa from 77is a symbolic link, 78the symbolic link is renamed, 79not the file or directory to which it points. 80.\".Sh CAVEAT 81.\"The system can deadlock if a loop in the file system graph is present. 82.\"This loop takes the form of an entry in directory |
83.\".Ql Pa a , | 83.\".Pa a , |
84.\"say | 84.\"say |
85.\".Ql Pa a/foo , | 85.\".Pa a/foo , |
86.\"being a hard link to directory | 86.\"being a hard link to directory |
87.\".Ql Pa b , | 87.\".Pa b , |
88.\"and an entry in 89.\"directory | 88.\"and an entry in 89.\"directory |
90.\".Ql Pa b , | 90.\".Pa b , |
91.\"say | 91.\"say |
92.\".Ql Pa b/bar , | 92.\".Pa b/bar , |
93.\"being a hard link 94.\"to directory | 93.\"being a hard link 94.\"to directory |
95.\".Ql Pa a . | 95.\".Pa a . |
96.\"When such a loop exists and two separate processes attempt to 97.\"perform 98.\".Ql rename a/foo b/bar 99.\"and 100.\".Ql rename b/bar a/foo , 101.\"respectively, 102.\"the system may deadlock attempting to lock 103.\"both directories for modification. --- 111 unchanged lines hidden --- | 96.\"When such a loop exists and two separate processes attempt to 97.\"perform 98.\".Ql rename a/foo b/bar 99.\"and 100.\".Ql rename b/bar a/foo , 101.\"respectively, 102.\"the system may deadlock attempting to lock 103.\"both directories for modification. --- 111 unchanged lines hidden --- |