summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* * minidumper.cc (minidump): Fix -t option argument handling.Jon TURNEY2014-02-232-1/+5
|
* 2014-02-07 Jon TURNEY <jon.turney@dronecode.org.uk>Jon TURNEY2014-02-094-1/+280
| | | | | | * minidumper.cc: New file. * Makefile.in (CYGWIN_BINS): Add minidumper. * utils.xml (minidumper): New section.
* * cygcheck.cc (RtlGetVersion): Declare.Corinna Vinschen2013-11-192-9/+18
| | | | | | | | (dump_sysinfo): Call RtlGetVersion rather than GetVersionEx to get correct OS info even on Windows 8.1. Don't check return value since RtlGetVersion never fails per MSDN. Move fetching kernel32 module handle where it's really needed. Drop temporary comment added by previous checkin.
* * cygcheck.cc (dump_sysinfo): Revert Windows 8.1 hack. It's notCorinna Vinschen2013-11-192-11/+9
| | | | working. Add a (hopefully temporary) comment.
* Add missing entryCorinna Vinschen2013-11-191-0/+3
|
* * cygcheck.cc (dump_sysinfo): Drop code trying to fetch OSVERSIONINFOCorinna Vinschen2013-11-192-21/+22
| | | | | | if fetching OSVERSIONINFOEX failed. Drop code handling unsupported platform IDs. Add code to tweak dwMinorVersion on Windows 8.1 if no manifest is present.
* * Makefile.in (cygcheck.exe): Link against wininet.dll.Corinna Vinschen2013-11-194-102/+26
| | | | | | | | | | (dumper.exe): Link against psapi.dll. * cygcheck.cc (_WIN32_WINNT): Define as 0x0602. (pInternetCloseHandle): Drop pointer. (PRODUCT_UNLICENSED): Drop definition. (PRODUCT_PROFESSIONAL_WMC): Ditto. (package_grep): Delete code loading wininet functions dynamically, just call functions directly.
* * cygcheck.cc (dump_sysinfo): Distinguish Windows 8 and 8.1, as wellCorinna Vinschen2013-11-192-47/+33
| | | | | | | | | as Windows Server 2012 and 2012 R2. Add missing commas in products array to avoid crashes. Drop Windows NT4 and 2000 printouts. Just call IsWow64Process, GetNativeSystemInfo, and GetDiskFreeSpaceEx directly, rather than loading them dynamically, since they are exported by all supported OS versions. Fix questionable type usage in call to GetDiskFreeSpaceEx.
* winsup/ChangeLog:Christopher Faylor2013-11-074-33/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. * configure.cygwin: Default to '.' if can't find a winsup directory. winsup/cygserver/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. winsup/cygwin/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. winsup/utils/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate.
* * dump_setup.cc (find_tar_ext): Generalize search for .tar extension, avoidingChristopher Faylor2013-09-162-9/+9
| | | | looking for specific compression types.
* * cygcheck.cc (package_grep): Accommodate arch-specific package layout.Christopher Faylor2013-08-232-2/+10
|
* * Makefile.in (MINGW_LDFLAGS): Don't link against w32api libs. TheseCorinna Vinschen2013-07-312-1/+6
| | | | are only for Cygwin executables.
* * cygcheck.cc (dll_info): Detect and report on symlinks. Output wrongChristopher Faylor2013-07-073-17/+38
| | | | | | architecture message inline with stdout for clarity. * path.cc (is_symlink): Always reset file pointer to beginning on exit. (readlink): Assume that file pointer is set to the beginning.
* * cygpath.cc (do_pathconv): when -p option is given, generate wideCorinna Vinschen2013-06-263-5/+12
| | | | | | path without long path prefixing. * wide_path.h (wide_path::wide_path): Allow extra bool parameter to specify whether or not performing Windows long path prefixing.
* Reinstantiate accidentally removed patch from 2009-05-16:Corinna Vinschen2013-05-212-2/+10
| | | | | | | * Makefile.in (cygpath.exe): Link against cygwin.a before linking against ntdll.dll to avoid linking symbols defined in both DLLs from ntdll. (ps.exe): Ditto.
* - Added <?xml> and <!DOCTYPE> tags to the top of utils.xml and pretty-Warren Young2013-05-103-3454/+1171
| | | | | | | | printed it. - Removed obsolete utils.sgml - Added a ChangeLog entry for this replacement, which partially took place days ago. This checkin formalizes the switch from SGML to DocBook XML for this file.
* Modernized user guide, API reference, and FAQ generation. OverallWarren Young2013-05-011-0/+2190
| | | | | | effect is to move away from DocBook SGML and DJ Delorie's doctool and toward pure DocBook XSL. (There remains just one use of doctool, and we have plans for replacing it, too.) See ChangeLog for details.
* * Merge in cygwin-64bit-branch.Corinna Vinschen2013-04-2322-254/+419
|
* * Makefile.in (CYGWIN_LDFLAGS): Replace -static-lib* with -static.Yaakov Selkowitz2013-02-212-3/+9
| | | | | (MINGW_LDFLAGS): Ditto. (ZLIB): Simplify accordingly.
* Update copyrightsChristopher Faylor2013-01-2118-25/+27
|
* * utils.sgml (mount): Document sparse mount option.Corinna Vinschen2012-12-142-0/+6
|
* * Makefile.in: Move CFLAGS and CXXFLAGS so that they can be manipulated byChristopher Faylor2012-11-283-11/+22
| | | | | | | | Makefile.common. Add -static-libstdc++ to *LDFLAGS. Add dependencies for loadlib.h. * loadlib.h: Update copyright. (_load_sys_library): Properly define set_dll_library as WINAPI to avoid stack corruption.
* * Makefile.in (ZLIBS): Common define to force static load.Christopher Faylor2012-11-272-3/+9
| | | | (MINGW_LDFLAGS): Use static libgcc.
* * Makefile.in: Make sure that libz is always loaded staticly.Christopher Faylor2012-11-272-2/+6
|
* ChangeLog:Christopher Faylor2012-11-264-101/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. cygserver/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. cygwin/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. doc/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. lsaauth/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. testsuite/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. utils/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate.
* * bloda.cc: Drop Mingw.org considerations.Corinna Vinschen2012-11-264-26/+13
| | | | | * dump_setup.cc: Ditto. * strace.cc: Ditto.
* ChangeLog:Christopher Faylor2012-11-2310-1319/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * path.cc (vcygpath): Handle cygdrive prefix.Corinna Vinschen2012-11-092-4/+16
|
* winsup:Corinna Vinschen2012-11-072-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.common (zlib_source): Remove. (zlib_build): Remove. (bz2lib_source): Remove. (bz2lib_build): Remove. (w32api_source): Remove. (w32api_build): Remove. (w32api_lib): Remove. (mingw_build): Remove. (mingw_source): Remove. ($(w32api_lib)/%.a): Remove rule. * Makefile.in (ZLIB): Remove. ($(SUBDIRS)): Drop mingw check. (mingw): Remove rule. (install_mingw): Ditto. * configure.in: Remove support for mingw as build target. * configure: Regenerate. utils: * Makefile.in ($(MINGW_BINS)): Drop -B$(mingw_build)/ from build expression.
* * Makefile.in (MINGW_CXX): Attach $(CFLAGS) to allow providingCorinna Vinschen2012-11-052-1/+6
| | | | build option tweaks to mingw compiler as well.
* * configure.in: Add AC_NO_EXECUTABLES,Corinna Vinschen2012-10-243-13/+97
| | | | * configure: Regenerate.
* * configure.in: Add check for MINGW_CXX. Remove libiconv check.Yaakov Selkowitz2012-10-248-1585/+1260
| | | | | | | | | | | * configure: Regenerate. * Makefile.in: Remove references to mingw and w32api directories. Use MINGW_CXX instead of mingw script to build MINGW_BINS. Check for libiconv with $CC --print-file-name. * cygcheck.cc: Use relative include paths for Cygwin headers. * path.cc: Ditto. * strace.cc: Ditto * mingw: Remove.
* * Makefile.in (cygcheck.exe): Add temporary (1.7.17-only) hack toCorinna Vinschen2012-10-192-1/+7
| | | | | allow cygcheck running on pre-Vista despite of the new w32api not matching the locally used w32api.
* * cygcheck.cc (dump_sysinfo): Convert "if/else if" chain to a switchCorinna Vinschen2012-10-092-9/+21
| | | | | statement. Drop "not yet supported" and "Server" from Windows 2012 output string.
* * cygcheck.cc (dump_sysinfo): Drop "not yet supported" text fromCorinna Vinschen2012-09-022-25/+59
| | | | Windows 8. Update products array.
* * Makefile.in (cygcheck.exe): Link against psapi.dll.Corinna Vinschen2012-07-116-43/+113
| | | | | | | | | | | | | | | | | | | | | | * 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.
* * cygpath.cc: Change including headers to allow building againstCorinna Vinschen2012-07-066-38/+45
| | | | | | | | | | | | | | Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers. Define _WIN32_WINNT and WINVER as 0x0602. (RtlEqualUnicodePathPrefix): Drop definition. Pulled in from ntdll.h now. (get_device_name): s/Zw/Nt. * dumper.cc: Include sys/param.h (dumper::dump_memory_region): Use MIN rather than min. * locale.cc: Include stdlib.h. Define _WIN32_WINNT and WINVER as 0x0602. * ps.cc: Include ntdef.h and ntdll.h rather than ddk headers. * regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.
* * cygcheck.cc (dump_sysinfo): Change "Server 8" to officialCorinna Vinschen2012-06-032-2/+7
| | | | "Server 2012".
* * mkpasswd.c (current_user): Actually *use* $HOME if it's available.Corinna Vinschen2012-05-052-2/+11
| | | | Add comment to explain what we're doing here.
* * mkgroup.c (print_special_by_sid): Rename from print_special. ChangeCorinna Vinschen2012-04-053-14/+71
| | | | | | | | | | | calls throughout. (print_special_by_name): New function. (main): Call print_special_by_name for TrustedInstaller account. * mkpasswd.c (print_special_by_sid): Rename from print_special. Change calls throughout. (print_special_by_name): New function. (enum_std_accounts): Call print_special_by_name for TrustedInstaller account.
* * pldd.c: Fix typo in license header.Yaakov Selkowitz2012-02-242-1/+12
|
* * pldd.c: Fix formatting.Yaakov Selkowitz2012-02-241-9/+9
|
* * Makefile.in (CYGWIN_BINS): Add pldd.Yaakov Selkowitz2012-02-243-1/+164
| | | | | | (pldd.exe): Add -lpsapi to ALL_LDFLAGS. * pldd.c: New file. * utils.sgml (pldd): New section.
* * passwd.cc: Add -v option to print version information as well, sinceCorinna Vinschen2012-02-092-2/+9
| | | | it's used in older csih.
* * utils.sgml: Fix typos.Corinna Vinschen2012-02-042-7/+11
|
* * strace.cc (proc_child): Don't right-shift exit value.Christopher Faylor2012-01-312-4/+9
| | | | (main): Call ExitProcess() to exit exactly the same way as any straced child.
* * tzset.c: Throughout use wide characters to be locale agnostic.Corinna Vinschen2012-01-292-470/+475
| | | | (main): Call setlocale.
* * Makefile.in (CYGWIN_BINS): Add tzset.Corinna Vinschen2012-01-294-1/+753
| | | | | | | | | * tzset.c: New tool, new file. * utils.sgml (tzset): New section. * new-features.sgml (ov-new1.7.10): Add tzset. * release/1.7.10: Add tzset.
* * ldd.cc (start_process): Handle .oct and .so as DLLs.Yaakov Selkowitz2012-01-242-1/+9
|
* Don't leave Windows 2000 behind.Corinna Vinschen2011-12-223-22/+72
| | | | | | | | | * Makefile.in (ps.exe): Revert previous change. * ps.cc: Include psapi.h again. (main): In CW_GETPINFO_FULL case. Evaluate minimal process access mask required per OS and use that in OpenProcess call. Use GetModuleFileNameExW on Windows 2000 or if fetching the drive mapping failed. Handle empty process name.