From owner-freebsd-questions@FreeBSD.ORG Thu Nov 12 08:21:52 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9C3B1065670 for ; Thu, 12 Nov 2009 08:21:52 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (unknown [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 819CC8FC19 for ; Thu, 12 Nov 2009 08:21:52 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id nAC8LpZO017718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 12 Nov 2009 00:21:51 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id nAC8LpkI017717; Thu, 12 Nov 2009 00:21:51 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA14049; Thu, 12 Nov 09 00:13:59 PST Date: Thu, 12 Nov 2009 00:14:36 -0800 From: perryh@pluto.rain.com To: mihai.dontu@gmail.com, freebsd-questions@freebsd.org Message-Id: <4afbc3ec.zk+/zkNLGZsHODYg%perryh@pluto.rain.com> References: <4AFB13D9.9050507@gmail.com> <200911112229.24468.mihai.dontu@gmail.com> In-Reply-To: <200911112229.24468.mihai.dontu@gmail.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: norstar39@gmail.com Subject: Re: Problems with FreeBSD assembly X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2009 08:21:52 -0000 Mihai Don??u wrote: > I don't think the kernel is the one that initializes the > 0, 1 and 2 file descriptors (stdin, stdout and stderr). Correct so far. > I think you have to open them yourself ... No, the shell does it. That's how it is able to set up pipes and redirection.