summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-10 09:31:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-10 09:31:11 +0000
commitb7fe1a8d19f2c0ca72548ac099ab078be2653576 (patch)
treedd11dda2f15d32d4f6cc30aa3b2c49a7a7ca0b54 /lib/libc
parent0bc554df771db883a14fbb1eb629998606c01b8f (diff)
doc EOPNOTSUPP, EMLINK, and fix EPERM. from various places
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/link.217
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/libc/sys/link.2 b/lib/libc/sys/link.2
index efcdb145987..3365721815f 100644
--- a/lib/libc/sys/link.2
+++ b/lib/libc/sys/link.2
@@ -50,7 +50,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
@@ -98,6 +98,15 @@ characters, or an entire path name exceeded
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
@@ -116,7 +125,11 @@ does exist.
.It Bq Er EPERM
The file named by
.Fa name1
-is a directory.
+is a directory and the effective
+user ID is not super-user,
+or the file system containing the file does not permit the use of
+.Fn link
+on a directory.
.It Bq Er EXDEV
The link named by
.Fa name2