From e9e26cca9c87e7ea4269247999266dc2d9de2e27 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Sep 2002 14:10:21 +0000 Subject: Document that ENOTTY is the correct "default" error return; --- share/man/man9/VOP_IOCTL.9 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share') 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 -- cgit v1.1