Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 1997 03:28:09 -0800 (PST)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   cvs commit: src/sys/sys errno.h
Message-ID:  <199712061128.DAA01254@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712061128.DAA01254>