summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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.
* * kill.cc (listsig): Display numeric id when given symbolic input.Christopher Faylor2002-05-132-1/+8
|
* document kill -h.Christopher Faylor2002-05-131-0/+3
|
* * kill.cc (usage): Show new options. Allow specification of output stream.Christopher Faylor2002-05-132-3/+13
| | | | (main): Implement 'h' option.
* Update ChangeLog with missing entry.Christopher Faylor2002-05-132-1/+8
|
* * Makefile.in (kill.exe): Add as a specific target.Christopher Faylor2002-05-134-28/+114
| | | | | | | | | | * kill.cc (longopts): New. (opts): Ditto. (get_sig): Accept const char * parameter. Return -1 on unknown signal. (test_for_unknown_sig): New function. (listsig): New function. (main): Use getopt_long for option parsing. Implement -l, and -s options. Use test_for_unknown_sig() to test for signal validity.
* * mount.cc (do_mount): Default to non-exec option for remote drives. ReportChristopher Faylor2002-05-124-16/+70
| | | | | | | | | | | warnings before attempting a mount. (longopts): Add no-executable option. (mount_commands): Ditto. (opts): Ditto. (usage): Ditto. Indicate that system mount is now the default. (main): Accommodate no-executable option. Make system mount the default. * umount.cc (usage): Indicate that system umount is now the default. (main): Make system umount the default.
* * dumper.cc (usage) Standardize usage output. Generalize to allow use forChristopher Faylor2002-05-082-11/+59
| | | | | | | help. (longopts) New struct. Added longopts for all options. (print_version) New function. (main) Change getopt to getopt_long. Accommodate new help and version options.
* * mkgroup.c (main): Change call to exit() to a return statement.Corinna Vinschen2002-04-293-26/+70
| | | | | | | | | | | | * mkpasswd.c (main): Ditto. * mkpasswd.c (usage): Simplify usage output. Generalize to allow use for help. Correct '?' typo to 'h'. (longopts): Add version option. (opts): Add 'v' version option. (print_version): New function. (main): Accommodate new version option. Accommodate usage parameter changes.
* * mkgroup.c (usage): Use one just fprintf + string concatenation for outputChristopher Faylor2002-03-193-18/+25
| | | | | message. (print_version): Add void to function type and update copyright.
* * mkgroup.c (usage): Simplify usage output. Generalize to allow useCorinna Vinschen2002-03-192-20/+58
| | | | | | | | | for help. Correct '?' typo to 'h'. (longopts): Add version option. (opts): Add 'v' version option. (print_version): New function. (main): Accommodate new version option. Accommodate usage parameter changes. Use usage to output help message.
* 2002-03-15 Corinna Vinschen <corinna@vinschen.de>Corinna Vinschen2002-03-152-16/+54
| | | | | | | | | | * mkgroup.c (main): When generating group 513, check for computer's primary domain instead of current user's domain. 2002-03-14 Corinna Vinschen <corinna@vinschen.de> * mkgroup.c (main): When generating group 513, check for domain SID if computer name isn't mapped to a SID.
* * kill.cc (usage): Move to top of file.Christopher Faylor2002-03-112-40/+42
| | | | | (getsig): Ditto. (forcekill): Ditto.
* * cygcheck.cc: Reformat.Christopher Faylor2002-03-072-37/+43
|
* * cygcheck.cc (longopts): Use correct short option for --version.Christopher Faylor2002-03-072-1/+5
|
* * cygpath.cc: Reformat.Christopher Faylor2002-03-072-144/+186
| | | | | | * cygpath.cc (print_version): New function. (main): Accommodate new version function. Initialize 'o' to prevent warning. * cygcheck.cc (main): Eliminate non-GNU formatting glitch.
* Update optionsChristopher Faylor2002-02-281-6/+8
|
* Change copyright format.Christopher Faylor2002-02-271-1/+1
|
* * cygcheck.cc (main): Eliminate non-GNU formatting glitch.Christopher Faylor2002-02-271-2/+1
|
* * ssp.c (help_desk): Fix compiler warning. Christopher Faylor <cgf@redhat.com>Christopher Faylor2002-02-274-84/+142
| | | | | | | | | | | | | | | Change appropriate globals to statics throughout. * cygcheck.cc (usage): Simplify usage output. Generalize to allow use for help. (longopts): Add version option. (opts): Add 'V" version option. (print_version): New function. (main): Accommodate new version option. Accommodate usage parameter changes. Use usage to output help message. * Makefile.in (CXXFLAGS): Add override so that HAVE_DECL_GETOPT is defined. (libbfd): Use -B rather than -L so that bfd from build directory is correctly found. (libintl): Ditto.
* update copyrightChristopher Faylor2002-02-251-2/+2
|
* * mount.cc (usage): Fix typo in output.Christopher Faylor2002-02-152-2/+6
|
* * strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.Christopher Faylor2002-02-142-1/+5
|
* * mkpasswd.c (main): Set default home path for 9x/Me if --path-to-homeCorinna Vinschen2002-01-312-0/+8
| | | | isn't given.
* * passwd.cc (ChangePW): Add parameter to differ between called forCorinna Vinschen2002-01-302-4/+14
| | | | | | | checking old password and called for changing password. If called for checking old password, return non-zero only if password is surely incorrect. (main): Call ChangePW() with additional parameter.
* * dump_setup.cc (parse_filename): Don't consider '_' part of the version.Christopher Faylor2002-01-292-1/+6
|
* * cygcheck.cc: Fix typo. Remove uid_t kludge. Rely on kludge in sys/cygwin.hChristopher Faylor2002-01-294-8/+18
| | | | | | | instead. * getfacl.c: Add include to remove warning. * mkgroup.c (main): Assign variables outside of parameter passing. This seems to eliminate some compiler warnings.
* * cygcheck.cc: Use specific cygwin includes, as required.Christopher Faylor2002-01-292-5/+9
|