summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * path.cc (read_mounts): Skip unnecessary test if path has beenCorinna Vinschen2009-11-042-6/+15
| | | | fetched from loaded cygwin1.dll.
* * cygcheck.cc (cygwin_dll_path): New global variable.Corinna Vinschen2009-11-044-15/+28
| | | | | | | | (load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path. * strace.cc: Full ditto. * path.cc (read_mounts): First use the path stored in cygwin_dll_path, if available. Then fall back to fetching own path. Add comment. Drop printing warnings since they look funny in strace output.
* * path.cc (read_mounts): First get installation path from own path.Corinna Vinschen2009-11-042-20/+49
| | | | | Check if cygwin1.dll exists in same directory. Only if not, try to get installation path from setup registry key. Add ample warnings.
* * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.Corinna Vinschen2009-11-042-0/+5
|
* * cygcheck.cc: Include cygprops.h.Corinna Vinschen2009-10-313-10/+329
| | | | | | | | | | | | | | | | | | | (del_orphaned_reg): New option variable. (unique_object_name_opt): Ditto. (handle_reg_installation): New function. (print_reg_installations): Ditto. (del_orphaned_reg_installations): Ditto. (memmem): Ditto. (handle_unique_object_name): Ditto. (dump_sysinfo): Call print_reg_installations from here. (usage): Add usage for new options --delete-orphaned-installation-keys, --enable-unique-object-names, --disable-unique-object-names, and --show-unique-object-names. (longopts): Add new options --delete-orphaned-installation-keys, --enable-unique-object-names, --disable-unique-object-names, and --show-unique-object-names. (main): Handle new options. * utils.sgml (cygcheck): Change documentaion accordingly.
* * cygcheck.cc (pretty_id): Drop arguments. Don't change CYGWINCorinna Vinschen2009-10-282-17/+10
| | | | | | environment variable. (dump_sysinfo): Don't tweak CYGWIN environment variable, just call pretty_id once.
* * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.Corinna Vinschen2009-10-202-45/+78
|
* * cygpath.cc (get_special_folder): Fetch path as WCHAR and convertCorinna Vinschen2009-10-152-25/+44
| | | | | | | using my_wcstombs. (get_user_folder): Remove. (do_sysfolders): Use get_special_folder instead of get_user_folder. Fetch system paths as WCHAR and convert using my_wcstombs.
* * kill.cc (main): Skip to PID loop on invalid option to handleCorinna Vinschen2009-10-122-4/+7
| | | | negative pids there.
* * mkpasswd.c: Properly define __progname as __declspec(dllimport).Christopher Faylor2009-10-022-2/+2
| | | | * mkgroup.c: Ditto.
* * mkgroup.c (enum_local_groups): Avoid error message if given groupCorinna Vinschen2009-08-113-3/+24
| | | | | | | name isn't found and return 0 to allow searching to proceed. Always return 0 or 1, not -1. (enum_groups): Avoid error message if given group name isn't found. * mkpasswd.c (enum_users): Ditto.
* * mingw: Add fallbacks to search for MinGW components in standardDave Korn2009-08-102-1/+7
| | | | install locations if not found in compiler's $prefix.
* * mount.cc (do_mount): Don't exit, just return.Corinna Vinschen2009-08-092-2/+4
|
* * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" toCorinna Vinschen2009-07-232-1/+6
| | | | products array.