summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
* * security.h (open_local_policy): Remove declaration.Corinna Vinschen2014-01-234-25/+44
| | | | | | | | | | | | | | | (lsa_open_policy): Declare. (lsa_close_policy): Declare. * sec_auth.cc (lsa_open_policy): Rename from open_local_policy. Take server name as parameter. Return NULL in case of error, rather than INVALID_HANDLE_VALUE. (lsa_close_policy): Rename from close_local_policy. Make externally available. Get handle by value. (create_token): Convert call to open_local_policy/close_local_policy according to aforementioned changes. (lsaauth): Ditto. (lsaprivkeyauth): Ditto. * setlsapwd.cc (setlsapwd): Ditto.
* * path.cc (etc::test_file_change): In case of NtQueryFullAttributesFileCorinna Vinschen2014-01-222-2/+7
| | | | returning an error, only return true if file actually exists.
* * include/cygwin/in6.h (struct ipv6_rt_hdr): Define.Corinna Vinschen2014-01-203-14/+35
| | | | | | | | | | * include/cygwin/socket.h: Fix formatting. (IP_UNICAST_IF): Define. (IPV6_JOIN_GROUP): Remove Windowism. (IPV6_LEAVE_GROUP): Ditto. (IPV6_UNICAST_IF): Define. (IPV6_TCLASS): Ditto. (IPV6_RECVTCLASS): Ditto.
* * include/netinet/ip6.h: New file, copied from FreeBSD vebatim.Corinna Vinschen2014-01-184-1/+359
|
* * dtable.h (dtable::lock): Revert static.Christopher Faylor2014-01-172-2/+8
| | | | (dtable::unlock): Ditto.
* * passwd.cc (setpassent): Align to BSD definition.Corinna Vinschen2014-01-172-2/+6
|
* *** empty log message ***Corinna Vinschen2014-01-171-0/+12
|
* * syscalls.cc (popen): Introduce Glibc 'e' flag to allow thread-safeCorinna Vinschen2014-01-172-12/+48
| | | | opening of the pipe with O_CLOEXEC flag. Simplify FD_CLOEXEC handling.
* * include/sys/file.h (LOCK_SH): Drop definition in favor of newCorinna Vinschen2014-01-172-20/+13
| | | | | | | | | | | | definitions in newlib. (LOCK_EX): Ditto. (LOCK_NB): Ditto. (LOCK_UN): Ditto. (flock): Ditto. (F_OK): Drop. Already correctly defined in unistd.h. (X_OK): Ditto. (W_OK): Ditto. (R_OK): Ditto.
* * include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.Corinna Vinschen2014-01-172-1/+6
|
* * dtable.h (dtable::lock): Make static.Christopher Faylor2014-01-162-4/+8
|
* .Christopher Faylor2014-01-081-0/+3
|
* * exceptions.h (cygwin_exception::open_stackdumpfile): Move old function intoChristopher Faylor2014-01-083-6/+19
| | | | | | | | | class. (cygwin_exception::h): New member. (cygwin_exception::cygwin_exception): Initialize h to NULL. * exceptions.cc (cygwin_exception::open_stackdumpfile): Move into cygwin_exception class. Use 'h' class member. (cygwin_exception::dumpstack): Close stack dump file handle if opened.
* RecreateChristopher Faylor2014-01-051-4/+3
|
* * fhandler.h: Update copyright.Christopher Faylor2014-01-045-2185/+2214
| | | | | | | | | | | | | | | | | | | (cltype): New enum. (dev_console::console_attrs): Define struct name. (dev_console::console_attrs::set_cl_x): New function. (dev_console::console_attrs::set_cl_y): New function. (fhandler_console::clear_screen): Redefine input params. * fhandler_console.cc: Update copyright. Throughout, reflect change in arguments to fhandler_console::clear_screeen. (fhandler_console::mouse_aware): Simplify logic slightly. (fhandler_console::scroll_screen): Remove hopefully obsolete win95 code. (dev_console::console_attrs::set_cl_x): New function. (dev_console::console_attrs::set_cl_y): New function. (fhandler_console::clear_screen): Redefine input params. Calculate position based on enum value. (region_split): Change arguments. Simplify. (ReadConsoleOutputWrapper): Remove coord argument since we now always use 0, 0. Send extra arguments to region_split.
* .Christopher Faylor2013-12-311-0/+4
|
* * fhandler_console.cc (region_split): New function.Christopher Faylor2013-12-312-11/+93
| | | | | | | (delta): Ditto. (ReadConsoleOutputWrapper): Ditto. (fhandler_console::char_command): Use ReadConsoleOutputWrapper to avoid OOM condition from ReadConsoleOutputW. Add more debugging.
* * strace.cc (strace::vsprntf): Fix potential (if unlikely) use of uninitializedChristopher Faylor2013-12-222-1/+7
| | | | variable.
* *** empty log message ***Corinna Vinschen2013-12-181-0/+3
|
* .Christopher Faylor2013-12-181-0/+6
|
* * dcrt0.cc (dll_crt0_1): Remove NtSetTimerResolution.Christopher Faylor2013-12-183-4/+11
| | | | | * pinfo.cc (pinfo::init): Increase wait interval when waiting for procinfo to stabilize.
* * 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
|
* * 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.
* * select.cc (select): Add workaround for, as yet undebugged, pathological case.Christopher Faylor2013-12-032-3/+11
|
* * 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.
* * 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
|