summaryrefslogtreecommitdiffstats
path: root/sbin/natd
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-06 11:28:06 +0000
committerbde <bde@FreeBSD.org>1997-12-06 11:28:06 +0000
commit1a4a2c1dd5e2c7ba97a31d9225a7c24275650402 (patch)
tree827b0165a46a0dd881c5f312618f13ebf0ec4347 /sbin/natd
parent9c69c6726f3deaf275801170868a146c8ec079ed (diff)
downloadFreeBSD-src-1a4a2c1dd5e2c7ba97a31d9225a7c24275650402.zip
FreeBSD-src-1a4a2c1dd5e2c7ba97a31d9225a7c24275650402.tar.gz
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.
Diffstat (limited to 'sbin/natd')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud