From owner-freebsd-arch Tue Sep 10 17:36:36 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7C7837B400 for ; Tue, 10 Sep 2002 17:36:33 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 761D043E42 for ; Tue, 10 Sep 2002 17:36:33 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 33E549C11; Tue, 10 Sep 2002 20:30:12 -0400 (EDT) Date: Tue, 10 Sep 2002 20:30:12 -0400 From: Mike Barcroft To: Bakul Shah Cc: Archie Cobbs , freebsd-arch@FreeBSD.ORG Subject: Re: /dev/stdout behavior Message-ID: <20020910203012.E40217@espresso.q9media.com> References: <200209102135.g8ALZXm34757@arch20m.dellroad.org> <200209102200.SAA07377@thunderer.cnchost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209102200.SAA07377@thunderer.cnchost.com>; from bakul@bitblocks.com on Tue, Sep 10, 2002 at 03:00:04PM -0700 Organization: The FreeBSD Project Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > > > You need to fix your test program similarly and run it under > > > Linux to see if the two OSes behave differently. > > > > They do behave differently, even after adjusting '0' to '1': > > > > $ uname -a > > Linux foobar.packetdesign.com 2.4.9 #19 SMP Mon Oct 29 11:55:31 PST 2001 > > i686 unknown > > $ ./flags > > O_NONBLOCK is not set > > Hmmm... are /dev/stdin etc. part of Posix? If not, linux can > do what it wants. POSIX specifies three special files: /dev/null, /dev/tty, and /dev/console. So the answer is no. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message