diff options
Diffstat (limited to 'lib/libc/sys/link.2')
-rw-r--r-- | lib/libc/sys/link.2 | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/lib/libc/sys/link.2 b/lib/libc/sys/link.2 index d160786..e0bc45e 100644 --- a/lib/libc/sys/link.2 +++ b/lib/libc/sys/link.2 @@ -30,6 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)link.2 8.3 (Berkeley) 1/12/94 +.\" $Id$ .\" .Dd January 12, 1994 .Dt LINK 2 @@ -74,7 +75,6 @@ both and .Fa name2 must be in the same file system. -Unless the caller is the super-user, .Fa name1 may not be a directory. .Sh RETURN VALUES @@ -88,8 +88,6 @@ will fail and no link will be created if: .Bl -tag -width Ar .It Bq Er ENOTDIR A component of either path prefix is not a directory. -.It Bq Er EINVAL -Either pathname contains a character with the high-order bit set. .It Bq Er ENAMETOOLONG A component of either pathname exceeded 255 characters, or entire length of either path name exceeded 1023 characters. @@ -113,8 +111,7 @@ does exist. .It Bq Er EPERM The file named by .Fa name1 -is a directory and the effective -user ID is not super-user. +is a directory. .It Bq Er EXDEV The link named by .Fa name2 @@ -145,7 +142,18 @@ is outside the process's allocated address space. .Xr symlink 2 , .Xr unlink 2 .Sh STANDARDS -.Fn Link -is expected to -conform to IEEE Std 1003.1-1988 -.Pq Dq Tn POSIX . +The +.Fn link +function call is expected to conform to +.St -p1003.1-90 . +.Sh HISTORY +A +.Fn link +function call appeared in +.At v7 . +.Pp +The +.Fn link +system call traditionally allows the super-user to link directories which +corrupts the filesystem coherency. This implementation no longer permits +it. |