Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 1997 12:01:07 +1030 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        jb@cimlogic.com.au (John Birrell)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: fcntl, F_SETFL, O_NONBLOCK & /dev/null
Message-ID:  <199702060131.MAA28813@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199702060050.LAA03861@freebsd1.cimlogic.com.au> from John Birrell at "Feb 6, 97 11:50:16 am"

next in thread | previous in thread | raw e-mail | index | archive | help
John Birrell stands accused of saying:
> 
> I can open /dev/null with O_NONBLOCK. If I open /dev/null without
> O_NONBLOCK and then try to fcntl F_SETFL to change the file descriptor
> to non-blocking, I get ENODEV returned. Can someone tell me why?

Probably because the ioctl handler for /dev/null doesn't understand
F_SETFL.  I can't find the sucker, so I can't actually give you an
authorative answer 8(

> John Birrell                                CIMlogic Pty Ltd

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



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