summaryrefslogtreecommitdiffstats
path: root/winsup/utils/cygcheck.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* * cygcheck.cc (print_version): Update copyright dates.Christopher Faylor2008-08-171-1/+1
|
* * cygcheck.cc (load_cygwin): Duplicate argv list since it disappears whenChristopher Faylor2008-08-041-2/+9
| | | | cygwin1.dll is unloaded.
* * cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.Christopher Faylor2008-07-271-26/+27
|
* * cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.Corinna Vinschen2008-04-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * path.cc: Fetch mount points from fstab files instead of from registry. Use adapted functions copied from Cygwin DLL. (mnt_t): Drop issys member. Define as "mnt_t" instead of "struct mnt_t" subsequently. (max_mount_entry): New variable. (unconvert_slashes): Move to earlier location in file. Make inline. (find2): Remove. (get_cygdrive0): Remove. (get_cygdrive): Remove. (skip_ws): New function. (find_ws): Ditto. (conv_fstab_spaces): Ditto. (read_flags): Ditto. (from_fstab_line): Ditto. (get_user): Ditto. (from_fstab): Ditto. (mnt_sort): Ditto. (read_mounts): Drop old registry code. Fetch "Software\Cygwin\Setup\rootdir" value from HKCU or HKLM key. Use rootdir extracted from module path as fallback. Call from_fstab for nouser and user mount points. (setmntent): Check max_mount_entry to test if read_mounts must be called. (getmntent): Use MOUNT_SYSTEM flag instead of mnt_t's issys member.
* * cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1Brian Dessent2008-03-111-3/+3
| | | | chars.
* * cygcheck.cc (dirname): New static function.Brian Dessent2008-03-111-10/+31
| | | | | | | | | | | | | | (find_app_on_path): Use SYMLINK_MAX. Resolve symlink relative to link's location. Adjust to the fact that cygpath already normalizes its return value. * path.cc (rel_vconcat): Add cwd parameter, and use it instead of calling GetCurrentDirectory() if possible. Rename throughout. (vcygpath): Rename from cygpath and accept cwd and va_list. Pass cwd on to rel_vconcat(). (cygpath_rel): New front end for vcygpath. (cygpath): Ditto. * path.h (cygpath_rel): Declare. (SYMLINK_MAX): Define to 4095.
* * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEXCorinna Vinschen2008-01-131-59/+119
| | | | | | first. Load kernel32.dll earlier. Make osname a buffer. Simplify Non-NT code. Use GetProductInfo in Vista/2008 case. Clean up non-Vista version info. Exit early if not on NT.
* * Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjustingDave Korn2007-08-031-0/+6
| | | | | | | | dependency-filtering $(wordlist ...) call appropriately. Link ntdll. (bloda.o): New rule to build bloda.o * cygcheck.cc (dump_sysinfo): Call bloda function dump_dodgy_apps(). * bloda.cc: New file implements detection of applications from the Big List Of Dodgy Apps.
* * cygcheck.cc (pathlike): New class.Christopher Faylor2007-06-041-165/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (paths): Redefine as type pathlike. (display_error): Declare a few different ways to allow more flexible usage throughout. (display_error_fmt): New function for those cases where C++ just isn't enough. (add_path): Rewrite to allocate pathlike paths. Always tack on a trailing slash since that's what everyone who uses it wants. NULL terminate the path list. Register "it's a system path" field. (init_path): Call add_path with info regarding whether path is a system path or not. (pathlike::check_existence): Move into pathlike class. Accept file and extension arguments to build up path on the fly. Modify other arguments. (find_on_path): Constify return value and appropriate arguments. Eliminate short-circuit for fully-qualified paths. Simplify loop which iterates over path. (already_did): Constify argument. (track_down): Ditto. Regularize some error messages. (find_app_on_path): Ditto. (cygcheck): Constify argument. Use 20th century string handling functions. (dump_sysinfo): Remove odd inclusion of '\\bin' "Just in case". Accommodate change of paths to pathlike. * path.cc (isslash): Rename from SLASH_P and use throughout. (rel_vconcat): Front-end to vconcat which prepends cwd to path before passing along for conversion to native windows. (cygpath): Remove "./" test. Call rel_vconcat if filename appears to be relative.
* * cygcheck.cc (dump_sysinfo): Add "not supported" to osname on 9xCorinna Vinschen2007-02-201-12/+6
| | | | | machines. Drop "not supported" for Vista. Drop "Longhorn" text for now.
* * cygcheck.cc (get_word, get_dword): Move to path.cc.Corinna Vinschen2006-10-051-44/+137
| | | | | | | | | | | | | | | | | | | (LINK_EXTENSION): New macro. (check_existence): New static function. (find_on_path): Check for symbolic links if asked. (dll_info): New error handling. (track_down): Only call dll_info() for executables, display an error for symlinks, and print magic number for others. (find_app_on_path): New static function. (cygcheck, dump_sysinfo): Call find_app_on_path() instead of find_on_path(). * path.cc (cmp_shortcut_header): New static function. (get_word, get_dword): Moved from cygcheck.cc. (EXE_MAGIC, SHORTCUT_MAGIC, SYMLINK_COOKIE, SYMLINK_MAGIC): New macros. (is_exe, is_symlink, readlink): New functions. * path.h (is_exe, is_symlink, readlink): Declare. (get_word, get_dword): Ditto.
* white spaceChristopher Faylor2006-09-131-1/+1
|
* Check in previously mentioned change to cygcheck.ccChristopher Faylor2006-09-131-0/+6
|
* * cygcheck.cc (find_on_path): Update copyright text.Corinna Vinschen2006-02-081-1/+1
|
* * cygcheck.cc (find_on_path): Create copy of rv on successful accessCorinna Vinschen2006-02-081-1/+1
| | | | check, since rv can be reused in subsequent calls.
* * cygcheck.cc (common_paths): Add "patch".Christopher Faylor2006-01-191-0/+1
|
* * cygcheck.cc (init_paths): Record first_nonsys_path.Christopher Faylor2006-01-191-8/+8
| | | | (find_on_path): Start on first nonsys path when !search_sysdirs.
* copyrightChristopher Faylor2006-01-171-1/+2
|
* * Makefile.in (cygcheck.exe): Do not link against libwininet.a.Corinna Vinschen2006-01-151-8/+49
| | | | | | | * cygcheck.cc (pInternetCloseHandle): Define global function pointer. (display_internet_error): Use it. (package_grep): Attempt to load wininet.dll at runtime. Call WinInet API through function pointers throughout.
* * cygcheck.cc (dump_sysinfo): Convert k32 to HMODULE.Corinna Vinschen2006-01-131-1/+1
|
* * cygcheck.cc (dump_sysinfo): Convert osname to const and remove castsCorinna Vinschen2006-01-131-30/+58
| | | | | | in subsequent assignments. Recognize Longhorn/Vista and report as not yet supported. Recognize when running under WOW64 and report native CPU type. Slightly rearrange \n printing.
* * cygcheck.cc: Replace ` with ' throughout.Christopher Faylor2006-01-121-9/+9
|
* * cygcheck.cc (dump_sysinfo): Report the failing drive to prevent having toChristopher Faylor2006-01-051-4/+11
| | | | guess.
* * cygcheck.cc (common_apps): Add crontab, vi, vim.Christopher Faylor2005-12-291-0/+3
|
* * cygcheck.cc (common_apps): Add a few more binaries to look for.Christopher Faylor2005-12-151-0/+4
|
* * Makefile.in: Link cygcheck with libwininet.a.Christopher Faylor2005-11-221-17/+158
| | | | | | | | | | | | | | * cygcheck.cc: Add includes. (grep_packages): New global variable. (display_internet_error): New function. (safe_chars): New global variable. (base_url): Ditto. (package_grep): New function. (usage): Reword --help output for clarity. Document new argument. (longopts): Add 'package-query' option. (opts): Add 'p' option, reorder to be consistent with 'longopts'. (main): Accommodate new option. * utils.sgml (cygcheck): Update --help output. Document new -p option.
* * cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.Brian Dessent2005-08-171-31/+43
| | | | Avoid extraneous cygrunsrv invocation if 'verbose' is true.
* * cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.Christopher Faylor2005-07-191-1/+8
|
* * cygcheck.cc (track_down, cygcheck): Return true on success.Christopher Faylor2005-07-051-14/+18
| | | | (main): Reflect cygcheck failures in exit status.
* * cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PCCorinna Vinschen2005-05-301-17/+25
| | | | | Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server and Datacenter Server. Report when running in terminal server session.
* * cygcheck.cc (load_cygwin): Make half-hearted attempt to work with older DLLs.Christopher Faylor2005-05-271-33/+32
| | | | * strace.cc (load_cygwin): Ditto.
* * cygcheck.cc (dump_sysinfo_services): Add new function that usesCorinna Vinschen2005-05-231-1/+94
| | | | | | new cygrunsrv options to dump service info. (dump_sysinfo): Call dump_sysinfo_services if running under NT. Change 'Cygnus' to 'Cygwin' in output.
* * cygcheck.cc (load_cygwin): Remove debugging statement.Christopher Faylor2005-05-201-1/+0
|
* * cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not set.Christopher Faylor2005-05-201-20/+27
| | | | | (nuke): Fix off by one error in allocation of environment variable. (load_cygwin): Always set PATH even if cygwin environment is empty.
* * cygcheck.cc (cygwin_internal): Define as a "C" function.Christopher Faylor2005-05-171-1/+3
| | | | | * strace.cc (cygwin_internal): Ditto. * cygpath.cc (print_version): Update copyright.
* * cygcheck.cc (load_cygwin): Avoid calling putenv with a NULL path.Christopher Faylor2005-05-161-2/+5
|
* * cygcheck.cc (load_cygwin): Don't touch $PATH for now.Corinna Vinschen2005-05-151-4/+13
| | | | | (print_version): Fix copyright. * strace.cc (print_version): Ditto.
* * cygcheck.cc (nuke): New function.Christopher Faylor2005-05-091-0/+40
| | | | | | (load_cygwin): New function. (main): Use load_cygwin to load argv/envp from cygwin environment, if appropriate.
* * cygcheck.cc (init_paths): Use full path instead of "." for theCorinna Vinschen2005-03-241-3/+9
| | | | | current directory. Do not add "." if present in $PATH. (dump_sysinfo): Skip placeholder first value of paths[].
* * cygcheck.cc (eprintf): New function.Bas van Gompel2004-11-181-0/+9
|
* * cygcheck.cc (find_on_path): Clear show_error and/or print_failedBas van Gompel2004-11-161-6/+6
| | | | | | | parameters to display_error. (rva_to_offset): Ditto. (dll_info): Ditto. (track_down): Ditto.
* * cygcheck.cc: Change "keyeprint" to "display_error" throughout.Christopher Faylor2004-11-111-39/+39
|
* * cygcheck.cc (main): Allow a '-l' without an additional argument.Christopher Faylor2004-11-111-10/+4
|
* * cygcheck.cc (keyeprint): New optional parameters: show_error andBas van Gompel2004-11-111-2/+7
| | | | print_failed.
* * cygcheck.cc (get_dword): Fix errormessage.Bas van Gompel2004-10-311-7/+7
| | | | | | (cygwin_info): Ditto. (track_down): Ditto. (check_keys): Ditto.
* * cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1Bas van Gompel2004-10-271-1/+9
| | | | dlls.
* * cygcheck.cc (dump_sysinfo): Add leading newline before legend forBas van Gompel2004-10-251-1/+1
| | | | drive-list.
* fix whitespace, update some copyrightsChristopher Faylor2004-10-251-3/+3
|
* * 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.