summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
|
* * Makefile.in (MINGW_INCLUDES): Change cygwin include.Christopher Faylor2002-01-293-35/+108
| | | | | | | | | | | | | * strace.cc: Use specific cygwin includes, as required. (load_cygwin): New function. Loads cygwin DLL, if necessary. (attach_process): Attaches strace to a running process. (dostrace): Accept pid argument. Attach to pid if supplied. (usage): Describe -p option. Correct system description. (longopts): Alphabetize. (opts): Ditto. (main): Ditto. Handle -p option. * Makefile.in (CXXFLAGS): Ensure that important settings are preserved even when overriden by command line.
* * Makefile.in (CXXFLAGS): Ensure that important settings are preserved evenChristopher Faylor2002-01-221-1/+2
| | | | when overriden by command line.
* * Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.Christopher Faylor2002-01-224-8/+33
| | | | | | | | * cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning. (dump_sysinfo): Make variables unsigned to quiet g++ warnings. * strace.cc (version_string): Rename from SCCSid. (add_child): Remove unused variable. (version): Use version_string. Avoid use of fprintf.
* * Makefile.in: Use CXX instead of CC to compile C++ sources.Christopher Faylor2002-01-212-6/+10
|
* * cygcheck.cc (already_did): Avoid default constructors, which may requireChristopher Faylor2002-01-182-1/+6
| | | | exception support.
* * cygpath.cc (main): Add options to show Desktop and StartCorinna Vinschen2002-01-173-40/+149
| | | | | | Menu's Programs directory for current user or all users. Move bulk of DPWS options outside the getopt case statement. * utils.sgml: Update cygpath section for ADPWS options.
* * cygpath.cc (doit): Empty file ignored using option -i.Corinna Vinschen2002-01-152-2/+11
|
* * mkpasswd.c (print_win_error): Add a new function.Corinna Vinschen2002-01-152-24/+33
| | | | | | (enum_users): Use print_win_error. (enum_local_groups): Ditto. (main): Ditto.
* * cygpath.cc (doit): Detect and warn about an empty path. Detect and warnChristopher Faylor2001-12-262-7/+32
| | | | | | about errors converting a path. (main): Set prog_name correctly -- don't leave an extra slash or backslash at the beginning of it.