[csw-dev] getopt.h missing on solaris8

Dennis Clarke dclarke at blastwave.org
Sun Mar 30 18:22:05 CEST 2008


> "Dennis Clarke" <dclarke at blastwave.org> wrote:
>
>> > getopt.h does not officieally exist, it is a private file written by
>> RMS.
>> >
>> > Jörg
>>
>> In the category "Jörg will know for sure"  :-)
>>
>> What is the correct way to do things? Officially ?
>
> The getopt() prototype is in unistd.h
>
> Most GNU influenced software tests for getopt_long() but forgets
> about the fact that getopt.h is even more non-standard.
>
>
> http://www.opengroup.org/onlinepubs/009695399/functions/getopt.html
>
> is the official standard.
>

I knew that all the standards of value are at the OpenGroup but was not sure
of the link. So I sat back and waited and sure enough .. you knew :-)

So the issue is with the upstream coders that target Linux users and that is
becoming a defacto way of things these days.

Dennis




More information about the devel mailing list