summaryrefslogtreecommitdiffstats
path: root/winsup/utils/cygcheck.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* * cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' andBas van Gompel2004-10-221-4/+5
| | | | ``unk''. Use single puts. Add leading newline. Line up equal-signs.
* * cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list. ChangeChristopher Faylor2004-10-211-3/+3
| | | | ``Used'' to ``Free'' in helptext-title for drive-list.
* * cygcheck.cc (pretty_id): Don't let i become negative. FixCorinna Vinschen2004-10-181-2/+2
| | | | printf-format.
* * cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.Christopher Faylor2004-10-181-2/+2
|
* * cygcheck.cc (pretty_id): Allocate space for trailing '\0' on uid and guid.Christopher Faylor2004-10-171-4/+4
|
* * cygcheck.cc (pretty_id): Don't exit on id error. Fix size calculations.Christopher Faylor2004-10-151-9/+10
|
* * cygcheck.cc (pretty_id): Correct column calculations. Abort if id is actingChristopher Faylor2004-10-141-31/+30
| | | | funny.
* * cygcheck.cc (add_path): Don't leak memory when path is already in ``paths''.Christopher Faylor2004-10-101-1/+4
|
* * cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount entries.Christopher Faylor2004-10-091-0/+6
|
* * cygcheck.cc (dump_sysinfo): Don't warn about empty path components, justChristopher Faylor2004-10-091-2/+2
| | | | display ``.''.
* * cygcheck.cc (dump_sysinfo): Warn about empty path-components.Corinna Vinschen2004-10-061-1/+4
|
* * cygcheck.cc (pretty_id): Close pipe.Corinna Vinschen2004-10-041-0/+1
|
* * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.Christopher Faylor2004-03-211-1/+1
|
* * strace.cc: Update copyrights.Christopher Faylor2004-02-101-2/+2
| | | | * cygcheck.cc: Update copyrights.
* * strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.Christopher Faylor2004-02-101-0/+1
| | | | * cygcheck.cc (main): Ditto.
* * cygcheck.cc (pretty_id): Make more robust in absence of id.exe.Christopher Faylor2004-01-231-3/+16
|
* * cygcheck.cc (pretty_id): Don't exec if `id' program is not found.Christopher Faylor2003-10-171-4/+1
|
* * cygcheck.cc (dump_only): New global variable.Corinna Vinschen2003-09-111-3/+12
| | | | | | | (usage): Add "--dump-only" option, fix "--verbose" line. (longopts, opts): Add "--dump-only" option. (main): Process the "--dump-only" flag. Add new semantic check. Pass dump_only information to dump_setup().
* * Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.Christopher Faylor2003-09-111-3/+3
| | | | | | * cygcheck.cc: Just include <getopt.h> rather than cygwin version. (pretty_id): Avoid compiler warnings. * cygpath.cc (usage): Ditto.
* * cygcheck.cc (main): Fix some formatting and help text printing.Corinna Vinschen2003-08-151-29/+47
| | | | | | | | | | | | | | | | | | | | | | * cygcheck.cc (find_package,list_package): New global variables. (usage): Add "--find-package" and "--list-package" options, reformat output. (longopts, opts): Add "--find-package" and "--list-package" options. (main): Process the "--find-package" and "--list-package" flags. Add new semantic checks. Add calls to find_package() and list_package(). * dump_setup.cc: Fix header comment. (match_argv): Change return type to int to distinguish between real matches and default ones. (open_package_list): New static function. (check_package_files): Factor out opening the package list file into open_package_list(). (get_packages): New static function. (dump_setup): Factor out getting a list of packages into get_packages(). (package_list, package_find): New global functions.
* * cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.Christopher Faylor2003-06-131-7/+7
|
* * cygcheck.cc (usage) Add description output.Joshua Daniel Franklin2003-04-261-1/+3
|
* * cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable isChristopher Faylor2003-03-251-1/+5
| | | | correctly set.
* * Makefile.in (strace.exe): Include mingw_getopt.o in link line.Christopher Faylor2003-03-041-1/+1
| | | | | | | | * cygcheck.cc (print_version): Update copyright. * strace.cc (print_version): Ditto. (main): Allow cygwin paths for -o option. (create_child): Allow cygwin path as argv[0]. * path.cc (path.cc): Allow UNC paths.
* * Makefile.in (cygcheck.o): Fix so that actual mingw include files are used.Christopher Faylor2003-03-011-3/+83
| | | | | | | * cygcheck.cc (find_on_path): Translate from cygwin path when qualified path name found. (pretty_id): New function. Dump output of id command. (dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
* * cygcheck.cc (common_apps): Add some more apps.Christopher Faylor2003-02-071-0/+7
| | | | * path.cc (get_cygdrive): Correctly set system flag.
* * cygcheck.cc: Include sys/time.h rather than time.h to avoid a compiler error.Christopher Faylor2002-09-191-1/+1
|
* * cygcheck.cc: Reorder includes to avoid compiler error.Christopher Faylor2002-09-171-2/+2
|
* Add final newlines to utilsJoshua Daniel Franklin2002-09-151-1/+2
|
* * cygcheck.cc: Reformat.Christopher Faylor2002-03-071-37/+39
|
* * cygcheck.cc (longopts): Use correct short option for --version.Christopher Faylor2002-03-071-1/+1
|
* * cygcheck.cc (main): Eliminate non-GNU formatting glitch.Christopher Faylor2002-02-271-2/+1
|
* * ssp.c (help_desk): Fix compiler warning. Christopher Faylor <cgf@redhat.com>Christopher Faylor2002-02-271-39/+73
| | | | | | | | | | | | | | | Change appropriate globals to statics throughout. * cygcheck.cc (usage): Simplify usage output. Generalize to allow use for help. (longopts): Add version option. (opts): Add 'V" version option. (print_version): New function. (main): Accommodate new version option. Accommodate usage parameter changes. Use usage to output help message. * Makefile.in (CXXFLAGS): Add override so that HAVE_DECL_GETOPT is defined. (libbfd): Use -B rather than -L so that bfd from build directory is correctly found. (libintl): Ditto.
* * cygcheck.cc: Fix typo. Remove uid_t kludge. Rely on kludge in sys/cygwin.hChristopher Faylor2002-01-291-5/+3
| | | | | | | instead. * getfacl.c: Add include to remove warning. * mkgroup.c (main): Assign variables outside of parameter passing. This seems to eliminate some compiler warnings.
* * cygcheck.cc: Use specific cygwin includes, as required.Christopher Faylor2002-01-291-5/+5
|
* * Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.Christopher Faylor2002-01-221-3/+4
| | | | | | | | * cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning. (dump_sysinfo): Make variables unsigned to quiet g++ warnings. * strace.cc (version_string): Rename from SCCSid. (add_child): Remove unused variable. (version): Use version_string. Avoid use of fprintf.
* * cygcheck.cc (already_did): Avoid default constructors, which may requireChristopher Faylor2002-01-181-1/+1
| | | | exception support.
* * Makefile.in: Add define to CXXFLAGS.Christopher Faylor2001-12-111-1/+1
|
* * cygcheck.cc (usage): Add -c description.Christopher Faylor2001-12-041-9/+7
| | | | | * cygpath.cc (usage): Alphabetize options. * strace.cc (usage): Ditto.
* * cygcheck.cc (dump_sysinfo): Redefine output format slightly.Corinna Vinschen2001-11-121-3/+6
|
* * cygcheck.cc (main): Slight formatting tweak.Christopher Faylor2001-11-121-1/+2
|
* * cygcheck.cc (dump_sysinfo): Add some more details.Corinna Vinschen2001-11-121-4/+18
|
* * cygcheck.cc (dump_sysinfo): Print more detailed OS information stringCorinna Vinschen2001-11-121-12/+34
| | | | using OSVERSIONINFOEX information.
* * cygcheck.cc (scan_registry): Open registry with read-only access.Christopher Faylor2001-11-121-5/+5
| | | | | | (main): Reflect argument change for dump_setup. * dump_setup.cc (dump_setup): Add preliminary extra argument for future use. * path.cc (read_mounts): Open registry with read-only access.
* * cygcheck.cc (main): Display package info when '-s' is specified.Christopher Faylor2001-11-111-1/+8
| | | | | * dump_setup.cc (dump_setup): Change header. Remove typo. Always sort packages output.
* * dump_setup.cc: New file.Christopher Faylor2001-11-111-7/+21
| | | | | | * Makefile.in: Add info for dump_setup.o. * cygcheck.cc (main): Recognize '-c' option for checking setup installed base. * path.cc (cygpath): Read mount table if not loaded.
* * Makefile.in (cygcheck.exe): Compile as -mno-cygwin executable.Christopher Faylor2001-11-111-13/+47
| | | | | | | | * path.cc: New file. * cygcheck.cc (init_paths): Use MS-DOS path syntax. (cygwin_info): Properly display cygwin version numbers. Prettify some output. (dump_sysinfo): Calculate max names of posix and ms-dos paths for prettier output.
* * cygcheck.cc (dump_sysinfo): Print more detailed OS information string.Corinna Vinschen2001-11-091-4/+21
|
* * cygcheck.cc (cygwin_info): Add some more bounds checking. From Matt HargetChristopher Faylor2000-12-161-46/+176
| | | | | | | | | | | | | | | | | | | <matt@use.net>: * utils/cygcheck.cc (keyeprint): Move declaration before other functions so it could be used by all functions to report error messages. Add comment. (add_path): Check for NULL return from malloc. (find_on_path): Check initial uses of pointers for NULL. (rva_to_offset): Ditto. (init_paths): Add checking for return values of Win32 calls. (get_dword): Ditto. (get_word): Ditto. (dll_info): Ditto, also add NULL pointer checks. (scan_registry): Ditto. (check_keys): Ditto. (dump_sysinfo): Ditto. Add default case to switch. Add error reporting if GetVolumeInformation fails, except when it returns ERROR_NOT_READY. (track_down): Add checking for NULL pointers and return values of Win32 calls. (cygwin_info): Ditto. Correct small memory leak.
* * Makefile.in: Accomodate newer gcc's which require linking of c++ programsChristopher Faylor2000-10-281-33/+13
| | | | | | | | with g++. Fixup output for some compilations. * cygcheck.cc: Respond to compiler warnings. * dumper.cc (main): Ditto. * parse_pe.cc (exclusion::sort_and_check): Ditto. * setfacl.cc (getaclentry): Ditto.