-.\" 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
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
(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.
.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
.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.
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),