Date: Tue, 10 Sep 2002 15:29:49 -0700 From: Bakul Shah <bakul@bitblocks.com> To: Terry Lambert <tlambert2@mindspring.com> Cc: Archie Cobbs <archie@dellroad.org>, freebsd-arch@FreeBSD.ORG Subject: Re: /dev/stdout behavior Message-ID: <200209102229.SAA27862@agamemnon.cnchost.com> In-Reply-To: Your message of "Tue, 10 Sep 2002 14:51:35 PDT." <3D7E6967.AC9D0F14@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Careful reading of man stdout will reveal that opening > > /dev/stdout is equivalent to dup()ing fd 1, not fd 0. > > FreeBSD has a bug. > > The stdin and stdout fd's are not guaranteed to not share a > struct file, so that's not correct. It's technically permitted > to have the flag on the device or on the struct file, rather > than the descriptor itself. In fact, the implementation pretty > much demands it. Indeed, you are absolutely right. Thanks for setting me straight. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209102229.SAA27862>