svn commit: r267745 - head/lib/libc/stdlib

Benjamin Kaduk bjkfbsd at gmail.com
Fri Jul 4 19:19:00 UTC 2014


On Sun, Jun 22, 2014 at 4:13 PM, Pedro F. Giffuni <pfg at freebsd.org> wrote:

> Author: pfg
> Date: Sun Jun 22 20:13:57 2014
> New Revision: 267745
> URL: http://svnweb.freebsd.org/changeset/base/267745
>
> Log:
>   getopt(3): recognize option:: as GNU extension for "optional options".
>
[...]

>  is to follow.
> +If an individual character is followed by two colons, then the
> +option argument is optional;
> +.Va optarg
> +is set to the rest of the current
> +.Va argv
> +word, or
> +.Dv NULL
> +if there were no more characters in the current word.
> +This is a
> +.Nx
> +extension.
>

.Nx is NetBSD, not GNU...

-Ben


More information about the svn-src-head mailing list