aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/revoke.2
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-01-24 06:43:30 +0000
committerBruce Evans <bde@FreeBSD.org>1999-01-24 06:43:30 +0000
commit57687b2e1f7c346040318289b4f59ba7cdcc3f3d (patch)
tree8ca4e04e3f44346097d0e231240bbf7e7261b068 /lib/libc/sys/revoke.2
parent73a6265d681ea66b06185852d2239dc182d22ee8 (diff)
downloadsrc-57687b2e1f7c346040318289b4f59ba7cdcc3f3d.tar.gz
src-57687b2e1f7c346040318289b4f59ba7cdcc3f3d.zip
Backed out most of previous commit to go with backing out support for
revoke() on non-device files.
Notes
Notes: svn path=/head/; revision=43143
Diffstat (limited to 'lib/libc/sys/revoke.2')
-rw-r--r--lib/libc/sys/revoke.210
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/sys/revoke.2 b/lib/libc/sys/revoke.2
index 8787597f8206..c19fb9adc803 100644
--- a/lib/libc/sys/revoke.2
+++ b/lib/libc/sys/revoke.2
@@ -65,8 +65,10 @@ is called as if all open references to the file had been closed.
Access to a file may be revoked only by its owner or the super user.
The
.Fn revoke
-function is normally used to prepare a terminal device for a new
-login session, preventing any access by a previous user of the terminal.
+function is currently supported only for block and character special
+device files.
+It is normally used to prepare a terminal device for a new login session,
+preventing any access by a previous user of the terminal.
.Sh RETURN VALUES
A 0 value indicated that the call succeeded. A \-1 return value
indicates an error occurred and
@@ -90,9 +92,9 @@ Too many symbolic links were encountered in translating the pathname.
.Fa Path
points outside the process's allocated address space.
.It Bq Er EINVAL
-The named file does not support the
+The implementation does not support the
.Fn revoke
-operation.
+operation on the named file.
.It Bq Er EPERM
The caller is neither the owner of the file nor the super user.
.El