From owner-cvs-all Tue Jan 22 5:49:56 2002 Delivered-To: cvs-all@freebsd.org Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by hub.freebsd.org (Postfix) with ESMTP id AA99D37B400; Tue, 22 Jan 2002 05:49:47 -0800 (PST) Received: from news1.macomnet.ru (maxim@news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.3/8.11.3) with ESMTP id g0MDnk25782140; Tue, 22 Jan 2002 16:49:46 +0300 (MSK) Date: Tue, 22 Jan 2002 16:49:46 +0300 (MSK) From: Maxim Konovalov To: Ruslan Ermilov Cc: cvs-committers@FreeBSD.ORG, Subject: Re: cvs commit: src/usr.sbin/chroot chroot.8 In-Reply-To: <20020122153709.A22222@sunbay.com> Message-ID: <20020122164625.P68621-100000@news1.macomnet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG As always your variant is better than mine, commit it please. [...] > > Can you please finish cleanup in open.2? :-) > > > > Index: open.2 > > =================================================================== > > RCS file: /home/ncvs/src/lib/libc/sys/open.2,v > > retrieving revision 1.21 > > diff -u -r1.21 open.2 > > --- open.2 2001/10/26 17:38:20 1.21 > > +++ open.2 2002/01/22 08:24:20 > > @@ -123,8 +123,8 @@ > > carrier on a dialup line), > > .Fn open > > returns immediately. > > -The first time the process attempts to perform I/O on the open > > -file it will block (not currently implemented). > > +This flag also has the effect of making all subsequent I/O on the > > +open file non-blocking. > > .Pp > > If > > .Dv O_FSYNC > > > I can guess that this text was obtained from either OpenBSD or NetBSD, > but it doesn't sound correct. Some devices do not have a concept of > non-blocking opens and subsequent operations. This also contradicts > to POSIX that says: > > : When opening a block special or character special file that supports > : non-blocking opens: > : > : * If O_NONBLOCK is set, the open( ) function shall return without > : blocking for the device to be ready or available. Subsequent > ^^^^^^^^^^ > : behavior of the device is device-specific. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > I liked the BSD/OS text more, which has: > > Index: open.2 > =================================================================== > RCS file: /home/ncvs/src/lib/libc/sys/open.2,v > retrieving revision 1.21 > diff -u -p -r1.21 open.2 > --- open.2 2001/10/26 17:38:20 1.21 > +++ open.2 2002/01/22 13:37:11 > @@ -123,8 +123,7 @@ in the process being blocked for some re > carrier on a dialup line), > .Fn open > returns immediately. > -The first time the process attempts to perform I/O on the open > -file it will block (not currently implemented). > +The descriptor remains in non-blocking mode for subsequent operations. > .Pp > If > .Dv O_FSYNC > > > Cheers, > -- Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message