summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
|
* * regtool.cc (find_key): Fix allocation size of "value".Corinna Vinschen2010-03-242-2/+6
|
* * locale.cc (add_locale_alias_locales): Always use loc_num at functionCorinna Vinschen2010-03-232-1/+7
| | | | start to avoid confusing bsearch.
* * locale.cc: Revert accidental checkin of unfinished changes.Corinna Vinschen2010-03-232-98/+104
|
* * locale.cc (print_locale_with_codeset): Drop redundant name parameter.Corinna Vinschen2010-03-232-107/+112
| | | | | | Simplify creating locale string. Add "@" in case of a modifier. (print_locale): Drop name parameter in calls to print_locale_with_codeset.
* * utils.sgml (kill): Add SIGIO, SIGCLD, and SIGPWR.Yaakov Selkowitz2010-02-262-0/+7
|
* * utils.sgml (locale): Change description of -a and -av to matchCorinna Vinschen2010-02-252-15/+53
| | | | latest changes.
* * locale.cc (printlocale): Remove.Corinna Vinschen2010-02-232-17/+182
| | | | | | | | | | | | | | | | (loc_t): New type to keep locale information for printing. (print_codeset): New function to print codeset as on Linux. (print_locale_with_codeset): New function to print single locale. Print verbose style as the Linux locale(1) tool. (print_locale): New function to print single locale plus its UTF-8 variation, if available. (compare_locales): New helper function for bsearch and qsort on loc_t. (add_locale): New function to store locale in loc_t array. (add_locale_alias_locales): New function to store locales from locale.alias file in loc_t. (print_all_locales): Call add_locale instead of printlocale. Call add_locale_alias_locales, sort locales alphabetically and print them.
* * strace.cc (mnemonic_table): Add "special" mask option.Christopher Faylor2010-02-223-38/+49
| | | | | (usage): Document it. * utils.sgml: Ditto.
* * cygpath.cc (do_pathconv): Fix erroneously printing native NT pathCorinna Vinschen2010-02-222-1/+8
| | | | prefix introduced by previous patch.
* * locale.cc (lc_time_names): Add "date_fmt" entry.Corinna Vinschen2010-02-222-0/+5
|
* Update copyrightChristopher Faylor2010-02-191-1/+1
|
* utils/ChangeLog:Christopher Faylor2010-02-193-0/+9
| | | | | | | | | | * strace.cc (mnemonic_table): Add pthread mask option. (usage): Document strace pthread mask option. * utils.sgml: Ditto. cygwin/ChangeLog: * include/sys/strace.h: Remove old code. Add support for ptrace tracing.
* * locale.cc (print_lc_mstrings): New function to printCorinna Vinschen2010-02-192-2/+46
| | | | | | | | | semicolon-separated strings. (enum type_t): New type is_sepstrings_linf. (lc_time_names): Change type of era and alt_digits entry to is_sepstrings_linf. (print_lc): Add case for is_sepstrings_linf and call print_lc_mstrings in that case.
* * Makefile.in (CYGWIN_BINS): Rename getlocale to locale.Corinna Vinschen2010-02-175-292/+719
| | | | | | | | * getlocale.c: Rename to ... * locale.cc: Revamp to add full functionality of POSIX locale(1) tool, as far as Cygwin supports it. * utils.sgml (getlocale): Move and rename to ... (locale): Accommodate new functionality.
* * cygpath.cc (do_pathconv): Fix potential crash.Corinna Vinschen2010-02-132-6/+8
|
* * getlocale.c (main): Rename local variable to avoid problems.Corinna Vinschen2010-02-113-24/+83
| | | | | | | | Avoid string comparisons, rather test language and sublanguage codes wheere possible. Add more code to handle Serbian language/territory state identical on all Windows versions. Fix handling for "@latin" modifier in Belarusian locale. * utils.sgml (getlocale): Try to make wording and example clearer.
* * getlocale.c (usage): Change text slightly.Corinna Vinschen2010-02-102-2/+6
|
* * getlocale.c (main): Restrict -a loop to avoid psudo language entriesCorinna Vinschen2010-02-102-1/+6
| | | | on Vista and later.
* * getlocale.c (main): Revamp -a loop to avoid duplicates and to printCorinna Vinschen2010-02-102-16/+81
| | | | locales with the correct, supported modifiers.
* * getlocale.c (main): Use setlocale and fetch string from WindowsCorinna Vinschen2010-01-252-5/+14
| | | | using GetLocaleInfoW. Explain why.
* * Makefile.in (CYGWIN_BINS): Add getlocale.Corinna Vinschen2010-01-224-2/+185
| | | | | * getlocale.c: New file. * utils.sgml (getlocale): New section describing new getlocale tool.
* * cygpath.cc (get_mixed_name): Drop function. Replace with call toCorinna Vinschen2010-01-162-35/+15
| | | | | | convert_slashes throughout. (do_sysfolders): Free allocated buffer. (do_pathconv): Fix freeing last buffer.
* * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.Corinna Vinschen2010-01-112-16/+39
|
* * cygpath.cc: Throughout, free obsolete path buffers.Corinna Vinschen2010-01-072-12/+52
|
* * cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.Corinna Vinschen2010-01-072-26/+28
| | | | | | | Revert usage of argz functions when reading input from file and simplify option usage. Allow only one option argument and use the rest as filename argument to allow spaces in filenames. Restrict processing special folder type options to one line.
* * ps.cc (main): Return 0 if pid found.Christopher Faylor2009-12-182-2/+9
|
* * regtool.cc: Throughout, convert all registry calls to wide charCorinna Vinschen2009-12-163-100/+146
| | | | | | | | | | | | | calls and use string conversion according to current locale. (longopts): Change "dword-le" to "dword-be", as was originally intended. (usage): Change usage accordingly. (print_version): Simplify copyright dates in output. (cmd_list): Handle REG_LINK like REG_SZ. (cmd_get): Ditto. (main): Call setlocale. * utils.sgml (regtool): Fix options and add missing descriptions for new features.
* * setfacl.c (getaclentry): Allow to delete default entries for theCorinna Vinschen2009-11-292-3/+17
| | | | owner and owner group.
* * cygcheck.cc (dump_sysinfo): Fix typo in products.Corinna Vinschen2009-11-272-1/+5
|
* * getfacl.c (print_version): Fix copyright.Corinna Vinschen2009-11-112-18/+23
| | | | | | (main): Don't reuse local variables confusingly. Don't print any file information if acl() fails. Improve error message. Always print a trailing empty line. Set return code to 2 if accessing some file fails.