aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-01-23 * security.h (open_local_policy): Remove declaration.Corinna Vinschen4-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.
2014-01-22 * Makefile.common: Don't drop -gFOO switches when filtering CFLAGSCorinna Vinschen2-2/+7
and CXXFLAGS.
2014-01-22 * path.cc (etc::test_file_change): In case of NtQueryFullAttributesFileCorinna Vinschen2-2/+7
returning an error, only return true if file actually exists.
2014-01-21merge from gccDJ Delorie3-142/+13
2014-01-20 * include/cygwin/in6.h (struct ipv6_rt_hdr): Define.Corinna Vinschen3-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.
2014-01-20 * libc/include/setjmp.h (longjmp): Fix copy/paste error.Corinna Vinschen2-1/+6
2014-01-19 * libc/include/setjmp.h (longjmp): Mark "noreturn" when building withCorinna Vinschen2-1/+10
GCC.
2014-01-18 * include/netinet/ip6.h: New file, copied from FreeBSD vebatim.Corinna Vinschen4-1/+359
2014-01-17* dtable.h (dtable::lock): Revert static.Christopher Faylor2-2/+8
(dtable::unlock): Ditto.
2014-01-17 * libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h.Corinna Vinschen2-2/+15
(setpassent): Declare.
2014-01-17 * passwd.cc (setpassent): Align to BSD definition.Corinna Vinschen2-2/+6
2014-01-17*** empty log message ***Corinna Vinschen1-0/+12
2014-01-17 * syscalls.cc (popen): Introduce Glibc 'e' flag to allow thread-safeCorinna Vinschen2-12/+48
opening of the pipe with O_CLOEXEC flag. Simplify FD_CLOEXEC handling.
2014-01-17 * include/sys/file.h (LOCK_SH): Drop definition in favor of newCorinna Vinschen2-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.
2014-01-17 * libc/include/sys/_default_fcntl.h (LOCK_SH): Define.Corinna Vinschen2-1/+19
(LOCK_EX): Likewise. (LOCK_NB): Likewise. (LOCK_UN): Likewise. (flock): Declare.
2014-01-17 * include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.Corinna Vinschen2-1/+6
2014-01-17 Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushingCorinna Vinschen5-6/+51
semantics from POSIX to BSD. * libc/stdio/fclose.c (_fclose_r): Conditionalize file flushing on _STDIO_BSD_SEMANTICS. Call __sflush_r rather than _fflush_r. Add comment. * libc/stdio/fflush.c (__sflushw_r): New function, only available if _STDIO_BSD_SEMANTICS is defined. * libc/stdio/findfp.c (_cleanup_r): Call _fwalk_reent rather than _fwalk. Conditionalize cleanup function call on _STDIO_BSD_SEMANTICS. Add comments. Add FIXME. * libc/stdio/local.h (__sflushw_r): Declare if _STDIO_BSD_SEMANTICS is defined.
2014-01-16* dtable.h (dtable::lock): Make static.Christopher Faylor2-4/+8
2014-01-102014-01-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-2/+8
* arm/configure.in: Revert previous fix and change host_makefile_frag to calculate the absolute location of srcdir/../config/default.mh. * arm/configure: Regenerated.
2014-01-08.Christopher Faylor1-0/+3
2014-01-08* exceptions.h (cygwin_exception::open_stackdumpfile): Move old function intoChristopher Faylor3-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.
2014-01-072014-01-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-1323/+1436
* arm/configure.in: Fix host_makefile_frag to use ac_abs_srcdir. * arm/configure: Regenerated.
2014-01-07 * faq-programming.xml: Update packages needed to build Cygwin.Corinna Vinschen2-4/+16
2014-01-062014-01-06 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston5-10/+50
* libc/include/sys/_default_fcntl.h (AT_FDCWD): Define according to POSIX. (AT_EACCESS): Likewise. (AT_SYMLINK_NOFOLLOW): Likewise. (AT_SYMLINK_FOLLOW): Likewise. (AT_REMOVEDIR): Likewise. (openat): Declare according to POSIX. * libc/include/stdio.h (renameat): Likewise. * libc/include/sys/stat.h (fchmodat): Likewise. (fstatat): Likewise. (mkdirat): Likewise. (mkfifoat): Likewise. (mknodat): Likewise. (utimensat): Likewise. (futimens): Likewise. * libc/include/sys/unistd.h (faccessat): Likewise. (fchownat): Likewise. (linkat): Likewise. (readlinkat): Likewise. (symlinkat): Likewise. (unlinkat): Likewise.
2014-01-062014-01-06 Mike Frysinger <vapier@gentoo.org>Jeff Johnston2-11/+19
* libc/search/hash.c (hash_delete): Change __uint32_t to u_int. (hash_get): Likewise. (hash_put): Likewise. (hash_seq): Likewise. (hash_sync): Likewise. Also fix former ChangeLog entry to be 2014.
2014-01-062013-01-06 Mike Frysinger <vapier@gentoo.org>Jeff Johnston2-0/+5
* libc/ctype/jp2uc.c: Include string.h.
2014-01-05RecreateChristopher Faylor1-4/+3
2014-01-04* fhandler.h: Update copyright.Christopher Faylor5-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.
2013-12-31.Christopher Faylor1-0/+4
2013-12-31* fhandler_console.cc (region_split): New function.Christopher Faylor2-11/+93
(delta): Ditto. (ReadConsoleOutputWrapper): Ditto. (fhandler_console::char_command): Use ReadConsoleOutputWrapper to avoid OOM condition from ReadConsoleOutputW. Add more debugging.
2013-12-232013-12-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston103-1385/+1619
* NEWS: Update with 2.1.0 info. * README: Ditto. * acinclude.m4: Change version number to 2.1.0. * aclocal.m4: Regenerated. * configure: Ditto. * Makefile.in: Regenerated. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/configure: Ditto. * libc/libc.texinfo: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto. * libm/libm.texinfo: Ditto. * libc/sys/linux/shared.ld: Add VERS_2.1
2013-12-232013-12-22 JF Bastien <jfb@chromium.org>Jeff Johnston4-6/+33
* libc/include/limits.h: Define LLONG_MIN, LLONG_MAX and ULLONG_MAX for C++11 too. * libc/include/stdlib.h: Define struct lldiv_t, _Exit, atoll, llabs and lldiv for C99 and C++11. Move wcstold to wchar.h. * libc/include/wchar.h: Define WCHAR_MIN and WCHAR_MAX according to __WCHAR_UNSIGNED__ if it is provided, and correct the limit when unsigned (to 32 all-1 bits, not 31). Define FILE as in stdio.h. Move wcstold from stdlib.h here.
2013-12-23merge from gccDJ Delorie2-0/+15
2013-12-22* strace.cc (strace::vsprntf): Fix potential (if unlikely) use of uninitializedChristopher Faylor2-1/+7
variable.
2013-12-20 * configure.host (newlib_cflags): Use -Os, -ffunction-sections andNick Clifton2-3/+9
-fdata-sections for RL78.
2013-12-19 * libc/stdio/vfwscanf.c (__SVFWSCANF_R): Fix fetching decimal_point inCorinna Vinschen2-5/+11
!_MB_CAPABLE as well as in !__HAVE_LOCALE_INFO_EXTENDED__ case.
2013-12-19Fix ChangeLog entryCorinna Vinschen1-3/+3
2013-12-18*** empty log message ***Corinna Vinschen1-0/+3
2013-12-18 * vfscanf.c (BUF): Change definition to take multibyte decimal pointCorinna Vinschen3-21/+94
into account. (__SVFSCANF_R): Handle radix char language-dependent per POSIX. (__SVFWSCANF_R): Ditto.
2013-12-18.Christopher Faylor1-0/+6
2013-12-18* dcrt0.cc (dll_crt0_1): Remove NtSetTimerResolution.Christopher Faylor3-4/+11
* pinfo.cc (pinfo::init): Increase wait interval when waiting for procinfo to stabilize.
2013-12-18* autoload.cc (timeBeginPeriod): Delete.Christopher Faylor3-2/+7
* dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than timeBeginPeriod.
2013-12-18* autoload.cc (timeBeginPeriod): Autoload.Christopher Faylor5-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.
2013-12-18* external.cc (fillout_pinfo): Remove nonsensical loop.Christopher Faylor6-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.
2013-12-18* sigproc.cc (sig_send): Set PIPE_NOWAIT for pipes which are not us.Christopher Faylor2-1/+14
2013-12-17* fhandler.h (fhandler_pty_master::~fhandler_pty_master): Delete.Christopher Faylor4-10/+8
* fhandler_tty.cc (fhandler_pty_master::~fhandler_pty_master): Ditto.
2013-12-11 * syscalls.cc (NT_TRANSACTIONAL_ERROR): Define.Corinna Vinschen3-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.
2013-12-11 * mount.cc (fs_info::update): Fix formatting.Corinna Vinschen2-2/+6
2013-12-10 * fhandler.h (fhandler_dev_clipboard): Add private memberCorinna Vinschen3-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.
2013-12-102013-12-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston8-141/+242
* acconfig.h: Add _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL. * newlib.hin: Ditto. * configure: Regenerate. * configure.in: Add setting of _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL. * libc/string/local.h: Add check for _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL and set __inhibit_loop_to_libcall macro appropriately. * libc/string/memmove.c: Use __inhibit_loop_to_libcall macro in function declaration. * libc/string/memset.c: Ditto.