Re: Does getopt() return "-1", or "EOF", at end? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Does getopt() return "-1", or "EOF", at end?
Date
Msg-id 16078.1010618449@sss.pgh.pa.us
Whole thread Raw
In response to Re: Does getopt() return "-1", or "EOF", at end?  (David Terrell <dbt@meat.net>)
List pgsql-hackers
David Terrell <dbt@meat.net> writes:
> OpenBSD's getopt(3):
>      The getopt() function was once specified to return EOF instead of -1.
>      This was changed by IEEE Std1003.2-1992 (``POSIX.2'') to decouple
>      getopt() from <stdio.h>.

Ah, nothing like historical perspective to make it all clear.  Thanks.

Looks like -1 it shall be.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump bug ... or not?
Next
From: Brent Verner
Date:
Subject: Re: Potential bug in pg_dump ...