summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix console clear screen in case of partial scrollingCorinna Vinschen2016-08-011-2/+2
| | | | | | | | | | Commit d7586cb incorrectly checked only for the new cursor position beyond the old cursor position to decide if we have to correct for user scrolling. Since this situation is handled just fine if the cursor is still visible, only perform the subsequent correction if the cursor is not in the visible console window. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Open process with PROCESS_QUERY_INFORMATION to fetch mapsCorinna Vinschen2016-08-011-2/+2
| | | | | | | | | | | | | | Commit ba58e5f lowered permission requirements when opening threads and processes to {PROCESS,THREAD}_QUERY_LIMITED_INFORMATION. However, when creating the /proc/<PID>/maps file, the call to VirtualQueryEx requires PROCESS_QUERY_INFORMATION access Note: It seems PROCESS_QUERY_LIMITED_INFORMATION is sufficient starting with Windows 8.1, but this is neither documented on MSDN, nor is it a safe bet. It may have to do with a fixed implementation of the UAC trust levels. Let's better follow the docs for now. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix clear screen behaviour of console when user scrolled up or downCorinna Vinschen2016-07-291-1/+21
| | | | | | | | | | We must call SetConsoleCursorPosition prior to SetConsoleWindowInfo, otherwise the scroll bars will not be updated by the OS. Make sure to scroll the console window by just the right amount to have the new cursor position one line after the used console buffer area at the top of the console window, no matter the scroll state. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix buffer scrolling when performing a "clear screen"Corinna Vinschen2016-07-281-19/+35
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Don't raise SIGTTIN from poll/selectCorinna Vinschen2016-07-273-10/+41
| | | | | | | | | | | | | SIGTTIN should be raised when read() is made on a tty in a backgrounded process, but not when it's tested with poll()/select(). I guess poll()/select() does need to call bg_check(), in order to detect the error conditions that notices (that is, if bg_check() returns bg_eof or bg_error, then fd is ready as an error condition exists) so add an optional parameter to fhandler_base::bg_select() to indicate that signals aren't desired. See https://cygwin.com/ml/cygwin-developers/2016-07/msg00004.html
* Remove redundant macro and function called `__getreent'Corinna Vinschen2016-07-272-9/+0
| | | | | | Just rely on the inline version in include/cygwin/config.h Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* posix.xml: Add missing unimplemented functions from POSIX-1.2013Corinna Vinschen2016-07-231-0/+4
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Change "nodomain+nobody" to "no+body"Corinna Vinschen2016-07-221-3/+3
| | | | | | Per https://cygwin.com/ml/cygwin-apps/2016-07/msg00059.html Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Handle WinFSP nobody accountCorinna Vinschen2016-07-191-0/+28
| | | | | | | | | Per discussion started at https://cygwin.com/ml/cygwin/2016-06/msg00347.html S-1-0-65534 == uid/gid 65534 == nodomain+nobody Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix typoCorinna Vinschen2016-07-181-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Add release message for commit 71df3bfCorinna Vinschen2016-07-181-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* truncl: Fix setting rounding bits in FPU control wordCorinna Vinschen2016-07-181-2/+6
| | | | | | | | | | | Mingw-w64, which is the source of this code, uses different definitions of the rounding bits FE_TONEAREST and friends. They immediately reflect the bit values in the FPU control word, while on Cygwin they are shifted down to become the values 0-3. Fix the bit computing expression to account for the difference. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Put previous doc in correct sectionEric Blake2016-07-141-3/+3
| | | | | | SSIZE_MAX was a bug fix, not a huge change. Signed-off-by: Eric Blake <eblake@redhat.com>
* Add release message for commit fe9e3b4Corinna Vinschen2016-07-141-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Transform all special chars in relative Windows path stringCorinna Vinschen2016-07-141-3/+6
| | | | | | | | get_nt_native_path handles the transposition of chars not allowed in Windows pathnames. However, it never starts transposition at the start of the string, which is wrong for relative paths. Fix it. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix 32-bit SSIZE_MAXEric Blake2016-07-142-1/+12
| | | | | | | | | | | | | | | | | | | POSIX requires that SSIZE_MAX have the same type as ssize_t, but on 32-bit, we were defining it as a long even though ssize_t resolves to an int. It also requires that SSIZE_MAX be usable via preprocessor #if, so we can't cheat and use a cast. If this were newlib, I'd have had to hack _intsup.h to probe the qualities of size_t (via gcc's __SIZE_TYPE__), similar to how we already probe the qualities of int8_t and friends, then cross our fingers that ssize_t happens to have the same rank (most systems do, but POSIX permits a system where they differ such as size_t being long while ssize_t is int). Unfortunately gcc gives us neither __SSIZE_TYPE__ nor __SSIZE_MAX__. On the other hand, our limits.h is specific to cygwin, so we can just shortcut to the correct results rather than being generic to all possible ABI. Signed-off-by: Eric Blake <eblake@redhat.com>
* Add release message for commit 82e0649Corinna Vinschen2016-07-141-0/+2
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* machine/_types.h: __blkcnt_t should be signedRay Donnelly2016-07-141-1/+1
| | | | | | | | | | [1] states: "blkcnt_t and off_t shall be signed integer types." This causes pacman to fail when the size requirement of the net update operation is negative, instead it calculated a huge positive number. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
* Improve description of Cygwin ldd utilityJon Turney2016-07-071-3/+13
| | | | | | | | | | Improve the description of Cygwin ldd utility to give a bit more detail about how it does what it does Also add a security warning (modelled after the one in the Linux manpage) that it may end up executing the file it is applied to. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
* Use <filename> tag, not <pathname> tagJon Turney2016-07-071-1/+1
| | | | | | | Fix an instance of the invalid <pathname> tag in Cygwin utils documentation, by using the valid <filename> tag instead. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
* Use <example> tag at same level as <para>, not inside itJon Turney2016-07-071-7/+18
| | | | | | | | | In Cygwin utils documentation, use the <example> tag at same level as <para>, not inside it. This improves the generated manpages. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
* Add release message for commit 8cff156Corinna Vinschen2016-07-061-1/+2
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* strace: Make sure strace timer isn't copied to child processCorinna Vinschen2016-07-061-1/+1
| | | | | | | | | At fork time the .data and .bss segments of the Cygwin DLL are copied over to the child process. This also copies the strace timer since it's in the .bss segment so far. Fix that by moving the strace timer out into the .data_cygwin_nocopy segment. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Redefine locale info in struct _reent for per-thread localesCorinna Vinschen2016-07-061-1/+0
| | | | | | | | | | | | | The _reent members _current_category and _current_locale are not used at all. _current_locale is set to "C" in various points of the code but its value is just as unused as _current_category. This patch redefines these members without changing the size of the structure to allow for an implementation of per-thread locales per POSIX-1.2008 (i.e. uselocale and usage of the per-thread locale in subsequent function calls). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* ldd: Handle executable relocation when setting breakpointCorinna Vinschen2016-07-021-23/+24
| | | | | | | | | | | | | | | | set_entry_point_break() uses GetModuleInformation to fetch the address of the exe's entry point. However, just as with lpStartAddress from the CREATE_PROCESS_DEBUG_EVENT event, the returned address is only computed from the PE file header. It's not actually the entry point in memory, if the executable is relocated (ASLR). See https://msdn.microsoft.com/en-us/library/windows/desktop/ms684229(v=vs.85).aspx Convert this to using the info from CREATE_PROCESS_DEBUG_EVENT combined with the offset from the PE file header's AddressOfEntryPoint to deal with relocation. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* ldd: terminate process on hitting breakpointCorinna Vinschen2016-07-021-4/+1
| | | | | | | | | So far ldd terminates the inferior process as soon as some thread is started. Apparently threads are started from even ntdll.dll before the main thread of the application is started. As a result the dll list is cut short since ldd terminates prematurely. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Make sure to use the Winsock definition of FIONREAD in ioctlsocket callCorinna Vinschen2016-07-011-1/+2
| | | | | | | | | | Commit b1b46d45 introduced a regression. After redefining FIONREAD as part of restructuring newlib/Cygwin headers, the call to ioctlsocket in the FIONREAD branch of fhandler_socket::ioctl should have been changed to use the Winsock definition of FIONREAD, which I neglected. This only affects 64 bit Cygwin. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Restore mingw64-x86_64-gcc-core in FAQ listing required packagesJon Turney2016-06-291-0/+1
| | | | | Restore mingw64-x86_64-gcc-core to requirements for 32-bit builds in FAQ listing required packages, and give reason.
* Update FAQ listing required packages for building Cygwincygwin-masterJon Turney2016-06-281-8/+7
| | | | | docbook2X is now required for building documentation libiconv differences between x86_64 and x86 no longer exist
* Reformat some too-long linesCorinna Vinschen2016-06-272-3/+6
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Add comment to point out missing access right per documentationCorinna Vinschen2016-06-271-0/+4
| | | | | | | | | In get_mem_values we open the process without PROCESS_VM_READ access and are *still* able to request working set information, despite MSDN claiming we need it for this purpose. Instead of adding this access right, just add an comment to point this out for now. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Use PROCESS/THREAD_QUERY_LIMITED_INFORMATION where appropriateCorinna Vinschen2016-06-274-13/+20
| | | | | | | Using PROCESS/THREAD_QUERY_INFORMATION may limit the number of processes/threads we can inspect depending on their integrity level. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Set supported Windows release to Windows 10Corinna Vinschen2016-06-276-8/+8
| | | | | | This affects setting _WIN32_WINNT and WINVER. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Remove pre-Vista considerations from utilitiesCorinna Vinschen2016-06-274-55/+4
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Add release message for commit b2867a6Corinna Vinschen2016-06-271-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Revert "Use .DELETE_ON_ERROR"Jon Turney2016-06-251-4/+1
| | | | This reverts commit 62b0bf0b8b65f16909b0e8d150a9c238cf6eb44a.
* Use .DELETE_ON_ERRORJon Turney2016-06-251-1/+4
| | | | | Use .DELETE_ON_ERROR Make the fact that we are running dllfixdbg less obscure
* Remove leftover useless copyright hintsCorinna Vinschen2016-06-255-15/+0
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Clarify setting of child_info::msv_count in child_info.hCorinna Vinschen2016-06-251-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Remove CYGWIN=detect_bloda optionCorinna Vinschen2016-06-256-97/+7
|
* No longer support "Interact with desktop"Corinna Vinschen2016-06-251-28/+20
| | | | | | | | Always create child user window station and desktop, unless only spawning with restricted token. Also fix formatting of a few comments in child_info_spawn::worker. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix comments for AI_ADDRCONFIG and AI_V4MAPPEDCorinna Vinschen2016-06-241-3/+3
|
* syscalls.cc: Merge desktop_ini_ext into desktop_iniCorinna Vinschen2016-06-241-10/+5
|
* fhandler_pty_master::pty_master_thread: Always check for correct pidCorinna Vinschen2016-06-241-8/+4
|
* Remove unused GetTickCount_nsCorinna Vinschen2016-06-242-18/+0
|
* Fix various OS-related commentsCorinna Vinschen2016-06-2412-93/+68
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygheap_domain_info::init: Fix commentCorinna Vinschen2016-06-241-1/+1
|
* Remove XP and Server 2003 from documentationCorinna Vinschen2016-06-2410-99/+72
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* net.cc (fdsock): Fix commentCorinna Vinschen2016-06-241-12/+9
|
* child_info.h: Fix a commentCorinna Vinschen2016-06-241-1/+1
|