summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
* * cygcheck.cc (dump_sysinfo): Convert "if/else if" chain to a switchCorinna Vinschen2012-10-092-9/+21
| | | | | statement. Drop "not yet supported" and "Server" from Windows 2012 output string.
* * cygcheck.cc (dump_sysinfo): Drop "not yet supported" text fromCorinna Vinschen2012-09-022-25/+59
| | | | Windows 8. Update products array.
* * Makefile.in (cygcheck.exe): Link against psapi.dll.Corinna Vinschen2012-07-116-43/+113
| | | | | | | | | | | | | | | | | | | | | | * bloda.cc: Change include section to work with Mingw64 headers. Include psapi.h. Use SystemProcessInformation instead of SystemProcessesAndThreadsInformation throughout and add define for w32api headers. Ditto for PSYSTEM_PROCESS_INFORMATION vs. PSYSTEM_PROCESSES. (system_module_list): New type to replace SYSTEM_MODULE_INFORMATION. Change usage throughout accordingly. (get_module_list): Fetch module list using PSAPI functions EnumDeviceDrivers and GetDeviceDriverBaseNameA. * cygcheck.cc (max): Define as __max if not defined already. (alloca): Only define if not defined already. (handle_unique_object_name): Use explicit sharing flags rather than FILE_SHARE_VALID_FLAGS which officially is only available in DDK headers. (PRODUCT_ULTIMATE_E): Only define if not defined already. * dump_setup.cc: Change include section to work with Mingw64 headers. (NtQueryAttributesFile): Drop NTOSAPI aka DECLSPEC_IMPORT. * strace.cc: Change include section to work with Mingw64 headers. (alloca): Only define if not defined already.
* * cygpath.cc: Change including headers to allow building againstCorinna Vinschen2012-07-066-38/+45
| | | | | | | | | | | | | | Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers. Define _WIN32_WINNT and WINVER as 0x0602. (RtlEqualUnicodePathPrefix): Drop definition. Pulled in from ntdll.h now. (get_device_name): s/Zw/Nt. * dumper.cc: Include sys/param.h (dumper::dump_memory_region): Use MIN rather than min. * locale.cc: Include stdlib.h. Define _WIN32_WINNT and WINVER as 0x0602. * ps.cc: Include ntdef.h and ntdll.h rather than ddk headers. * regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.
* * cygcheck.cc (dump_sysinfo): Change "Server 8" to officialCorinna Vinschen2012-06-032-2/+7
| | | | "Server 2012".
* * mkpasswd.c (current_user): Actually *use* $HOME if it's available.Corinna Vinschen2012-05-052-2/+11
| | | | Add comment to explain what we're doing here.
* * mkgroup.c (print_special_by_sid): Rename from print_special. ChangeCorinna Vinschen2012-04-053-14/+71
| | | | | | | | | | | calls throughout. (print_special_by_name): New function. (main): Call print_special_by_name for TrustedInstaller account. * mkpasswd.c (print_special_by_sid): Rename from print_special. Change calls throughout. (print_special_by_name): New function. (enum_std_accounts): Call print_special_by_name for TrustedInstaller account.
* * pldd.c: Fix typo in license header.Yaakov Selkowitz2012-02-242-1/+12
|
* * pldd.c: Fix formatting.Yaakov Selkowitz2012-02-241-9/+9
|
* * Makefile.in (CYGWIN_BINS): Add pldd.Yaakov Selkowitz2012-02-243-1/+164
| | | | | | (pldd.exe): Add -lpsapi to ALL_LDFLAGS. * pldd.c: New file. * utils.sgml (pldd): New section.
* * passwd.cc: Add -v option to print version information as well, sinceCorinna Vinschen2012-02-092-2/+9
| | | | it's used in older csih.
* * utils.sgml: Fix typos.Corinna Vinschen2012-02-042-7/+11
|
* * strace.cc (proc_child): Don't right-shift exit value.Christopher Faylor2012-01-312-4/+9
| | | | (main): Call ExitProcess() to exit exactly the same way as any straced child.
* * tzset.c: Throughout use wide characters to be locale agnostic.Corinna Vinschen2012-01-292-470/+475
| | | | (main): Call setlocale.
* * Makefile.in (CYGWIN_BINS): Add tzset.Corinna Vinschen2012-01-294-1/+753
| | | | | | | | | * tzset.c: New tool, new file. * utils.sgml (tzset): New section. * new-features.sgml (ov-new1.7.10): Add tzset. * release/1.7.10: Add tzset.
* * ldd.cc (start_process): Handle .oct and .so as DLLs.Yaakov Selkowitz2012-01-242-1/+9
|
* Don't leave Windows 2000 behind.Corinna Vinschen2011-12-223-22/+72
| | | | | | | | | * Makefile.in (ps.exe): Revert previous change. * ps.cc: Include psapi.h again. (main): In CW_GETPINFO_FULL case. Evaluate minimal process access mask required per OS and use that in OpenProcess call. Use GetModuleFileNameExW on Windows 2000 or if fetching the drive mapping failed. Handle empty process name.
* * Makefile.in (ps.exe): Drop -lpsapi from ALL_LDFLAGS.Corinna Vinschen2011-12-223-63/+43
| | | | | | | | * ps.cc: Don't include psapi.h. (dosdevs): Drop. (unicode_buf): Define. (main): Simplify path evaluation in CW_GETPINFO_FULL case. Fetch drive map from Cygwin DLL. Use it to convert NT device paths to Win32 paths.
* Clean up whitespace.Christopher Faylor2011-12-1726-809/+809
|
* * Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.Corinna Vinschen2011-12-023-156/+78
| | | | | | | | | | | | | | | | * cygpath.cc: Throughout, use cygwin_conv_path WIN_W rather than WIN_A conversion. (get_long_path_name_w32impl): Remove. (get_long_name): Drop pre-Windows 2000 accommodations. Just call GetLongPathNameW here directly. (get_special_folder): Convert first parameter to WCHAR buffer pointer. Drop conversion of result from WCHAR * to char *. (do_sysfolders): Accommodate change to get_special_folder and only convert result to char * last. Drop pre-Windows 2000 accommodations and just call GetProfilesDirectoryW directly. Replace call to GetWindowsDirectoryW with call to GetSystemWindowsDirectoryW. Just call GetShortPathNameW directly. (do_pathconv): Simplify buffer handling.
* * mkgroup.c: Drop support for NT4 domains.Corinna Vinschen2011-12-014-156/+54
| | | | | | | | | | | * mkpasswd.c: Ditto. (psx_dir): Remove. (current_user): Drop support for -m option. Use $HOME as is since it's a POSIX path anyway. (enum_users): Drop support for -m option. (usage): Mention -m option as ignored. (main): Drop support for -m option. Mark ignored options as deprecated. * utils.sgml (mkpasswd): Remove description of -m option.
* * locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODECorinna Vinschen2011-11-282-3/+8
| | | | path and convert that to POSIX.
* * ps.cc: Remove all Win 9x considerations. Use psapi functionsCorinna Vinschen2011-11-283-120/+25
| | | | | | | | directly. Drop support for older Cygwin DLLs. Just use progname_long as is since it's already a POSIX path now. Rename "tty" to "pty" as in the Cygwin DLL. Call setlocale to make sure wcstombs does the right thing according to the current locale. * Makefile.in (ps.exe): Link against psapi.dll.
* * strace.cc (attach_process): Use NT_SUCCESS to figure out ifChristopher Faylor2011-11-242-3/+16
| | | | | | | | NtSetInformationProcess succeeded. (handle_output_debug_string): Put back DebugActiveProcess since it seems to still be needed (on my system at least). Detect new format _STRACE_INTERFACE_ACTIVATE_ADDR which informs whether this is a forked process or not. Use that to decide if forkdebug should be handled.
* * strace.cc (handle_output_debug_string): Disable code which attempted to addChristopher Faylor2011-11-142-0/+10
| | | | | stuff in between '****' blocks since they no longer are the first thing output by an straced process.
* * cygcheck.cc (dump_sysinfo): Add Windows 8 recognition. Note asCorinna Vinschen2011-10-132-4/+15
| | | | unsupported. Update products array.
* * utils.sgml (getconf): Expand documentation.Yaakov Selkowitz2011-10-112-4/+24
|
* * ldd.cc (VERSION): Remove.Corinna Vinschen2011-10-102-2/+4
|
* * ldd.cc: Update copyright.Christopher Faylor2011-10-102-1/+5
|
* * Align usage output, version output, as well as usage and versionCorinna Vinschen2011-10-1021-611/+687
| | | | | | | | | option handling to use the same style throughout all Cygwin utils. Throughout use program_invocation_short_name to refer to current process name in Cygwin executables. * utils.sgml: Align documentation to above change. Add missing sections for getconf, ldd, and setmetamode. * strace.cc (proc_child): Avoid compiler warning.
* * locale.cc (usage): Restructure, rephrase, add new options. DropCorinna Vinschen2011-10-103-40/+123
| | | | | | | | | | | | | | arguments, don't exit. (print_version): New function. (longopts): Add -f, -n, and -V options. Reorder. (opts): Add -f, -n, and -V options. (main): Call GetSystemDefaultUILanguage for -s option. Call GetUserDefaultUILanguage for -u option. Add -f and -n options and call GetUserDefaultLCID and GetSystemDefaultLCID respectively. Return 0 after calling usage in -h case. Add -V option and call print_version. Don't print full usage in default case, rather just a short help message similar to GNU tools. * utils.sgml (locale): Align to above changes. Rephrase description.
* * cygcheck.cc (check_keys): Use UNICODE Win32 functions.Corinna Vinschen2011-10-102-6/+10
|
* * strace.cc (attach_process): Try to turn off DEBUG_ONLY_THIS_PROCESSJon TURNEY2011-09-153-3/+30
| | | | | | | if Attaching to a process with the trace-children flag set. (handle_output_debug_string): Apparently we don't need to explicitly attach for debugging when a child process starts * Makefile.in (strace.exe): Link with ntdll
* * Makefile.in: Check for header file existence when building dumper.exe too.Christopher Faylor2011-08-212-3/+10
|
* * ps.cc (main): Don't overwrite process name, just attach <defunct>Corinna Vinschen2011-08-102-5/+10
| | | | to it for zombie processes.
* * Makefile.in (CYGWIN_BINS): Add getconf.Yaakov Selkowitz2011-07-203-1/+570
| | | | (getconf.c): New file.
* * mingw: Force use of bash.Christopher Faylor2011-06-142-1/+5
|
* * ps.cc (ttynam): Accommodate new console numbering.Christopher Faylor2011-05-292-8/+16
| | | | (main): Ditto.
* * locale.cc (print_locale_with_codeset): Align printing of locale namesCorinna Vinschen2011-05-032-4/+10
| | | | to POSIX.
* * setfacl.c (getaclentry): Allow extra colon in mask and other entries.Corinna Vinschen2011-04-182-1/+9
|
* 2011-04-12 Jon TURNEY <jon.turney@dronecode.org.uk>Jon TURNEY2011-04-132-1/+5
| | | | * utils.sgml (strace): Fix a pair of exchanged lines in usage text.
* * passwd.c (main): Add the ability to specify a username for the -RCorinna Vinschen2011-04-043-12/+38
| | | | | command. * utils.sgml: Document the aforementioned change.
* * regtool.cc (cmd_set): Avoid a compiler warning.Corinna Vinschen2011-03-302-5/+11
|
* * cygcheck.cc (handle_unique_object_name): Avoid a compiler warning.Corinna Vinschen2011-03-294-5/+18
| | | | | | | | (dump_sysinfo): Ditto. * loadlib.h (_load_sys_library): Mark as used, to avoid a compiler warning. * path.cc (oopt): Gurad with !FSTAB_ONLY to avoid a compiler warning. (read_flags): Ditto.
* * setfacl.c (strchrnul): Drop local implementation.Corinna Vinschen2011-03-282-11/+5
|
* * cygcheck.cc: Fix copyright dates.Corinna Vinschen2011-02-152-1/+5
|
* * cygcheck.cc (main): don't imply -d from -s option to cygcheckCorinna Vinschen2011-01-102-3/+7
|
* * setfacl.c (strchrnul): New function.Corinna Vinschen2010-12-112-68/+71
| | | | (getaclentry): Rewrite.
* * cygpath.cc (get_device_name): Fix path length test.Corinna Vinschen2010-12-062-1/+5
|
* * regtool.c (cmd_set): Write correct number of bytes for REG_MULTI_SZ case.Christopher Faylor2010-10-312-2/+7
|