From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31800 invoked by alias); 25 Jan 2002 23:14:57 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 31761 invoked from network); 25 Jan 2002 23:14:56 -0000 Received: from unknown (HELO toenail.toronto.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 25 Jan 2002 23:14:56 -0000 Received: (from fche@localhost) by toenail.toronto.redhat.com (8.11.6/8.11.6) id g0PNEsH28006; Fri, 25 Jan 2002 18:14:54 -0500 X-Authentication-Warning: toenail.toronto.redhat.com: fche set sender to fche@redhat.com using -f To: bje@redhat.com (Ben Elliston) Cc: sid@sources.redhat.com Subject: Re: gloss patch for argc/argv retrieval References: <20020125113743.C23105@redhat.com> <15441.55603.150572.158514.cygnus.project.sid@scooby.brisbane.redhat.com> Content-Type: text/plain; charset=US-ASCII From: fche@redhat.com (Frank Ch. Eigler) Date: Fri, 25 Jan 2002 15:14:00 -0000 In-Reply-To: <15441.55603.150572.158514.cygnus.project.sid@scooby.brisbane.redhat.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 X-SW-Source: 2002-q1/txt/msg00013.txt.bz2 bje wrote: > FChE> I suspect a single system call, like ARM ANGEL's "get entire command > FChE> line as a string" would be sufficient. [...] > > For some targets like the SH, it is not sufficient. If you inspect > the newlib source, you'll see SYS_argn, SYS_argnlen, etc. [...] Sure .. but has this code ever been *run*? Does it matter enough to make this basic facility more complex? The initial input is a single plain string. If some targets are willing to undertake parsing it (arm, analogously linux) into argc/argv in target code, we can let the others do that too. - FChE