summaryrefslogtreecommitdiffstats
path: root/winsup/utils/regtool.cc
Commit message (Collapse)AuthorAgeFilesLines
* * regtool.cc (find_key): Fix allocation size of "value".Corinna Vinschen2010-03-241-2/+2
|
* * regtool.cc: Throughout, convert all registry calls to wide charCorinna Vinschen2009-12-161-94/+109
| | | | | | | | | | | | | 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.
* * cygcheck.cc (pathlike::check_existence): Remove class name from declaration.Christopher Faylor2008-09-121-3/+2
| | | | | | | | | | | | | | | | | | | | | (display_internet_error): Use proper format specifier for DWORD. (environ): Remove unneeded declaration. (main): Use brace around nested if to avoid an overly-helpful compiler warning. * dump_setup.cc (parse_filename): Reorganize nested if to avoid an overly-helpful compiler warning. * path.cc (GUID_shortcut): Use braces around part of initializer which needs them. (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a compiler warning. (struct opt): Make static. * ps.cc (main): Reorganize nested if to avoid an overly-helpful compiler warning. * regtool.cc: Make some anonymous structs static to avoid a compiler warning. * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential uninitialized use. * strace.cc (add_child): Use proper format specifier for DWORD. (remove_child): Ditto. (proc_child): Ditto.
* * cygpath.cc (do_sysfolders): Use cygwin_conv_path.Corinna Vinschen2008-03-121-4/+10
| | | | | | | | | | | | (do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list. * dumper.cc (main): Use cygwin_conv_path. Allocate target path dynamically. * mkpasswd.c (current_user): Use cygwin_conv_path. (enum_users): Ditto. * ps.cc (NT_MAX_PATH): Define. (main): Use cygwin_conv_path. * regtool.cc (find_key): Ditto. Allocate target path dynamically. (cmd_save): Ditto.
* * regtool.cc (opts): Add missing 'W'.Corinna Vinschen2007-12-071-1/+1
|
* * regtool.cc (key_type): Drop.Corinna Vinschen2006-10-211-111/+197
| | | | | | | | | | | | | | | | | | | | (REG_AUTO): Define. (value_type): Replace key_type. Use REG_xxx values directly. Accomodate change throughout. (longopts): Add --dword, --dword-le, --none, --qword and --hex options. (opts): Add -d, -D, -n, -Q and -x options. (types): Array to convert REG_xxx into strings. (hex): New variable to keep value of --hex option. (usage): Accomodate new options. Print only the necessary by default. Only be verbose in case of -h/--help option. (cmd_list): Use key separator from -K option when printing. Print value type when verbose option is given. Handle so far not handled REG_xxx types. (cmd_set): Avoid SEGV due to missing argument. Handle so far not handled REG_xxx types. (cmd_get): Handle --binary option type agnostic. Handle so far not handled REG_xxx types. (main): Handle new options.
* * regtool.cc (longopts): Add --wow32 option.Corinna Vinschen2006-10-191-0/+5
| | | | | | | (opts): Add -W option. (usage): Add text for --wow32/-W option. (main): Handle --wow32/-W option. * utils.sgml: Document the new -W option.
* * regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead defineCorinna Vinschen2006-10-161-4/+1
| | | | WINVER to 0x0502 before including windows.h.
* * regtool.cc (KEY_WOW64_64KEY): Define.Corinna Vinschen2006-10-161-6/+31
| | | | | | | | | | | | | | | (longopts): Add --wow64 option. (opts): Add -w option. (wow64): New variable to control usage of KEY_WOW64_64KEY access flag. (usage): Add text for --wow64/-w option. (print_version): Fix copyright. (find_key): Use wow64 value in calls to RegOpenKeyEx and RegCreateKeyEx. (cmd_add): Use wow64 value in call to RegCreateKeyEx. (regDeleteKeyEx): New function pointer to load RegDeleteKeyEx function dynamically. (cmd_remove): Load and use regDeleteKeyEx when wow64 is set. (main): Handle --wow64/-w option. * utils.sgml: Document the new -w option.
* * regtool.cc (options): Add 'binary'.Corinna Vinschen2006-03-031-10/+174
| | | | | | | | | | | | | | (usage): Document 'load|unload|save' and '-b'. (find_key): Add 'options' parameter, add load/unload. (cmd_set): Add KT_BINARY case. (cmd_get): Add hex output in KT_BINARY case. (cmd_load): New function. (cmd_unload): New function. (set_privilege): New function. (cmd_save): New function. (commands): Add load, unload and save. (main): Add '-b' * utils.sgml (regtool): Document it.
* * regtool.cc (usage): Clarify help for "-K".Corinna Vinschen2006-02-151-1/+1
|
* * regtool.cc: Extend copyright-years.Corinna Vinschen2005-09-081-7/+8
| | | | | | | | | | (print_version): Ditto. (cmd_list): Don't depend on terminating '\0' being present on string-values. (cmd_get): Don't attempt to read more than present, but keep extra space for terminating '\0'. Really output REG_BINARY. Don't leak memory. (cmd_set): Include trailing '\0' in string's length.
* * regtool.cc (opts): The argument to 'K' is not optional.Christopher Faylor2005-02-271-5/+2
| | | | (main): Revert previous change. Just let getopt deal with missing argument.
* * regtool.cc (main): Avoid a SEGV when nothing follows -K.Christopher Faylor2005-02-271-1/+4
|
* fix whitespace, update some copyrightsChristopher Faylor2004-10-251-7/+7
|
* * regtool.cc (usage): Add missing linefeed. Move example to --helpCorinna Vinschen2003-08-151-15/+17
| | | | text. Fix forward slash description.
* * cygcheck.cc (usage) Add description output.Joshua Daniel Franklin2003-04-261-0/+1
|
* Add final newlines to utilsJoshua Daniel Franklin2002-09-151-1/+2
|
* * regtool.cc (find_key): Add support for custom key separator.Christopher Faylor2002-08-131-3/+14
| | | | (usage): Document it.
* * regtool.cc (Fail): Be more verbose.Corinna Vinschen2002-06-071-14/+54
| | | | | | (find_key): Add support for remote registry access. (usage): Document it. * utils.sgml: Document it.
* * regtool.cc (prog_name): New global variable.Christopher Faylor2002-06-031-58/+127
| | | | | | | | | (longopts): Ditto. (opts): Ditto. (usage): Standardize usage output. Rearrange/add descriptions. (print_version): New function. (main): Accomodate longopts and new --help, --version options. Add check for (_argv[optind+1] == NULL).
* * regtool.cc (find_key): Handle keys with only one subkey.Corinna Vinschen2001-07-151-4/+8
|
* * regtool.cc (find_key): Revert previous change.Christopher Faylor2001-06-281-7/+4
|
* * regtool.cc (find_key): Allow '/' as a synonym for '\\'.Christopher Faylor2001-06-271-3/+6
|
* * regtool.cc (cmd_list): Add new registry display options.Christopher Faylor2001-01-101-59/+85
| | | | | | (cmd_list): Add code to implement -p, -k, and -l options. * regtool.cc (Fail): Add call to LocalFree to free memory allocated by FormatMessage.
* more formatting changes.Christopher Faylor2001-01-101-2/+4
|
* * regtool.cc (translate): Ensure that 'c' is initialized.Christopher Faylor2001-01-101-228/+245
| | | | (cmd_set): Ditto for rv.
* * regtool.cc (find_key): Add parameter `access'.Corinna Vinschen2000-05-191-9/+9
| | | | | | | | Call `RegOpenKeyEx' with that desired access. (cmd_add, cmd_remove, cmd_set, cmd_unset): Call `find_key' with KEY_ALL_ACCESS access. (cmd_list, cmd_check, cmd_get): Call `find_key' with KEY_READ access.
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+524