Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2013 10:09:21 -0400
From:      Eitan Adler <lists@eitanadler.com>
To:        Sebastian Huber <sebastian.huber@embedded-brains.de>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Global variables in system programs
Message-ID:  <CAF6rxgkhwhGqgqS%2BPd5LRbVr0O3PdHTCuRORKAzejV5MVZReZw@mail.gmail.com>
In-Reply-To: <525FE857.4020303@embedded-brains.de>
References:  <525D5A35.4040005@embedded-brains.de> <525FE857.4020303@embedded-brains.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 17, 2013 at 9:38 AM, Sebastian Huber
<sebastian.huber@embedded-brains.de> 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.

It shouldn't be hard to port this to FreeBSD (it just requires that
the global variables be passed in as pointers-to-values).

Please do so!

-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgkhwhGqgqS%2BPd5LRbVr0O3PdHTCuRORKAzejV5MVZReZw>