summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
|
* * mount.cc (do_mount): Don't treat "bind" mount as remote mount.Corinna Vinschen2010-08-113-18/+46
| | | | | | (mount_entries): Drop the "bind" option from output. * utils.sgml (mount): Match examples to actual mount output. Add "bind" option and add example.
* * mingw: Use sysroot, if present, for mingw_dir.Yaakov Selkowitz2010-08-112-1/+9
|
* * dump_setup.cc (tfx_chars): New WCHAR array, copied from Cygwin.Corinna Vinschen2010-07-212-3/+114
| | | | | | | | (transform_chars): New function, copied from Cygwin. (simple_nt_stat): New function to check file existance using native NT function. Explain why. (directory_exists): Call simple_nt_stat. (file_exists): Ditto.
* * ldd.cc: Clean up formatting throughout.Christopher Faylor2010-07-052-46/+50
| | | | | | | | (head): Move earlier. (saw_file): Ditto. (print_dlls): Reset head here. Record seen dll names so they will not potentially be printed later. (process_file): Remove clearing of head here.
* * dump_setup.cc (dump_file): Read requested content from setup.rcCorinna Vinschen2010-07-052-13/+31
| | | | file created by newer setup.exe.
* * utils.sgml (locale): Change stray local cygdrive prefix to Cygwin'sCorinna Vinschen2010-06-292-1/+6
| | | | default.
* * utils.sgml (mount): Add description for "dos" and "ihash" mountCorinna Vinschen2010-04-292-0/+13
| | | | options.
* * path.cc: Include sys/cygwin.h if built for mount(1).Corinna Vinschen2010-04-292-1/+17
| | | | | | (struct opt): Add "dos" and "ihash" options. (from_fstab_line): Call cygwin_internal rather than read_flags if built for mount(1).
* * mount.cc (oopts): Remove entirely.Corinna Vinschen2010-04-292-48/+17
| | | | | | | | (usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of mount options. (print_version): Fix copyright date. (main): Replace option processing loop with single call to cygwin_internal (CW_CVT_MNT_OPTS).
* * locale.cc (print_lc_xxx_charset): Remove.Corinna Vinschen2010-04-282-100/+112
| | | | | | | | | | | | | (enum type_t): Change according to the fact that nl_langinfo now returns all locale category values. (lc_ctype_names): Add new category members. Redefine for exclusive nl_langinfo usage. (lc_numeric_names): Ditto. (lc_time_names): Ditto. (lc_collate_names): Ditto. (lc_monetary_names): Ditto. (lc_messages_names): Ditto. (print_lc): Change switch according to new type_t values.
* * locale.cc (print_charmaps): Add EUC-CN and GB2312.Corinna Vinschen2010-03-272-0/+6
|