summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/sys/link.214
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/sys/link.2 b/lib/libc/sys/link.2
index e0bc45e..3bdbdfd 100644
--- a/lib/libc/sys/link.2
+++ b/lib/libc/sys/link.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)link.2 8.3 (Berkeley) 1/12/94
-.\" $Id$
+.\" $Id: link.2,v 1.8 1997/02/22 15:03:58 peter Exp $
.\"
.Dd January 12, 1994
.Dt LINK 2
@@ -49,7 +49,7 @@ function call
atomically creates the specified directory entry (hard link)
.Fa name2
with the attributes of the underlying object pointed at by
-.Fa name1
+.Fa name1 .
If the link is successful: the link count of the underlying object
is incremented;
.Fa name1
@@ -93,6 +93,15 @@ A component of either pathname exceeded 255 characters,
or entire length of either path name exceeded 1023 characters.
.It Bq Er ENOENT
A component of either path prefix does not exist.
+.It Bq Er EOPNOTSUPP
+The file system containing the file named by
+.Fa name1
+does not support links.
+.It Bq Er EMLINK
+The link count of the file named by
+.Fa name1
+would exceed
+.Dv {LINK_MAX}.
.It Bq Er EACCES
A component of either path prefix denies search permission.
.It Bq Er EACCES
@@ -139,6 +148,7 @@ One of the pathnames specified
is outside the process's allocated address space.
.El
.Sh SEE ALSO
+.Xr readlink 2 ,
.Xr symlink 2 ,
.Xr unlink 2
.Sh STANDARDS
OpenPOWER on IntegriCloud