aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils
AgeCommit message (Collapse)AuthorFilesLines
2013-11-19 * cygcheck.cc (RtlGetVersion): Declare.Corinna Vinschen2-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.
2013-11-19 * cygcheck.cc (dump_sysinfo): Revert Windows 8.1 hack. It's notCorinna Vinschen2-11/+9
working. Add a (hopefully temporary) comment.
2013-11-19Add missing entryCorinna Vinschen1-0/+3
2013-11-19 * cygcheck.cc (dump_sysinfo): Drop code trying to fetch OSVERSIONINFOCorinna Vinschen2-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.
2013-11-19 * Makefile.in (cygcheck.exe): Link against wininet.dll.Corinna Vinschen4-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.
2013-11-19 * cygcheck.cc (dump_sysinfo): Distinguish Windows 8 and 8.1, as wellCorinna Vinschen2-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.
2013-11-07winsup/ChangeLog:Christopher Faylor4-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.
2013-09-16* dump_setup.cc (find_tar_ext): Generalize search for .tar extension, avoidingChristopher Faylor2-9/+9
looking for specific compression types.
2013-08-23* cygcheck.cc (package_grep): Accommodate arch-specific package layout.Christopher Faylor2-2/+10
2013-07-31 * Makefile.in (MINGW_LDFLAGS): Don't link against w32api libs. TheseCorinna Vinschen2-1/+6
are only for Cygwin executables.
2013-07-07* cygcheck.cc (dll_info): Detect and report on symlinks. Output wrongChristopher Faylor3-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.
2013-06-26 * cygpath.cc (do_pathconv): when -p option is given, generate wideCorinna Vinschen3-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.
2013-05-21 Reinstantiate accidentally removed patch from 2009-05-16:Corinna Vinschen2-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.
2013-05-10- Added <?xml> and <!DOCTYPE> tags to the top of utils.xml and pretty-Warren Young3-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.
2013-05-01Modernized user guide, API reference, and FAQ generation. OverallWarren Young1-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.
2013-04-23 * Merge in cygwin-64bit-branch.Corinna Vinschen22-254/+419
2013-02-21* Makefile.in (CYGWIN_LDFLAGS): Replace -static-lib* with -static.Yaakov Selkowitz2-3/+9
(MINGW_LDFLAGS): Ditto. (ZLIB): Simplify accordingly.
2013-01-21Update copyrightsChristopher Faylor18-25/+27
2012-12-14 * utils.sgml (mount): Document sparse mount option.Corinna Vinschen2-0/+6
2012-11-28* Makefile.in: Move CFLAGS and CXXFLAGS so that they can be manipulated byChristopher Faylor3-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.
2012-11-27* Makefile.in (ZLIBS): Common define to force static load.Christopher Faylor2-3/+9
(MINGW_LDFLAGS): Use static libgcc.
2012-11-27* Makefile.in: Make sure that libz is always loaded staticly.Christopher Faylor2-2/+6
2012-11-26ChangeLog:Christopher Faylor4-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.
2012-11-26 * bloda.cc: Drop Mingw.org considerations.Corinna Vinschen4-26/+13
* dump_setup.cc: Ditto. * strace.cc: Ditto.
2012-11-23ChangeLog:Christopher Faylor10-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.
2012-11-09 * path.cc (vcygpath): Handle cygdrive prefix.Corinna Vinschen2-4/+16
2012-11-07winsup:Corinna Vinschen2-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.
2012-11-05 * Makefile.in (MINGW_CXX): Attach $(CFLAGS) to allow providingCorinna Vinschen2-1/+6
build option tweaks to mingw compiler as well.
2012-10-24 * configure.in: Add AC_NO_EXECUTABLES,Corinna Vinschen3-13/+97
* configure: Regenerate.
2012-10-24 * configure.in: Add check for MINGW_CXX. Remove libiconv check.Yaakov Selkowitz8-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.
2012-10-19 * Makefile.in (cygcheck.exe): Add temporary (1.7.17-only) hack toCorinna Vinschen2-1/+7
allow cygcheck running on pre-Vista despite of the new w32api not matching the locally used w32api.
2012-10-09 * cygcheck.cc (dump_sysinfo): Convert "if/else if" chain to a switchCorinna Vinschen2-9/+21
statement. Drop "not yet supported" and "Server" from Windows 2012 output string.
2012-09-02 * cygcheck.cc (dump_sysinfo): Drop "not yet supported" text fromCorinna Vinschen2-25/+59
Windows 8. Update products array.
2012-07-11 * Makefile.in (cygcheck.exe): Link against psapi.dll.Corinna Vinschen6-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.
2012-07-06 * cygpath.cc: Change including headers to allow building againstCorinna Vinschen6-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.
2012-06-03 * cygcheck.cc (dump_sysinfo): Change "Server 8" to officialCorinna Vinschen2-2/+7
"Server 2012".
2012-05-05 * mkpasswd.c (current_user): Actually *use* $HOME if it's available.Corinna Vinschen2-2/+11
Add comment to explain what we're doing here.
2012-04-05 * mkgroup.c (print_special_by_sid): Rename from print_special. ChangeCorinna Vinschen3-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.
2012-02-24* pldd.c: Fix typo in license header.Yaakov Selkowitz2-1/+12
2012-02-24* pldd.c: Fix formatting.Yaakov Selkowitz1-9/+9
2012-02-24* Makefile.in (CYGWIN_BINS): Add pldd.Yaakov Selkowitz3-1/+164
(pldd.exe): Add -lpsapi to ALL_LDFLAGS. * pldd.c: New file. * utils.sgml (pldd): New section.
2012-02-09 * passwd.cc: Add -v option to print version information as well, sinceCorinna Vinschen2-2/+9
it's used in older csih.
2012-02-04 * utils.sgml: Fix typos.Corinna Vinschen2-7/+11
2012-01-31* strace.cc (proc_child): Don't right-shift exit value.Christopher Faylor2-4/+9
(main): Call ExitProcess() to exit exactly the same way as any straced child.
2012-01-29 * tzset.c: Throughout use wide characters to be locale agnostic.Corinna Vinschen2-470/+475
(main): Call setlocale.
2012-01-29 * Makefile.in (CYGWIN_BINS): Add tzset.Corinna Vinschen4-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.
2012-01-24 * ldd.cc (start_process): Handle .oct and .so as DLLs.Yaakov Selkowitz2-1/+9
2011-12-22 Don't leave Windows 2000 behind.Corinna Vinschen3-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.
2011-12-22 * Makefile.in (ps.exe): Drop -lpsapi from ALL_LDFLAGS.Corinna Vinschen3-63/+43
* ps.cc: Don't include psapi.h. (dosdevs): Drop. (unicode_buf): Define. (main): Simplify path evaluation in CW_GETPINFO_FULL case. Fetch drive map from Cygwin DLL. Use it to convert NT device paths to Win32 paths.
2011-12-17Clean up whitespace.Christopher Faylor26-809/+809