summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * autoload.cc (timeBeginPeriod): Delete.Christopher Faylor2013-12-183-2/+7
| | | | * dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than timeBeginPeriod.
* * autoload.cc (timeBeginPeriod): Autoload.Christopher Faylor2013-12-185-11/+18
| | | | | | | | * dcrt0.cc (dll_crt0_1): Use timeBeginPeriod to set default resolution to 1 ms. * pinfo.cc (pinfo::thisproc): Set ppid for redirected _pinfo blocks too. (pinfo::init): Avoid using VirtualQuery. Just rely on the assumption that procinfo will be populated. * pinfo.h (_pinfo::ppid): Move into redirected block.
* * external.cc (fillout_pinfo): Remove nonsensical loop.Christopher Faylor2013-12-186-62/+83
| | | | | | | | | | | | | | | | | | | | * fork.cc (frok::parent): When initializing pinfo for child new PID_NEW flag + actual defined constant rather than raw number. Don't set start_time here. * pinfo.cc (pinfo::thisproc): Use PID_NEW when initializing pinfo. Avoid checking h for NULL multiple times. Don't set start_time here. (pinfo_init): Aways set ppid last. Tweak strace output. (pinfo::init): Handle new PID_NEW flag. Wait for shared memory to contain useful information. Set start_time if PID_NEW. (_onreturn:h): Define as HANDLE rather than HANDLE *. (_onreturn::~onreturn): Accommodate h definition change. (_onreturn::no_close_handle): Rename from no_close_p_handle. Take a pinfo arg and set hProcess to h before zeroing. (winpids::add): Don't open a handle to our own process. Change logic associated with when a handle gets closed. Accommodate no_close_handle changes. (winpids::enum_processes): Simplify process enumeration loop. (winpids::set): Eliminate ill-considered malloc locking. * sigproc.cc (proc_subproc): Always set ppid last.
* * sigproc.cc (sig_send): Set PIPE_NOWAIT for pipes which are not us.Christopher Faylor2013-12-182-1/+14
|
* * fhandler.h (fhandler_pty_master::~fhandler_pty_master): Delete.Christopher Faylor2013-12-174-10/+8
| | | | * fhandler_tty.cc (fhandler_pty_master::~fhandler_pty_master): Ditto.
* * syscalls.cc (NT_TRANSACTIONAL_ERROR): Define.Corinna Vinschen2013-12-113-9/+57
| | | | | | | | | | | (stop_transaction): Take "trans" HANDLE by reference and set it to NULL after closing it. (unlink_nt): If NtOpenFile fails due to a transactional error, stop transaction and retry NtOpenFile. Simplify check for having to call stop_transaction. (rename): If NtOpenFile fails due to a transactional error, stop transaction and retry NtOpenFile in both affected cases. Simplify check for having to call stop_transaction and add comment from unlink_nt.
* * mount.cc (fs_info::update): Fix formatting.Corinna Vinschen2013-12-112-2/+6
|
* * fhandler.h (fhandler_dev_clipboard): Add private memberCorinna Vinschen2013-12-103-4/+14
| | | | | | | | cygnativeformat. Declare private method set_clipboard. * fhandler_clipboard.cc (cygnativeformat): Convert static variable to fhandler_dev_clipboard member. (fhandler_dev_clipboard::set_clipboard): Convert from static function to fhandler_dev_clipboard method.
* signal hangChristopher Faylor2013-12-091-0/+10
|
* * globals.cc (hntdll): Define/declare.Christopher Faylor2013-12-094-0/+13
| | | | | | * exceptions.cc (inside_kernel): Don't call GetModuleFileName if we know we're in ntdll. * sigproc.cc (wait_sig): Initialize hntdll.
* * include/cygwin/stdlib.h (initstate, random, setstate, srandom):Corinna Vinschen2013-12-092-1/+9
| | | | | Harden _XOPEN_SOURCE guard against applications defining _XOPEN_SOURCE with empty value.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 28.Corinna Vinschen2013-12-082-1/+5
|
* *** empty log message ***Corinna Vinschen2013-12-081-0/+1
|
* * new-features.xml (ov-new1.7.26): Add new section.Corinna Vinschen2013-12-072-0/+19
|
* * path.cc (symlink_native): Workaround Windows 8.1 bug: Drop long pathCorinna Vinschen2013-12-073-4/+35
| | | | prefix from symlink target path. Add comment to explain why.
* * syscalls.cc (dup): Use cygheap_fdnew properly.Christopher Faylor2013-12-062-1/+5
|
* * cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will haveChristopher Faylor2013-12-055-10/+33
| | | | | | | | | | | | been set by a previous function. * dtable.h (dtable::extend): Accept second size_t argument. * dtable.cc (dtable::extend): Accept second "min" argument which allows checking for OPEN_MAX_MAX boundary conditions. (dtable_init): Accommodate second argument to dtable::extend. (dtable::find_unused_handle): Ditto. * syscalls.cc (setdtablesize): Ditto. (dup): Return any error passed by cygheap_fdnew() directly. (getdtablesize): Just return dtable size directly.
* * dtable.cc (dtable::find_unused_handle): When extending, always make sure thatChristopher Faylor2013-12-042-1/+8
| | | | there is a NOFILE_INCR chunk following the free fd.
* * configure.ac: Back out stupid change.Christopher Faylor2013-12-033-10/+11
| | | | * configure: Regenerate.
* * select.cc (select): Add workaround for, as yet undebugged, pathological case.Christopher Faylor2013-12-032-3/+11
|
* * configure.ac: Don't require 64-bit compiler for 32-bit builds.Christopher Faylor2013-12-033-100/+114
| | | | * configure: Regenerate.
* * dtable.cc (dtable::find_unused_handle): Break out of the right loop.Christopher Faylor2013-12-012-2/+6
|
* * dtable.cc (dtable::find_unused_handle): Fix off-by-one error. Always exitChristopher Faylor2013-12-013-18/+29
| | | | | | | | | through the bottom. (cygwin_attach_handle_to_fd): Make sure that fd tab is locked for the duration of this function. * dtable.h (dtable::lock): Make public. (dtable::unlock): Ditto. (dtable): Remove friends.
* Fix ChangeLog entryCorinna Vinschen2013-12-011-3/+4
|
* * dtable.cc (dtable::extend): Change local variable new_size to size_tCorinna Vinschen2013-12-013-3/+10
| | | | | | as well. * thread.cc: Fix comment.
* .Christopher Faylor2013-12-011-2/+5
|
* * dtable.h (dtable::first_fd_for_open): Change declaration to size_t.Christopher Faylor2013-12-013-10/+18
| | | | | | | | | (dtable::extend): Change parameter to size_t. (dtable::find_unused_handle): Ditto. * dtable.cc: Remove now-unused header. (dtable::extend): Remove pointless test. Change parameter to size_t. (dtable::find_unused_handle): Rework to avoid MAX calculation in extend() call. Change parameter to size_t.
* * dtable.cc (build_fh_pc): When creating an archetype, use native name ratherChristopher Faylor2013-12-013-1/+12
| | | | than unix name if name doesn't exist.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 27.Christopher Faylor2013-11-292-1/+5
|
* * include/cygwin/stdlib.h(initstate, random, setstate, srandom) :Jon TURNEY2013-11-292-0/+9
| | | | Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
* * new-features.xml (ov-new1.7.26): Fix section ID and title. AddCorinna Vinschen2013-11-292-1/+11
| | | | posix_spawn item.
* * include/glob.h: Fix invalid use of 'restrict' error.Corinna Vinschen2013-11-282-1/+5
|
* * syscalls.cc (try_to_bin): Enhance debug output in case reopen fails.Corinna Vinschen2013-11-272-1/+6
|
* * syscalls.cc (try_to_bin): Drop fh_dup, reuse tmp_fh instead.Corinna Vinschen2013-11-272-3/+6
|
* * syscalls.cc (try_to_bin): Take additional parameter to get file openCorinna Vinschen2013-11-273-5/+43
| | | | | | | flags. If the file to move to the bin has been opened casesensitive, reopen it caseinsensitive. Explain why. Revert the default name of the Vista-and-later recycler to mixed case for readability. (unlink_nt): Call try_to_bin with file open flags as evaluated.
* * nlsfuncs.cc (wcscoll): Add "__restrict" to definition.Corinna Vinschen2013-11-262-2/+7
| | | | (wcsxfrm): Ditto.
* * common.din: Export posix_spawn[...] functions.Corinna Vinschen2013-11-266-2/+56
| | | | | | | * exec.cc (execve): Add EXPORT_ALIAS _execve. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * posix.sgml (std-susv4): Add posix_spawn[...] here. (std-notimpl): Drop here.
* * nlsfuncs.cc (strcoll): Add "__restrict" to definition.Corinna Vinschen2013-11-262-2/+7
| | | | (strxfrm): Ditto.
* Throughout, keep function definitions and declarations in sync withCorinna Vinschen2013-11-2515-30/+47
| | | | newlib in terms of C99 "restrict" keyword.
* * dtable.cc: Include sys/param.h for MAX definition.Corinna Vinschen2013-11-242-0/+5
|
* Throughout, drop unnecessary explicit includes of windows header filesCorinna Vinschen2013-11-2421-49/+23
| | | | | | | | | | | | included by default. * winlean.h: Add long comment to explain why we have to define certain symbols. (_NORMALIZE_): Define. (_WINNLS_): Drop definition and subsequent undef. (_WINNETWK_): Ditto. (_WINSVC_): Ditto. 2013-11-23 Eric Blake <eblake@redhat.com>
* *** empty log message ***Corinna Vinschen2013-11-241-0/+2
|
* dup2: fix off-by-one crashEric Blake2013-11-233-2/+15
| | | | | | * dtable.cc (dup3): Fix off-by-one. (find_unused_handle): Reduce time spent expanding during dup. * syscalls.cc (setdtablesize): Report error on invalid value.
* * new-features.xml (ov-new1.7.26): Add new section.Corinna Vinschen2013-11-232-0/+39
|
* * include/cygwin/stdlib.h (realpath): Drop declaration. It's declaredCorinna Vinschen2013-11-202-1/+5
| | | | in newlib's stdlib.h now.
* * 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.
* * ntdll.h (RtlGetVersion): Declare.Corinna Vinschen2013-11-195-7/+20
| | | | | | | * wincap.cc (wincapc::init): Rather than GetVersionEx, call RtlGetVersion which is not crippled by missing Windows 8.1 manifest. * wincap.h (wincapc): Change type of version to RTL_OSVERSIONINFOEXW. Align formatting of all class members.
* * cygcheck.cc (dump_sysinfo): Revert Windows 8.1 hack. It's notCorinna Vinschen2013-11-192-11/+9
| | | | working. Add a (hopefully temporary) comment.
* * wincap.cc (wincapc::init): Revert previous change. It's not working.Corinna Vinschen2013-11-193-13/+4
|
* *** empty log message ***Corinna Vinschen2013-11-191-0/+4
|