diff options
author | rwatson <rwatson@FreeBSD.org> | 2011-08-14 12:41:44 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2011-08-14 12:41:44 +0000 |
commit | 0920e246c699770e57b13150e8b18fb73a484a76 (patch) | |
tree | 7c8f260f7115f0b9da486d8bdf85bf28b4a4442b | |
parent | 35b7068df54aac6d028b50251a320efb190b6c41 (diff) | |
download | FreeBSD-src-0920e246c699770e57b13150e8b18fb73a484a76.zip FreeBSD-src-0920e246c699770e57b13150e8b18fb73a484a76.tar.gz |
Cross-reference cap_new(2) from dup(2), as they have similar functionality.
Approved by: re (kib)
-rw-r--r-- | lib/libc/sys/dup.2 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/sys/dup.2 b/lib/libc/sys/dup.2 index c87b386..f6f6f46 100644 --- a/lib/libc/sys/dup.2 +++ b/lib/libc/sys/dup.2 @@ -28,7 +28,7 @@ .\" @(#)dup.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd August 14, 2011 .Dt DUP 2 .Os .Sh NAME @@ -115,6 +115,11 @@ and is a valid descriptor, then .Fn dup2 is successful, and does nothing. +.Pp +The related +.Xr cap_new 2 +system call allows file descriptors to be duplicated with restrictions on +their use. .Sh RETURN VALUES The value -1 is returned if an error occurs in either call. The external variable @@ -139,6 +144,7 @@ Too many descriptors are active. .El .Sh SEE ALSO .Xr accept 2 , +.Xr cap_new 2 , .Xr close 2 , .Xr fcntl 2 , .Xr getdtablesize 2 , |