Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262550AbVESPUc (ORCPT ); Thu, 19 May 2005 11:20:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262542AbVESPUW (ORCPT ); Thu, 19 May 2005 11:20:22 -0400 Received: from mx1.suse.de ([195.135.220.2]:59099 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S262550AbVESPUG (ORCPT ); Thu, 19 May 2005 11:20:06 -0400 From: Andreas Schwab To: linux-os@analogic.com Cc: Steven Rostedt , linux-kernel@vger.kernel.org, "Gilbert, John" , Kyle Moffett , Adrian Bunk , Arjan van de Ven , "Maciej W. Rozycki" Subject: Re: Illegal use of reserved word in system.h References: <2692A548B75777458914AC89297DD7DA08B0866F@bronze.dolby.net> <20050518195337.GX5112@stusta.de> <6EA08D88-7C67-48ED-A9EF-FEAAB92D8B8F@mac.com> <20050519112840.GE5112@stusta.de> <1116505655.6027.45.camel@laptopd505.fenrus.org> <1116512140.15866.42.camel@localhost.localdomain> X-Yow: I'm definitely not in Omaha! Date: Thu, 19 May 2005 17:19:57 +0200 In-Reply-To: (Richard B. Johnson's message of "Thu, 19 May 2005 10:36:17 -0400 (EDT)") Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1044 Lines: 34 "Richard B. Johnson" writes: > It's also hard to see what is happening in 'C'. When I execute > this: > > #include > #include > > int main(int cnt, char *argv[], char *env[], char *aux[]) > { > printf("Aux 0 = %s\n", aux[0]); > // printf("Aux 1 = %s\n", aux[1]); > } There is no pointer to the aux table passed to main, you have to skip past the environment. Also, the aux table is an array of key/value pairs. > This shows that ld-linux.so, that got called first, didn't > preserve the vector. It does. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra?e 5, 90409 N?rnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/