4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 16:26:12 +08:00

* strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.

* cygcheck.cc (main): Ditto.
This commit is contained in:
Christopher Faylor 2004-02-10 16:01:31 +00:00
parent 3536f0fb2b
commit 744ed079bc
4 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-02-10 Christopher Faylor <cgf@redhat.com>
* strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.
* cygcheck.cc (main): Ditto.
2004-01-23 Christopher Faylor <cgf@redhat.com> 2004-01-23 Christopher Faylor <cgf@redhat.com>
* cygcheck.cc (pretty_id): Make more robust in absence of id.exe. * cygcheck.cc (pretty_id): Make more robust in absence of id.exe.

View File

@ -1,5 +1,5 @@
# Makefile for Cygwin utilities # Makefile for Cygwin utilities
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
# This file is part of Cygwin. # This file is part of Cygwin.

View File

@ -1390,6 +1390,7 @@ main (int argc, char **argv)
{ {
int i; int i;
(void) putenv("POSIXLY_CORRECT=1");
while ((i = getopt_long (argc, argv, opts, longopts, NULL)) != EOF) while ((i = getopt_long (argc, argv, opts, longopts, NULL)) != EOF)
switch (i) switch (i)
{ {

View File

@ -909,6 +909,7 @@ main (int argc, char **argv)
else else
pgm++; pgm++;
(void) putenv("POSIXLY_CORRECT=1");
while ((opt = getopt_long (argc, argv, opts, longopts, NULL)) != EOF) while ((opt = getopt_long (argc, argv, opts, longopts, NULL)) != EOF)
switch (opt) switch (opt)
{ {