summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* * regtool.cc (find_key): Allow '/' as a synonym for '\\'.Christopher Faylor2001-06-272-3/+10
|
* * mkpasswd.c (main): Output passwd file in binary mode so that there are no CRsChristopher Faylor2001-06-153-2/+13
| | | | | in the file. * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive mounts.
* * mkpasswd.c (enum_users): Use /bin/bash as the default shell.Christopher Faylor2001-05-012-2/+7
| | | | (main): Ditto.
* * passwd.cc (ttymnam): New function.Christopher Faylor2001-04-292-7/+24
| | | | (main): Use ttynam() to report name of tty.
* * dumper.cc (dumper::init_core_dump): Set architecture field in dumpEgor Duda2001-04-192-0/+11
| | | | header.
* * mkgroup.c: Add function pointers `netlocalgroupgetmembers' andCorinna Vinschen2001-04-162-12/+107
| | | | | | | | | | | | | | | | | `netgroupgetusers'. (load_netapi): Load function pointers `netlocalgroupgetmembers' and `netgroupgetusers'. (enum_local_users): New function. (enum_local_groups): Call `enum_local_users' for each group if `print_users' is set. (enum_users): New function. (enum_groups): Call `enum_users' for each group if `print_users' is set. (usage): Add usage text for `-u/--users'. (longopts): Add option `--users'. (opts): Add option character `u'. (main): Set `print_users' according to option `-u/--users'. Call `enum_local_groups' and `enum_groups' with additional parameter `print_users'.
* * mount.cc (longopts): Add help to options list.Christopher Faylor2001-04-163-25/+34
| | | | | | (opts): Add 'h' to options string. * umount.cc (longopts): Add help to options list. (opts): Add 'h' to options string and change 'R' to 'A'.
* Patch by Kazuhiro Fujieda <fujieda@jaist.ac.jp>:Corinna Vinschen2001-04-153-16/+44
| | | | | | | | | | | | * mkgroup.c (enum_groups): Use RID + offset specified an additional argument as ID. (usage): Add description of -o option. (longopts, opts): Add specifications of -o/--id-offset option. (main): Add -o option. Invoke enum_groups with specified offset. * mkpasswd.c (enum_users): Just like mkgroup.c. (usage, longopts, opts): Ditto. (main): Add -o option. Invoke enum_users with specified offset only against domain accounts.
* * mkgroup.c (uni2ansi): Use native method to convert from UnicodeEgor Duda2001-04-113-14/+22
| | | | | | | | | to multi-byte strings. * mkpasswd.c (uni2ansi): Ditto. (enum_users): Pass buffer size when converting string. (enum_local_groups): Ditto. * mkgroup.c (enum_groups): Ditto. (enum_local_groups): Ditto.
* * mount.cc (main): Use getopt_long for parsing arguments.Christopher Faylor2001-04-033-154/+208
| | | | | (usage): Reformat, show long and short options. * umount.cc (main): Ditto, all of the above.
* * mount.cc (show_mounts): Change format string to more closely resemble UNIXChristopher Faylor2001-04-022-9/+8
| | | | when displaying mount table.
* Update copyright.Christopher Faylor2001-03-181-1/+1
|
* * kill.cc (forcekill): Use dwProcessId when opening a process, not the CygwinChristopher Faylor2001-03-182-1/+6
| | | | pid.
* * getfacl.c: Add copyright hint.Corinna Vinschen2001-03-054-0/+40
| | | | | * setfacl.c: Ditto. * strace.cc: Ditto.
* * regtool.cc (cmd_list): Add new registry display options.Christopher Faylor2001-01-103-69/+107
| | | | | | (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-103-574/+595
| | | | (cmd_set): Ditto for rv.
* * cygcheck.cc (cygwin_info): Add some more bounds checking. From Matt HargetChristopher Faylor2000-12-162-49/+205
| | | | | | | | | | | | | | | | | | | <matt@use.net>: * utils/cygcheck.cc (keyeprint): Move declaration before other functions so it could be used by all functions to report error messages. Add comment. (add_path): Check for NULL return from malloc. (find_on_path): Check initial uses of pointers for NULL. (rva_to_offset): Ditto. (init_paths): Add checking for return values of Win32 calls. (get_dword): Ditto. (get_word): Ditto. (dll_info): Ditto, also add NULL pointer checks. (scan_registry): Ditto. (check_keys): Ditto. (dump_sysinfo): Ditto. Add default case to switch. Add error reporting if GetVolumeInformation fails, except when it returns ERROR_NOT_READY. (track_down): Add checking for NULL pointers and return values of Win32 calls. (cygwin_info): Ditto. Correct small memory leak.
* * Makefile.in: Compile/link dumper.exe with c++.Christopher Faylor2000-12-112-10/+14
|
* * mkpasswd.c: make default home directory /home/$user if oneCorinna Vinschen2000-12-072-19/+58
| | | | | | | can't be found in user registry. Allow user to override that with command line arg. (longopts): Fix typo in `local-groups' option. (main): Initialize `passed_home_path' before first usage.
* Make initial tabbing consistent.Christopher Faylor2000-12-071-109/+109
|
* * Makefile.in: Use CXX to build the DLL.Christopher Faylor2000-12-034-114/+245
| | | | | * configure.in: Find correct c++ compiler. * configure: Regenerate.
* * utils.sgml: Document new options for ps and strace.Christopher Faylor2000-11-192-5/+14
|
* * mount.cc (main): Call show_cygdrive_info instead of show_cygdrive_prefixes.Christopher Faylor2000-11-082-10/+24
| | | | | | | * mount.cc (show_cygdrive_prefixes): Remove function. * mount.cc (show_cygdrive_info): New function. Actually, show_cygdrive_info is really an enhanced version of show_cygdrive_prefixes renamed to show_cygdrive_info that also displays the user and system flags.
* * mkgroup.c (load_netapi): New function to load netapi32.dll functionsCorinna Vinschen2000-11-083-104/+251
| | | | | | | | | | | | | | | | dynamically so that mkgroup works on 9x/ME as well. Use corresponding function pointers throughout. (usage): Change to `int'. Change text to be conformant to mkpasswd. (main): Use `getlongopt' to process options. Special handling to create a group entry on 9x/ME. * mkpasswd.c (load_netapi): New function to load netapi32.dll functions dynamically so that mkpasswd works on 9x/ME as well. Use corresponding function pointers throughout. (usage): Change to `int'. Change text to be conformant to mkgroup. (main): Use `getlongopt' to process options. Special handling to create a passwd entry on 9x/ME. Change conditional to create an entry for the local administrators group when appropriate.
* * kill.cc (main): Return 1 in case of errors.Corinna Vinschen2000-11-022-1/+7
|
* * Makefile.in: Accomodate newer gcc's which require linking of c++ programsChristopher Faylor2000-10-286-53/+63
| | | | | | | | with g++. Fixup output for some compilations. * cygcheck.cc: Respond to compiler warnings. * dumper.cc (main): Ditto. * parse_pe.cc (exclusion::sort_and_check): Ditto. * setfacl.cc (getaclentry): Ditto.
* Cleanup formatting on some files. Remove excessive whitespace.Christopher Faylor2000-10-2815-686/+764
|
* * strace.cc (main): Add a '-b' option.Christopher Faylor2000-10-282-2/+14
|
* * ssp.c: newDJ Delorie2000-10-194-1/+934
| | | | | * ssp.txt: new * Makefile.in: build ssp.exe
* * ps.cc (main): Add some extra space to Windows pid output for Windows 95.Christopher Faylor2000-10-182-2/+7
|
* * ps.cc (main): Add some extra space to pid output for Windows 95.Christopher Faylor2000-10-182-6/+10
|
* * cygcheck.cc (main): Fix argument counting.Corinna Vinschen2000-10-162-3/+8
|
* * ps.cc (main): Accomodate new PID_ constant.Christopher Faylor2000-10-153-4/+13
|
* * strace.cc (proc_child): Handle exceptions correctly.Christopher Faylor2000-10-122-2/+10
|
* * ps.cc (main): Change order of reporting slightly so that windows pids areChristopher Faylor2000-10-094-13/+14
| | | | | | | | more obvious. * strace.cc (add_child): Just add child's pid directly. (remove_child): No need to close the child process pid since ContinueDebugEvent does that automatically. (proc_child): Ditto for child thread.
* Forgot to remove cygkeycheck.ccCorinna Vinschen2000-09-291-105/+0
|
* * cygcheck.cc (keyeprint): New function.Corinna Vinschen2000-09-293-21/+149
| | | | | | | | (check_keys): New function. Perform checking keycodes. (main): Add option `-k' for invoking check_keys. Change option processing to use long options and getopt_long. * cygkeycheck.cc: Removed. Functionality moved to `cygcheck.cc'. * Makefile.in: Remove cygkeycheck from the dependencies.
* * cygkeycheck.cc: New file. Utility to retrieve keycodes.Corinna Vinschen2000-09-283-1/+111
| | | | * Makefile.in: Add cygkeycheck to the dependencies.
* * cygpath.cc: Add new options: -s and -i.Christopher Faylor2000-09-193-16/+136
| | | | * utils.sgml: Document the new options.
* * kill.cc (main): Change behavior of -f so that it will force the killing of aChristopher Faylor2000-09-132-6/+24
| | | | | | cygwin process after waiting 2 tenths of a second for it to terminate. (forcekill): Add an extra argument determining whether to wait for the process to exit.
* * Makefile.in: Refine dumper.exe message.Christopher Faylor2000-09-102-4/+9
|
* * kill.c (main): Avoid skipping next argument when a signal number isChristopher Faylor2000-08-293-2/+10
| | | | | specified. * Makefile.in: Always clean dumper.exe.
* * Makefile.in: Only build dumper.exe when all of its library and includeChristopher Faylor2000-08-252-8/+29
| | | | dependencies are available.
* * Makefile.in: Make failure to build dumper.exe a non-error.Christopher Faylor2000-08-252-2/+6
|
* * ps.cc (main): Always print a cygwin process using cygwin paths.Christopher Faylor2000-08-252-2/+6
|
* Change attribution.Christopher Faylor2000-08-241-1/+1
|
* * Makefile.in: Add dumper.exe target and associated mechanisms for building it.Christopher Faylor2000-08-248-3/+1120
| | | | | | | * dumper.cc: New file. * dumper.h: New file. * module_info.cc: New file. * parse_pe.cc: New file.
* * passwd.c (main): Initialize oldpwd before beeing used.Corinna Vinschen2000-07-312-0/+5
|
* * kill.cc (main): Add '-f' option to force termination of a process.Christopher Faylor2000-07-293-36/+244
| | | | | | | | | (forcekill): New function. * ps.cc (main): Add '-W' option to list Windows pids as well as Cygwin pids. (dummyprocessmodules): New function. (GetModuleFileNameEx95): New function. (init_win): New function. (to_time_t): New function.