summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* 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
* 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>
* 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>
* Reformat some too-long linesCorinna Vinschen2016-06-271-2/+4
| | | | 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>
* 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-254-83/+1
|
* 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
|
* net.cc (fdsock): Fix commentCorinna Vinschen2016-06-241-12/+9
|
* child_info.h: Fix a commentCorinna Vinschen2016-06-241-1/+1
|
* child_info::child_info: Fix a commentCorinna Vinschen2016-06-241-7/+2
|
* sec_auth.cc: Drop prototype for CreateProfile, don't expect failed autoloadCorinna Vinschen2016-06-241-11/+2
|
* include/cygwin/if.h: Fix a commentCorinna Vinschen2016-06-241-2/+2
|
* fhandler_disk_file::opendir: Fix a commentCorinna Vinschen2016-06-241-7/+5
|
* eval_start_address: Fix commentCorinna Vinschen2016-06-241-3/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* fhandler_dev_floppy::get_drive_info: fix commentCorinna Vinschen2016-06-241-3/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* symlink_info::check fixup comment and two test for non-XPCorinna Vinschen2016-06-241-5/+3
|
* Drop autoloading transaction functions from ntdllCorinna Vinschen2016-06-241-6/+0
|
* Drop autoloading kernel32 symbols available since VistaCorinna Vinschen2016-06-242-8/+0
|
* Drop autoloading of CancelSynchronousIoCorinna Vinschen2016-06-242-9/+6
|
* Drop max_sys_priv wincapCorinna Vinschen2016-06-245-159/+152
| | | | | | | | | | | Convert sys_privs to const struct with TOKEN_PRIVILEGES layout. Drop function get_system_priv_list. Just use pointer to sys_privs. Dropping max_sys_priv from wincaps requires to make sure that the bitfield is 8 byte aligned on x86_64, otherwise gcc (5.3 only?) apparently breaks access to the bitfield (off by 4 bytes). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Drop accidentally leftover comment from wincapc::initCorinna Vinschen2016-06-241-3/+0
|
* Default to latest wincapCorinna Vinschen2016-06-241-3/+3
|
* Drop Windows XP/2003 wincapsCorinna Vinschen2016-06-241-43/+0
|
* Drop has_broken_rtl_query_process_debug_information flagCorinna Vinschen2016-06-243-17/+0
|