link.2 (108028) | link.2 (108087) |
---|---|
1.\" Copyright (c) 1980, 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.\" @(#)link.2 8.3 (Berkeley) 1/12/94 | 1.\" Copyright (c) 1980, 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.\" @(#)link.2 8.3 (Berkeley) 1/12/94 |
33.\" $FreeBSD: head/lib/libc/sys/link.2 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/link.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd March 5, 1999 36.Dt LINK 2 37.Os 38.Sh NAME 39.Nm link 40.Nd make a hard file link 41.Sh LIBRARY --- 22 unchanged lines hidden (view full) --- 64If 65.Fa name1 66is removed, the file 67.Fa name2 68is not deleted and the link count of the 69underlying object is 70decremented. 71.Pp | 34.\" 35.Dd March 5, 1999 36.Dt LINK 2 37.Os 38.Sh NAME 39.Nm link 40.Nd make a hard file link 41.Sh LIBRARY --- 22 unchanged lines hidden (view full) --- 64If 65.Fa name1 66is removed, the file 67.Fa name2 68is not deleted and the link count of the 69underlying object is 70decremented. 71.Pp |
72.Fa Name1 | 72The object pointed at by the 73.Fa name1 74argument |
73must exist for the hard link to 74succeed and 75both 76.Fa name1 77and 78.Fa name2 79must be in the same file system. | 75must exist for the hard link to 76succeed and 77both 78.Fa name1 79and 80.Fa name2 81must be in the same file system. |
82The |
|
80.Fa name1 | 83.Fa name1 |
84argument |
|
81may not be a directory. 82.Sh RETURN VALUES 83.Rv -std link 84.Sh ERRORS 85The 86.Fn link 87system call 88will fail and no link will be created if: --- 82 unchanged lines hidden --- | 85may not be a directory. 86.Sh RETURN VALUES 87.Rv -std link 88.Sh ERRORS 89The 90.Fn link 91system call 92will fail and no link will be created if: --- 82 unchanged lines hidden --- |