From owner-cvs-sys Sat Dec 6 03:29:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA09145 for cvs-sys-outgoing; Sat, 6 Dec 1997 03:29:59 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA09095; Sat, 6 Dec 1997 03:29:25 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id DAA01254; Sat, 6 Dec 1997 03:28:09 -0800 (PST) Date: Sat, 6 Dec 1997 03:28:09 -0800 (PST) Message-Id: <199712061128.DAA01254@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/sys errno.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/12/06 03:28:09 PST Modified files: sys/sys errno.h Log: Added a kernel-only error code ENOICTL. This will be returned from low level ioctl routines instead of the magic number -1 so that callers can distinguish it from ERESTART (which happens to be -1). -1 meant that the ioctl was not handled at the called level. ERESTART is normal when a sleeping ioctl is interrupted. ERESTART got converted to ENOTTY instead of restarting the ioctl. Many (most?) ioctls can not be restarted safely, but this is apparently supposed to be handled by drivers converting ERESTART to EINTR. I first saw this problem for TIOCDRAIN. Justin saw if for disk ioctls. Added missing parentheses. Revision Changes Path 1.8 +4 -3 src/sys/sys/errno.h