* lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT behavior.
This commit is contained in:
parent
4700b8293a
commit
ba6e108396
|
@ -1,4 +1,9 @@
|
||||||
2003-01-28 Corinna Vinschen <corinna@vinschen.de>
|
2003-01-29 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT
|
||||||
|
behavior.
|
||||||
|
|
||||||
|
2003-01-28 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_socket.cc (fhandler_socket::accept): On successful execution
|
* fhandler_socket.cc (fhandler_socket::accept): On successful execution
|
||||||
set connection state of returned socket to CONNECTED.
|
set connection state of returned socket to CONNECTED.
|
||||||
|
|
|
@ -77,11 +77,8 @@ extern char __declspec(dllimport) *__progname;
|
||||||
#define IGNORE_FIRST (*options == '-' || *options == '+')
|
#define IGNORE_FIRST (*options == '-' || *options == '+')
|
||||||
#define PRINT_ERROR ((opterr) && ((*options != ':') \
|
#define PRINT_ERROR ((opterr) && ((*options != ':') \
|
||||||
|| (IGNORE_FIRST && options[1] != ':')))
|
|| (IGNORE_FIRST && options[1] != ':')))
|
||||||
#if defined(__CYGWIN__) || defined(__MINGW32__)
|
|
||||||
# define IS_POSIXLY_CORRECT (1)
|
#define IS_POSIXLY_CORRECT (getenv("POSIXLY_INCORRECT_GETOPT") == NULL)
|
||||||
#else
|
|
||||||
# define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PERMUTE (!IS_POSIXLY_CORRECT && !IGNORE_FIRST)
|
#define PERMUTE (!IS_POSIXLY_CORRECT && !IGNORE_FIRST)
|
||||||
/* XXX: GNU ignores PC if *options == '-' */
|
/* XXX: GNU ignores PC if *options == '-' */
|
||||||
|
|
Loading…
Reference in New Issue