summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* * cygpath.cc (RtlEqualUnicodePathPrefix): New helper function.Corinna Vinschen2010-09-062-10/+73
| | | | | | | | | | | | (HARDDISK_PREFIX): Move. (GLOBALROOT_PREFIX): Define. (get_device_name): Take GLOBALROOT_PREFIX into account. Improve check for path to allow filesystem access via block devices. Potentially drop \\.\ prefix if resulting path is a valid DOS pathname. (do_pathconv): Make sure to drop \\?\ prefix only if path is actually a filesystem based path. (print_version): Fix copyright.
* * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES toCorinna Vinschen2010-08-282-1/+6
| | | | LOAD_WITH_ALTERED_SEARCH_PATH.
* * loadlib.h: New header implementing safe LoadLibrary calls.Corinna Vinschen2010-08-2813-15/+95
| | | | | | | | | | | | Include throughout files using LoadLibrary function. * cygcheck.cc (dump_sysinfo): Retrieve kernel32.dll handle via GetModuleHandle, rather than using LoadLibrary. * cygpath.cc (get_long_name): Ditto. (do_sysfolders): Append .dll suffix in LoadLibrary call. * ldh.cc (WinMain): Use LoadLibraryExW with DONT_RESOLVE_DLL_REFERENCES to avoid loading malicious library code. * locale.cc (print_locale_with_codeset): Change way to retrieve kernel32.dll path.
* * cygpath.cc (get_device_name): Prefer the \\.\X: DOS device forCorinna Vinschen2010-08-262-2/+17
| | | | harddisks, if available.
* * ldd.cc (report): Drop long pathname considerations which result inCorinna Vinschen2010-08-232-9/+7
| | | | invalid path, now that this is done in cygwin_conv_path.
* * mount.cc (from_fstab): Fix potentially fatal typo.Corinna Vinschen2010-08-132-1/+5
|