summaryrefslogtreecommitdiffstats
path: root/winsup/utils/dump_setup.cc
Commit message (Collapse)AuthorAgeFilesLines
* Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout optioncygwin-2_5_2-releaseCorinna Vinschen2016-06-231-2/+0
| | | | | | | | | | | | | | Bump GPLv2+ to GPLv3+ for some files, clarify BSD 2-clause. Everything else stays under GPLv3+. New Linking Exception exempts resulting executables from LGPLv3 section 4. Add CONTRIBUTORS file to keep track of licensing. Remove 'Copyright Red Hat Inc' comments. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* * dump_setup.cc (check_package_files): Accommodate postinstallKen Brown2015-02-171-1/+1
| | | | | files in any directory whose name contains "/postinstall/", not just /etc/postinstall.
* * dump_setup.cc (find_tar_ext): Generalize search for .tar extension, avoidingChristopher Faylor2013-09-161-9/+4
| | | | looking for specific compression types.
* Update copyrightsChristopher Faylor2013-01-211-1/+1
|
* * bloda.cc: Drop Mingw.org considerations.Corinna Vinschen2012-11-261-8/+3
| | | | | * dump_setup.cc: Ditto. * strace.cc: Ditto.
* ChangeLog:Christopher Faylor2012-11-231-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.common: Revamp for new configury. Add default compilation targets, include .E processing. Add magic for allowing "CFLAGS" to control optimization options in "CXXFLAGS". * configure.cygwin: New include for Cygwin configure.in's. * acinclude.m4: Delete old definitions. Implement AC_WINDOWS_HEADERS, AC_WINDOWS_LIBS, AC_CYGWIN_INCLUDES, target_builddir, winsup_srcdir. * aclocal.m4: Regenerate. * autogen.sh: New file. * ccwrap: New script. * c++wrap: New script. * config.guess: New script. * config.sub: New script. * configure: Regenerate. * configure.in: Eliminate LIB_AC_PROG_* calls in favor of standard. Delete ancient target test. * install-sh: New script. cygserver/ChangeLog: 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Revamp for new configury. * configure.in: Revamp for new configury. * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. cygwin/ChangeLog: 2012-11-22 Christopher Faylor <me.cygwin2012@cgf.cx> * select.cc (select): Don't return -1 when we've timed out after looping. 2012-11-22 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Revamp for new configury. (datarootdir): Add variable setting. (winver_stamp): Accommodate changes to mkvers.sh setting. (libc.a): Fix race when libm.a might not have been built yet. * configure.in: Revamp for new configury. * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. * mkvers.sh: Find include directives via CFLAGS and friends rather than assuming that w32api lives nearby. utils/ChangeLog: 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. * configure.in: Revamp for new configury. * Makefile.in: Revamp for new configury. Rename ALL_* to just *. Always use "VERBOSE" setting. (MINGW_CXX): Don't include CFLAGS in definition. (all): Define target first, before everything else so that it is the default. (ps.exe): Don't add useless -lcygwin. (ldh.exe): For consistency, add to existing MINGW_LDFLAGS rather than redefining them. (cygcheck.exe): Always include -lz for MINGW_LDFLAGS. Don't try to figure out where to find it. (dumper.exe): Simplify check. Assume libraries are installed rather than trying to retrieve from source tree. (install): Just use /bin/mkdir to create directories. (Makefile): Regenerate when standard dependencies change. * dump_setup.cc: Always include zlib.h. Remove accommodations for it possibly not existing. * parse_pe.cc: Add define which allows building with installed binutils package. * dumper.cc: Ditto.
* * Makefile.in (cygcheck.exe): Link against psapi.dll.Corinna Vinschen2012-07-111-5/+13
| | | | | | | | | | | | | | | | | | | | | | * bloda.cc: Change include section to work with Mingw64 headers. Include psapi.h. Use SystemProcessInformation instead of SystemProcessesAndThreadsInformation throughout and add define for w32api headers. Ditto for PSYSTEM_PROCESS_INFORMATION vs. PSYSTEM_PROCESSES. (system_module_list): New type to replace SYSTEM_MODULE_INFORMATION. Change usage throughout accordingly. (get_module_list): Fetch module list using PSAPI functions EnumDeviceDrivers and GetDeviceDriverBaseNameA. * cygcheck.cc (max): Define as __max if not defined already. (alloca): Only define if not defined already. (handle_unique_object_name): Use explicit sharing flags rather than FILE_SHARE_VALID_FLAGS which officially is only available in DDK headers. (PRODUCT_ULTIMATE_E): Only define if not defined already. * dump_setup.cc: Change include section to work with Mingw64 headers. (NtQueryAttributesFile): Drop NTOSAPI aka DECLSPEC_IMPORT. * strace.cc: Change include section to work with Mingw64 headers. (alloca): Only define if not defined already.
* Clean up whitespace.Christopher Faylor2011-12-171-23/+23
|
* * dump_setup.cc (tfx_chars): New WCHAR array, copied from Cygwin.Corinna Vinschen2010-07-211-3/+105
| | | | | | | | (transform_chars): New function, copied from Cygwin. (simple_nt_stat): New function to check file existance using native NT function. Explain why. (directory_exists): Call simple_nt_stat. (file_exists): Ditto.
* * dump_setup.cc (dump_file): Read requested content from setup.rcCorinna Vinschen2010-07-051-13/+26
| | | | file created by newer setup.exe.
* * cygcheck.cc (pathlike::check_existence): Remove class name from declaration.Christopher Faylor2008-09-121-18/+19
| | | | | | | | | | | | | | | | | | | | | (display_internet_error): Use proper format specifier for DWORD. (environ): Remove unneeded declaration. (main): Use brace around nested if to avoid an overly-helpful compiler warning. * dump_setup.cc (parse_filename): Reorganize nested if to avoid an overly-helpful compiler warning. * path.cc (GUID_shortcut): Use braces around part of initializer which needs them. (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a compiler warning. (struct opt): Make static. * ps.cc (main): Reorganize nested if to avoid an overly-helpful compiler warning. * regtool.cc: Make some anonymous structs static to avoid a compiler warning. * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential uninitialized use. * strace.cc (add_child): Use proper format specifier for DWORD. (remove_child): Ditto. (proc_child): Ditto.
* * cygcheck.cc (nuke): Use malloc rather than alloca for environment variables.Christopher Faylor2008-08-271-4/+5
| | | | | | (load_cygwin): Ditto. * dump_setup.cc (parse_filename): Cosmetic changes. (get_packages): Ditto.
* * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".Corinna Vinschen2005-12-191-1/+1
|
* fix whitespace, update some copyrightsChristopher Faylor2004-10-251-25/+25
|
* * dump_setup.cc (dump_setup): Remove unneeded strlen when check_filesCorinna Vinschen2004-09-231-2/+1
| | | | is not set.
* * dump_setup.cc (dump_setup): Avoid trailing spaces on package-list.Corinna Vinschen2004-09-221-4/+11
|
* * Makefile.in: Detect existence of mingw zlib headers and libraries. BuildChristopher Faylor2003-09-081-25/+29
| | | | | | | | | | | cygcheck wihtout package checking if they are unavailable. * dump_setup.cc: Generate dummy zlib macros when zlib is not available. (open_package_list): Use zlib functions to uncompress package lists. Return gzFile rather than FILE *. (check_package_files): Change fp to gzFile to accommodate zlib functions. Use gzgets to read from package file. Use gzclose to close the handle. (package_list): Ditto. (package_find): Ditto.
* * dump_setup.cc (check_package_files): Don't fail on empty package.Christopher Faylor2003-09-061-3/+2
|
* * dump_setup.cc (check_package_files): Strip leading / and ./ fromCorinna Vinschen2003-08-171-0/+6
| | | | package file names.
* * dump_setup.cc (package_find): Don't stop searching on missingCorinna Vinschen2003-08-161-15/+15
| | | | | | | | | file list. (package_list): Ditto. * dump_setup.cc: (package_list): Make output terse unless verbose requested. Fix formatting. (package_find): Ditto.
* * cygcheck.cc (main): Fix some formatting and help text printing.Corinna Vinschen2003-08-151-35/+157
| | | | | | | | | | | | | | | | | | | | | | * cygcheck.cc (find_package,list_package): New global variables. (usage): Add "--find-package" and "--list-package" options, reformat output. (longopts, opts): Add "--find-package" and "--list-package" options. (main): Process the "--find-package" and "--list-package" flags. Add new semantic checks. Add calls to find_package() and list_package(). * dump_setup.cc: Fix header comment. (match_argv): Change return type to int to distinguish between real matches and default ones. (open_package_list): New static function. (check_package_files): Factor out opening the package list file into open_package_list(). (get_packages): New static function. (dump_setup): Factor out getting a list of packages into get_packages(). (package_list, package_find): New global functions.
* * dump_setup.cc (check_package_files): Fix extra '/' in filename.Corinna Vinschen2003-08-131-4/+4
| | | | Resize command buffer. Fix buffer overflow bug.
* * dump_setup.cc (dump_setup): Check for the existence of the package list file.Christopher Faylor2003-08-101-15/+31
| | | | Rework slightly to use static buffer for popen commands.
* * dump_setup.cc (version_len): New static variable.Christopher Faylor2003-08-091-7/+113
| | | | | | | | | | (could_not_access,directory_exists): New static function. (file_exists): Ditto. (check_package_files): Ditto. (dump_setup): Check the contents of each package if check_files is true and output the result in the "Status" column. Flush output after each package. * dump_setup.cc (dump_setup): Remove redundant null check. Add informative message if package info not found.
* * dump_setup.cc (compar): Use case insensitive comparisons.Christopher Faylor2003-02-071-11/+5
| | | | | (dump_setup): Calculate package_len based on already used "len". Don't bother with version_len.
* * dump_setup.cc (dump_setup): Compute the longest package nameCorinna Vinschen2003-02-071-1/+7
| | | | and align columns properly.
* * dump_setup.cc (parse_filename): Don't consider '_' part of the version.Christopher Faylor2002-01-291-1/+1
|
* * cygcheck.cc (scan_registry): Open registry with read-only access.Christopher Faylor2001-11-121-1/+1
| | | | | | (main): Reflect argument change for dump_setup. * dump_setup.cc (dump_setup): Add preliminary extra argument for future use. * path.cc (read_mounts): Open registry with read-only access.
* * cygcheck.cc (main): Display package info when '-s' is specified.Christopher Faylor2001-11-111-5/+3
| | | | | * dump_setup.cc (dump_setup): Change header. Remove typo. Always sort packages output.
* * dump_setup.cc: New file.Christopher Faylor2001-11-111-0/+251
* Makefile.in: Add info for dump_setup.o. * cygcheck.cc (main): Recognize '-c' option for checking setup installed base. * path.cc (cygpath): Read mount table if not loaded.