summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-26 14:10:21 +0000
committerphk <phk@FreeBSD.org>2002-09-26 14:10:21 +0000
commite9e26cca9c87e7ea4269247999266dc2d9de2e27 (patch)
tree197745b8fc40be4f2a9cd136f3d3031280ca8317 /share
parentbd3b8669b156628d7933508fa0301864f59d0ef0 (diff)
downloadFreeBSD-src-e9e26cca9c87e7ea4269247999266dc2d9de2e27.zip
FreeBSD-src-e9e26cca9c87e7ea4269247999266dc2d9de2e27.tar.gz
Document that ENOTTY is the correct "default" error return;
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/VOP_IOCTL.95
1 files changed, 4 insertions, 1 deletions
diff --git a/share/man/man9/VOP_IOCTL.9 b/share/man/man9/VOP_IOCTL.9
index f25787a..5265d74 100644
--- a/share/man/man9/VOP_IOCTL.9
+++ b/share/man/man9/VOP_IOCTL.9
@@ -63,13 +63,16 @@ Most filesystems do not implement this entry point.
The file should not be locked on entry.
.Sh RETURN VALUES
If successful, zero is returned, otherwise an appropriate error code.
+.Pp
+If the ioctl is not recognized or not handled, ENOTTY should be returned.
.Sh PSEUDOCODE
.Bd -literal
int
vop_ioctl(struct vnode *vp, int command, caddr_t data, int fflag,
struct ucred *cred, struct thread *td)
{
- return EOPNOTSUPP;
+
+ return ENOTTY;
}
.Ed
.Sh SEE ALSO
OpenPOWER on IntegriCloud