| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
* pinfo.cc (pinfo::init): Increase wait interval when waiting for procinfo to
stabilize.
|
|
|
|
| |
* dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than timeBeginPeriod.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
* fhandler_tty.cc (fhandler_pty_master::~fhandler_pty_master): Ditto.
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
* exceptions.cc (inside_kernel): Don't call GetModuleFileName if we know we're
in ntdll.
* sigproc.cc (wait_sig): Initialize hntdll.
|
|
|
|
|
| |
Harden _XOPEN_SOURCE guard against applications defining _XOPEN_SOURCE
with empty value.
|
| |
|
| |
|
| |
|
|
|
|
| |
prefix from symlink target path. Add comment to explain why.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
there is a NOFILE_INCR chunk following the free fd.
|
|
|
|
| |
* configure: Regenerate.
|
| |
|
|
|
|
| |
* configure: Regenerate.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
as well.
* thread.cc: Fix comment.
|
| |
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
than unix name if name doesn't exist.
|
| |
|
|
|
|
| |
Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
|
|
|
|
| |
posix_spawn item.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
(wcsxfrm): Ditto.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
(strxfrm): Ditto.
|
|
|
|
| |
newlib in terms of C99 "restrict" keyword.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
* dtable.cc (dup3): Fix off-by-one.
(find_unused_handle): Reduce time spent expanding during dup.
* syscalls.cc (setdtablesize): Report error on invalid value.
|
| |
|
|
|
|
| |
in newlib's stdlib.h now.
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
working. Add a (hopefully temporary) comment.
|