OSDN Git Service

(split) LDP: Update original to LDP v3.50.
[linuxjm/LDP_man-pages.git] / original / man2 / link.2
index 0f17c3d..c0da904 100644 (file)
@@ -1,8 +1,7 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
 .\"                               1993 Michael Haardt, Ian Jackson.
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" Modified 1993-07-23 by Rik Faith <faith@cs.unc.edu>
 .\" Modified 1994-08-21 by Michael Haardt
 .\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
 .\" Modified 2005-04-04, as per suggestion by Michael Hardt for rename.2
 .\"
-.TH LINK 2 2008-08-21 "Linux" "Linux Programmer's Manual"
+.TH LINK 2 2013-01-27 "Linux" "Linux Programmer's Manual"
 .SH NAME
 link \- make a new name for a file
 .SH SYNOPSIS
@@ -49,7 +49,7 @@ This new name may be used exactly as the old one for any operation;
 both names refer to the same file (and so have the same permissions
 and ownership) and it is impossible to tell which name was the
 "original".
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 On success, zero is returned.
 On error, \-1 is returned, and
 .I errno
@@ -67,6 +67,9 @@ or
 (See also
 .BR path_resolution (7).)
 .TP
+.B EDQUOT
+The user's quota of disk blocks on the file system has been exhausted.
+.TP
 .B EEXIST
 .I newpath
 already exists.
@@ -115,6 +118,13 @@ The file system containing
 .IR oldpath " and " newpath
 does not support the creation of hard links.
 .TP
+.BR EPERM " (since Linux 3.6)"
+The caller does not have permission to create a hard link to this file
+(see the description of
+.IR /proc/sys/fs/protected_hardlink
+in
+.BR proc (5)).
+.TP
 .B EROFS
 The file is on a read-only file system.
 .TP
@@ -125,7 +135,7 @@ are not on the same mounted file system.
 .BR link ()
 does not work across different mount points,
 even if the same file system is mounted on both.)
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 SVr4, 4.3BSD, POSIX.1-2001 (but see NOTES).
 .\" SVr4 documents additional ENOLINK and
 .\" EMULTIHOP error conditions; POSIX.1 does not document ELOOP.
@@ -174,7 +184,7 @@ performs the link creation and dies before it can say so.
 Use
 .BR stat (2)
 to find out if the link got created.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR ln (1),
 .BR linkat (2),
 .BR open (2),