summaryrefslogtreecommitdiffstats
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.
* * Makefile.common: Don't drop -gFOO switches when filtering CFLAGSCorinna Vinschen2014-01-222-2/+7
| | | | and CXXFLAGS.
* * 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.
* merge from gccDJ Delorie2014-01-213-142/+13
|
* * 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.
* * libc/include/setjmp.h (longjmp): Fix copy/paste error.Corinna Vinschen2014-01-202-1/+6
|
* * libc/include/setjmp.h (longjmp): Mark "noreturn" when building withCorinna Vinschen2014-01-192-1/+10
| | | | GCC.
* * 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.
* * libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h.Corinna Vinschen2014-01-172-2/+15
| | | | (setpassent): Declare.
* * 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.
* * libc/include/sys/_default_fcntl.h (LOCK_SH): Define.Corinna Vinschen2014-01-172-1/+19
| | | | | | | (LOCK_EX): Likewise. (LOCK_NB): Likewise. (LOCK_UN): Likewise. (flock): Declare.
* * include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.Corinna Vinschen2014-01-172-1/+6
|
* Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushingCorinna Vinschen2014-01-175-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.
* * dtable.h (dtable::lock): Make static.Christopher Faylor2014-01-162-4/+8
|
* 2014-01-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-01-103-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.
* .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.
* 2014-01-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-01-073-1323/+1436
| | | | | * arm/configure.in: Fix host_makefile_frag to use ac_abs_srcdir. * arm/configure: Regenerated.
* * faq-programming.xml: Update packages needed to build Cygwin.Corinna Vinschen2014-01-072-4/+16
|
* 2014-01-06 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2014-01-065-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-06 Mike Frysinger <vapier@gentoo.org>Jeff Johnston2014-01-062-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.
* 2013-01-06 Mike Frysinger <vapier@gentoo.org>Jeff Johnston2014-01-062-0/+5
| | | | * libc/ctype/jp2uc.c: Include string.h.
* 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.
* 2013-12-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2013-12-23103-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-22 JF Bastien <jfb@chromium.org>Jeff Johnston2013-12-234-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.
* merge from gccDJ Delorie2013-12-232-0/+15
|
* * strace.cc (strace::vsprntf): Fix potential (if unlikely) use of uninitializedChristopher Faylor2013-12-222-1/+7
| | | | variable.
* * configure.host (newlib_cflags): Use -Os, -ffunction-sections andNick Clifton2013-12-202-3/+9
| | | | -fdata-sections for RL78.
* * libc/stdio/vfwscanf.c (__SVFWSCANF_R): Fix fetching decimal_point inCorinna Vinschen2013-12-192-5/+11
| | | | !_MB_CAPABLE as well as in !__HAVE_LOCALE_INFO_EXTENDED__ case.
* Fix ChangeLog entryCorinna Vinschen2013-12-191-3/+3
|
* *** empty log message ***Corinna Vinschen2013-12-181-0/+3
|
* * vfscanf.c (BUF): Change definition to take multibyte decimal pointCorinna Vinschen2013-12-183-21/+94
| | | | | | | into account. (__SVFSCANF_R): Handle radix char language-dependent per POSIX. (__SVFWSCANF_R): Ditto.
* .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.
* 2013-12-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2013-12-108-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.