diff options
author | 1997-04-10 09:31:10 +0000 | |
---|---|---|
committer | 1997-04-10 09:31:10 +0000 | |
commit | cb943c5953efdd28cb441ac18094cbeeebe2f8c2 (patch) | |
tree | 987790bc0cd6616986962eed4f185d617e4cd1e5 /lib/libc | |
parent | Do block/sector handling like the other ports (diff) | |
download | wireguard-openbsd-cb943c5953efdd28cb441ac18094cbeeebe2f8c2.tar.xz wireguard-openbsd-cb943c5953efdd28cb441ac18094cbeeebe2f8c2.zip |
doc EOPNOTSUPP, EMLINK, and fix EPERM. from various places
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/link.2 | 17 |
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 |