summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
* Add final newlines to utilsJoshua Daniel Franklin2002-09-1514-13/+41
|
* 2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>Joshua Daniel Franklin2002-09-152-2/+10
| | | | | | * cygpath.cc (options) New global variable. (main) Make short options global for easier change. (print_version) Add a missing newline.
* output some newlines.Christopher Faylor2002-08-231-2/+2
|
* fix some glitchesChristopher Faylor2002-08-211-5/+5
|
* * regtool.cc (find_key): Add support for custom key separator.Christopher Faylor2002-08-132-3/+19
| | | | (usage): Document it.
* * mkgroup.c (main): Don't print an entry for "Everyone".Corinna Vinschen2002-08-023-4/+15
| | | | | * mkpasswd.c (print_special): Set pw_gid to 544 for SYSTEM user. (main): Don't print an entry for "Everyone".
* jdf fix.Christopher Faylor2002-07-161-6/+6
|
* jdf patchChristopher Faylor2002-07-111-102/+482
|
* more jdfChristopher Faylor2002-07-101-27/+54
|
* More jdf changes.Christopher Faylor2002-07-091-137/+176
|
* Joshua Daniel Franklin update.Christopher Faylor2002-07-081-62/+121
|
* doc patch.Christopher Faylor2002-07-071-76/+85
|
* * configure.in: Check for libiconv.a.Christopher Faylor2002-07-074-38/+78
| | | | | * configure: Regenerate. * Makefile.in: Add libiconv.a to libraries required for dumper.exe.
* * Makefile.in: Use MINGW stuff from Makefile.common.Christopher Faylor2002-07-072-9/+8
|
* * mkgroup.c: Add function pointers for functions from advapi32.dll.Corinna Vinschen2002-07-022-4/+28
| | | | | | (load_netapi): Load used functions from advapi32.dll. (main): Use function pointers instead of statically linked functions from advapi32.dll.
* * mount.cc (main): Ensure that mount_already_exists() also gets default flagChristopher Faylor2002-07-013-61/+117
| | | | | | | | | that is passed to do_mount. * cygpath.cc (long_options): Add "dos" and "mixed", correct "close", "file" and "type" to use NULL flag. (usage): Clean up usage output (more), accomodate new options. (main): Add --dos and --mixed options; accomodate all output forms in --type. Make UNIXy output default.
* Update from Joshua Daniel FranklinChristopher Faylor2002-06-251-120/+161
|
* * cygpath.cc (usage): Clean up usage output.Christopher Faylor2002-06-192-45/+55
| | | | (dowin): Correct output of -t mixed for -ADHPSW options.
* * passwd.c: Rearrange includes to avoid unnecessary warnings.Corinna Vinschen2002-06-142-15/+50
| | | | | | | | | | | | (GetPW): Add parameter to (dis)allow printing of Windows username. Use defines instead of numerical constants where possible. Try avoiding impersonation problem. Rearrange to print Windows username only if it's different from Cygwin username. (ChangePW): Use defines instead of numerical constants where possible. (main): Call GetPW with additional parameter. Change error text. * passwd.c (GetPW): Handle case of user-edited /etc/passwd with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
* Add dumper.exe words from Egor Duda.Christopher Faylor2002-06-121-0/+46
|
* * path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.Christopher Faylor2002-06-092-3/+8
| | | | (getmntent): Ditto.
* * mount.cc (main): Use default system/user flag for cygdrive stuff, too.Christopher Faylor2002-06-093-4/+12
| | | | | | (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE. * umount.cc (remove_cygdrive_prefix): Ditto. (main): Use default system/user flag for cygdrive stuff, too.
* * mount.cc (opts): Remove '-i' option.Christopher Faylor2002-06-092-17/+8
| | | | | | (usage): Ditto. (main): Ditto. (longopts): Remove --import-old-mounts option.
* * cygpath.cc: Add option to output windows paths in different formats: "dos"Christopher Faylor2002-06-073-6/+69
| | | | | | and "mixed". (main): Process options. (doit): Check new options flags.
* * regtool.cc (Fail): Be more verbose.Corinna Vinschen2002-06-073-20/+70
| | | | | | (find_key): Add support for remote registry access. (usage): Document it. * utils.sgml: Document it.
* * strace.cc (main): Make toggle a local variable.Christopher Faylor2002-06-072-1/+5
|
* * strace.cc (toggle): New global variable.Christopher Faylor2002-06-073-26/+73
| | | | | | | | | | | | | (error): Use exit instead of ExitProcess so that stdio buffers get flushed. (create_child): Remove command line error checking. (dostrace): Ditto. (dotoggle): New function. (usage): Add entry for new option -T|--toggle. Alphabetize. (longopts): Add new option -T|--toggle. (opts): Ditto. (main): Handle new -T|--toggle option. Move all command line checking here from other functions. * utils.sgml: Update section for strace.
* * strace.cc (version): New global variable.Christopher Faylor2002-06-062-20/+49
| | | | | (usage): Accomodate stdout output. (print_version): New function.
* * ssp.c (version): New global variable.Christopher Faylor2002-06-062-108/+265
| | | | | | | | | | (longopts): Ditto. (opts): Ditto. (run_program): Correct cmd_line typos to cmdline. (usage): New function. Standardize usage output. Add ssp.txt to --help output. (print_version): New function. (main): Accommodate getopt.
* * umount.cc (version): New global variable.Christopher Faylor2002-06-042-13/+61
| | | | | | | | (longopts): Accommodate new --version option. (opts): Ditto. (usage): Standardize usage output. (print_version): New function. (main): Accommodate --help, --version options.
* * regtool.cc (prog_name): New global variable.Christopher Faylor2002-06-032-65/+144
| | | | | | | | | (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).
* * strace.cc (forkdebug): Make true by default.Christopher Faylor2002-06-023-9/+18
| | | | | | (attach_process): Use window pid if cygwin pid isn't available (yet). (create_child): Use either DEBUG_ONLY_THIS_PROCESS or DEBUG_PROCESS, exclusively. (Suggested by Conrad.Scott@dsl.pipex.com)
* * mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.Christopher Faylor2002-05-302-1/+6
|
* * mount.cc (main): Make -b the default.Christopher Faylor2002-05-302-1/+5
|
* * ps.cc (main): Use uid or uid32 member of struct external_pinfoCorinna Vinschen2002-05-292-7/+25
| | | | dependent of the value of the struct's version member.
* * ps.cc (main): Change print format for uid to unsigned. Use uid32Corinna Vinschen2002-05-292-5/+10
| | | | member of struct external_pinfo instead of uid.
* * passwd.c (prog_name): New global variable.Corinna Vinschen2002-05-292-39/+114
| | | | | | | | (longopts): Ditto. (opts): Ditto. (usage): Standardize output. Accomodate new options. (print_version): New function. (main): Accomodate longopts and new --help, --version options.
* * ps.cc (usage): Fix typo.Corinna Vinschen2002-05-282-1/+6
|
* * ps.cc (prog_name): New global variable.Christopher Faylor2002-05-282-11/+86
| | | | | | | | (longopts): Ditto. (opts): Ditto. (usage): New function. (print_version): New function. (main): Accomodate longopts and new --help, --version options.
* * strace.cc (attach_process): Don't tell process to start stracing here.Christopher Faylor2002-05-272-3/+16
| | | | | | (proc_child): Do it here, instead, after first debug event. This should work around inexplicable races with DebugActiveProcess. (dostrace): Pass any pid argument to proc_child.
* Fix typos.Christopher Faylor2002-05-241-16/+16
|
* * setfacl.c (usage): Standardize usage output. Change return type toCorinna Vinschen2002-05-242-122/+203
| | | | | | | static void. (print_version): New function. (longopts): Added longopts for all options. (main): Accommodate changes in usage function and new version option.
* * getfacl.c (usage): Standardize usage output. Change return type toCorinna Vinschen2002-05-232-58/+101
| | | | | | | static void. (print_version): New function. (longopts): Added longopts for all options. (main): Accommodate new help and version options.
* fix typo.Christopher Faylor2002-05-231-1/+1
|
* * mount.cc (version) New global variable.Christopher Faylor2002-05-232-23/+73
| | | | | | | | (usage) Standardize usage output. Accomodate new version option. (print_version) New function. (longopts) Accomodate new version option. (opts) Ditto. (main) Ditto.
* * cygpath.cc (usage): Change usage output slightly.Corinna Vinschen2002-05-223-105/+303
| | | | | | | | | | | | | | | | * cygpath.cc (main): Add option l to support conversion to Windows long file names. Refactured code for capital options. Support of options from file for capital options. (dowin): New function. Refactured from main. (doit): Call long path conversion. (get_long_name): New function. (get_long_paths): New function. (get_long_path_name_w32impl): New function. Reimplementation of Windows API function GetLongPathName (only 98/Me/2000/XP or higher). (get_short_name): Call GetShortPathName only once. (get_short_paths): Fix calculating buffer size. * utils.sgml: Update cygpath section for l option.
* * strace.cc (add_child): Use calloc since new requires working libstdc++.a.Christopher Faylor2002-05-182-2/+8
| | | | (fhandler_disk_file::fstat): Ditto for delete/free.
* * cygpath.cc (get_short_paths): Fix more error checking.Corinna Vinschen2002-05-153-58/+73
| | | | | | | | | (get_short_name): Ditto. * cygpath.cc (main): Add option H to show the Windows' profiles directory. Support short names for options DPSW. Clean up copied code lines. * utils.sgml: Update cygpath section for H option and s support.
* * cygpath.cc (get_short_name): Fix error checking.Corinna Vinschen2002-05-142-1/+5
|
* * kill.cc (prog_name) New global variable.Christopher Faylor2002-05-132-7/+60
| | | | | | | | (usage) Standardize usage output. Add descriptions. (print_version) New function. (longopts) Accomodate new version option. (opts) Ditto. (main) Ditto.