From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 17 14:07:03 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3783B560 for ; Thu, 17 Oct 2013 14:07:03 +0000 (UTC) (envelope-from bright@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 25F302309 for ; Thu, 17 Oct 2013 14:07:03 +0000 (UTC) Received: from Alfreds-MacBook-Pro-9.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 59E0F1A3C3E for ; Thu, 17 Oct 2013 07:07:01 -0700 (PDT) Message-ID: <525FEF09.6010507@mu.org> Date: Thu, 17 Oct 2013 07:07:05 -0700 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: Global variables in system programs References: <525D5A35.4040005@embedded-brains.de> <525FE857.4020303@embedded-brains.de> In-Reply-To: <525FE857.4020303@embedded-brains.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 14:07:03 -0000 On 10/17/13 6:38 AM, Sebastian Huber wrote: > Hello, > > there is another problem: getopt(). This function uses global > variables on its own. Newlib provides a getopt_r() variant, but this > seems to be not available on FreeBSD. > Can it be ported to FreeBSD? Maybe under another name and put into libutil to avoid standards issues? -- Alfred Perlstein