summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* update to newer autoconfChristopher Faylor2006-05-244-944/+4321
|
* * strace.cc (proc_child): Propagate return code from child process.Christopher Faylor2006-05-242-5/+16
| | | | | (dostrace): Ditto. (main): Ditto.
* * regtool.cc (options): Add 'binary'.Corinna Vinschen2006-03-033-11/+212
| | | | | | | | | | | | | | (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.
* * cygpath.cc (get_long_name): Load GetLongPathNameA instead of incorrectCorinna Vinschen2006-02-172-3/+10
| | | | | | GetLongPathName. (doit): Create mixed filename after converting to short or long pathname respectively.
* * ps.cc (main): Set aflag if -p option is given.Corinna Vinschen2006-02-172-0/+5
|
* * ps.cc (longopts): Add --process option.Corinna Vinschen2006-02-163-4/+24
| | | | | | | (opts): Add -p option. (usage): Mention -p/--process option. (main): Handle -p option. * utils.sgml: Describe -p/--process option.
* * regtool.cc (usage): Clarify help for "-K".Corinna Vinschen2006-02-152-1/+5
|
* * cygcheck.cc (find_on_path): Update copyright text.Corinna Vinschen2006-02-082-1/+5
|
* * cygcheck.cc (find_on_path): Create copy of rv on successful accessCorinna Vinschen2006-02-082-1/+6
| | | | check, since rv can be reused in subsequent calls.
* * cygcheck.cc (common_paths): Add "patch".Christopher Faylor2006-01-192-0/+5
|
* * cygcheck.cc (init_paths): Record first_nonsys_path.Christopher Faylor2006-01-192-8/+13
| | | | (find_on_path): Start on first nonsys path when !search_sysdirs.
* white spaceChristopher Faylor2006-01-191-1/+1
|
* Wasn't going to check this in but since it did get checked in, here's a ↵Christopher Faylor2006-01-181-0/+9
| | | | ChangeLog.
* bad_keywordsChristopher Faylor2006-01-185-21/+20
|
* * cygpath.cc (dowin): Remove stray debugging printf statement.Dave Korn2006-01-182-1/+4
|
* copyrightChristopher Faylor2006-01-172-2/+4
|
* * Makefile.in: Replace etcdir with sysconfdir.Corinna Vinschen2006-01-172-2/+6
|
* * Makefile.in (cygcheck.exe): Do not link against libwininet.a.Corinna Vinschen2006-01-153-12/+61
| | | | | | | * cygcheck.cc (pInternetCloseHandle): Define global function pointer. (display_internet_error): Use it. (package_grep): Attempt to load wininet.dll at runtime. Call WinInet API through function pointers throughout.
* * cygcheck.cc (dump_sysinfo): Convert k32 to HMODULE.Corinna Vinschen2006-01-132-1/+5
|
* * cygcheck.cc (dump_sysinfo): Convert osname to const and remove castsCorinna Vinschen2006-01-132-30/+65
| | | | | | in subsequent assignments. Recognize Longhorn/Vista and report as not yet supported. Recognize when running under WOW64 and report native CPU type. Slightly rearrange \n printing.
* * cygcheck.cc: Replace ` with ' throughout.Christopher Faylor2006-01-122-9/+13
|
* * cygcheck.cc (dump_sysinfo): Report the failing drive to prevent having toChristopher Faylor2006-01-052-4/+16
| | | | guess.
* *** cygwin DLL Changes:Christopher Faylor2005-12-293-42/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * child_info.h (CURR_CHILD_INFO_MAGIC): Reset. (child_info::dwProcessId): Delete. (child_info::straced): New variable. (child_info::handle_fork): New member function. * dcrt0.cc (in_forkee): New global variable. (__cygwin_user_data::forkee): Mark as obsolete. (do_global_ctors): Use in_forkee rather than user_data->forkee. (get_cygwin_startup_info): Ditto. Deal with new straced field to allow strace to deal with children of attached processes. (initial_env): Accommodate changes to strace::hello. (child_info_fork::handle_fork): Rename from plain old 'handle_fork'. Move alloc_stack() call elsewhere. (dll_crt0_0): Fill out more of user_data. Reference handle_fork via fork_info. Add some debugging output. (_dll_crt0): Don't wait for sync thread if sync_startup is invalid. Zero sync_startup here. Call alloc_stack() here, if appropriate. (dll_crt0_1): Use in_forkee rather than user_data->forkee. (dll_crt0): Ditto. * malloc_wrapper.cc (malloc_init): Ditto. * dll_init.cc (in_forkee): Remove local static version of this variable. (dll_list::load_after_fork): Don't set in_forkee here. * external.cc (cygwin_internal): Use strace method rather than accessing field directly. * fhandler.cc (fhandler_base::read): Ditto. * fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Ditto. * fork.cc (frok::parent): Invoke strace write_childpid to communicate with potential strace. (child_copy): Add more detail to debugging output. * init.cc (calibration_id): New static variable. (prime_threads): Set sync_startup to invalid handle if we already know about thread_func_ix. Use static calibration_id to hold calibration thread id. * munge_threadfunc (munge_threadfunc): Don't try to debug if we don't find threadfunc_ix. (dll_entry): Avoid calling munge_threadfunc and _cygtls::remove on non-cygwin threads invoked during process startup. * pinfo.cc (set_myself): Always call strace.hello here regardless of DEBUGGING. * sigproc.cc (child_info::child_info): Remove spurious handling of dwProcessId. Set straced as appropriate. * spawn.cc (spawn_guts): Rename ciresrv to ch. Invoke strace write_childpid to communicate with potential strace. * strace.cc: Include child_info.h. (strace::hello): Remove inited test. Use active() method to test if strace has been activated. Handle case where we are started before (mypid): New function. (strace::vsprntf): Try to deal more intelligently with case where progname may not be filled out. Put pid in parentheses if it is a windows pid rather than a cygwin pid. myself has been filled out. (strace::write_childpid): New function for notifying strace about the creation of children. (strace::vprntf): Use strace method rather than accessing field directly. (strace_printf): Ditto. (strace::wm): Ditto. * winsup.h (in_forkee): Declare. * include/sys/strace.h (strace::write_childpid): Declare new function. (strace::attached): Define new function. (strace::active): Ditto. (strace::active_val): Ditto. (_STRACE_ON): Delete. (_STRACE_OFF): Ditto. (define_strace0): Use strace method rather than accessing field directly. (strace_printf_wrap): Ditto. (strace_printf_wrap1): Ditto. *** cygwin utils changes: * strace.cc (nprocesses): Make static global. (quiet): New variable. (strace_active): Ditto. (add_child): Increment nprocesses here. Don't add a child if it is already added (windows bug?). Report on child if not quiet. (get_child): Just return NULL if child not found. (remove_child): Report on child if not quiet. (attach_process): Don't complain if given a windows process. Use windows pid in error. (handle_output_debug_string): Issue error if trying to manipulate a process that we don't know about. Handle _STRACE_CHILD_PID - attach to reported child when we get this. (proc_child): Move nprocesses to file scope. Report on exceptions. (longopts): Implement "--quiet". (opts): Implement "-q". (main): Manipulate quiet flag. * utils.sgml (strace): Add words describing '-q'.
* * cygcheck.cc (common_apps): Add crontab, vi, vim.Christopher Faylor2005-12-292-0/+7
|
* * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".Corinna Vinschen2005-12-192-1/+5
|
* * cygcheck.cc (common_apps): Add a few more binaries to look for.Christopher Faylor2005-12-152-0/+8
|
* * strace.cc (show_usecs): Renamed from 'usecs'.Christopher Faylor2005-12-053-7/+18
| | | | | | | (main): Use show_usecs rather than usecs. Toggle delta if '-u' is specified. (handle_output_debug_string): Avoid printing microsecond timestamp if show_usecs == 0. * utils.sgml (strace): Add words to describe '-u'.
* * Makefile.in: Link cygcheck with libwininet.a.Christopher Faylor2005-11-225-38/+272
| | | | | | | | | | | | | | * cygcheck.cc: Add includes. (grep_packages): New global variable. (display_internet_error): New function. (safe_chars): New global variable. (base_url): Ditto. (package_grep): New function. (usage): Reword --help output for clarity. Document new argument. (longopts): Add 'package-query' option. (opts): Add 'p' option, reorder to be consistent with 'longopts'. (main): Accommodate new option. * utils.sgml (cygcheck): Update --help output. Document new -p option.
* revert erroneous checkinChristopher Faylor2005-10-111-5/+2
|
* * Makefile.common (CFLAGS_COMMON): Add -Wstrict-aliasing.Christopher Faylor2005-10-111-2/+5
|
* add other optionsChristopher Faylor2005-10-031-0/+7
|
* Fix typo.Corinna Vinschen2005-09-211-8/+8
|
* Align error message handling to mkpasswd's error messages throughout.Corinna Vinschen2005-09-213-63/+145
| | | | | | | | | | | | | | | | * mkgroup.c (print_win_error): Create macro calling ... (_print_win_error): ... this function created from former print_win_error. Move up in source. (PDOMAIN_CONTROLLER_INFOW): Define return type of DcGetDcNameW. (dsgetdcname): New function pointer for DcGetDcNameW. (load_netapi): Get DcGetDcNameW address. (main): If DcGetDcNameW is available, use it. * mkpasswd.c (PDOMAIN_CONTROLLER_INFOW): Define return type of DcGetDcNameW. (dsgetdcname): New function pointer for DcGetDcNameW. (load_netapi): Get DcGetDcNameW address. (main): If DcGetDcNameW is available, use it. Rename local variable domain_name_specified to domain_specified as in mkgroup.c.
* * regtool.cc: Extend copyright-years.Corinna Vinschen2005-09-082-7/+19
| | | | | | | | | | (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.
* * passwd.c (longopts): Add --logonserver option.Corinna Vinschen2005-08-182-21/+65
| | | | | | | | | | | | (opts): Add -d option. (GetPW): Add server parameter which is given to Net functions. (ChangePW): Ditto. (PrintPW): Ditto. (SetModals): Ditto. (usage): Add description for -d/--logonserver option. (main): Add option handling for -d/--logonserver. Use LOGONSERVER environment variable content for server to contact, unless -d/--logonserver option is given. If both is missing, use NULL.
* * cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.Brian Dessent2005-08-172-31/+48
| | | | Avoid extraneous cygrunsrv invocation if 'verbose' is true.
* * mount.cc (longopts): Fix typo which disallows --options option.Corinna Vinschen2005-08-032-2/+6
|
* * cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.Christopher Faylor2005-07-192-1/+13
|
* * cygcheck.cc (track_down, cygcheck): Return true on success.Christopher Faylor2005-07-052-16/+25
| | | | (main): Reflect cygcheck failures in exit status.
* * parse_pe.c (exclusion::sort_and_check): Remove crude cast.Corinna Vinschen2005-06-142-1/+5
|
* * cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PCCorinna Vinschen2005-05-302-17/+31
| | | | | Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server and Datacenter Server. Report when running in terminal server session.
* * cygcheck.cc (load_cygwin): Make half-hearted attempt to work with older DLLs.Christopher Faylor2005-05-273-34/+39
| | | | * strace.cc (load_cygwin): Ditto.
* * cygcheck.cc (dump_sysinfo_services): Add new function that usesCorinna Vinschen2005-05-232-1/+101
| | | | | | new cygrunsrv options to dump service info. (dump_sysinfo): Call dump_sysinfo_services if running under NT. Change 'Cygnus' to 'Cygwin' in output.
* * cygcheck.cc (load_cygwin): Remove debugging statement.Christopher Faylor2005-05-202-1/+4
|
* * cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not set.Christopher Faylor2005-05-202-20/+34
| | | | | (nuke): Fix off by one error in allocation of environment variable. (load_cygwin): Always set PATH even if cygwin environment is empty.
* * cygcheck.cc (cygwin_internal): Define as a "C" function.Christopher Faylor2005-05-174-4/+15
| | | | | * strace.cc (cygwin_internal): Ditto. * cygpath.cc (print_version): Update copyright.
* * cygcheck.cc (load_cygwin): Avoid calling putenv with a NULL path.Christopher Faylor2005-05-162-2/+9
|
* * cygcheck.cc (load_cygwin): Don't touch $PATH for now.Corinna Vinschen2005-05-153-5/+20
| | | | | (print_version): Fix copyright. * strace.cc (print_version): Ditto.
* * mount.cc (mount_commands): Display "-X" option when appropriate.Christopher Faylor2005-05-132-4/+6
|
* * cygcheck.cc (nuke): New function.Christopher Faylor2005-05-092-0/+47
| | | | | | (load_cygwin): New function. (main): Use load_cygwin to load argv/envp from cygwin environment, if appropriate.