Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 1997 16:02:09 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        gpalmer@FreeBSD.ORG (Gary Palmer)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: non-blocking file i/o
Message-ID:  <199708022302.QAA00445@phaeton.artisoft.com>
In-Reply-To: <7776.870502484@orion.webspan.net> from "Gary Palmer" at Aug 2, 97 02:14:44 am

next in thread | previous in thread | raw e-mail | index | archive | help
> A friend (who mainly does his devel under solaris/linux) recently came
> up with a patch to the INN database code which made the writes
> non-blocking. On linux/solaris, the non-blocking writes would take
> fractions of a ms. On FreeBSD, the blocking write took 8ms and the
> ``non-blocking'' write took 4ms (set using fcntl). It also seems that
> Linux and Solaris use open(file, O_NONBLOCK, 0) to put the file into
> non-blocking mode for reading and writing also, where our open flag
> only affects the open.

Are you confusion O_NONBLOCK with O_NDELAY?

It used to be on SysV systems that O_NDELAY was "open without waiting
for DCD on modem control devices" and *also* put the device into
non-blocking mode.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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