aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2009-07-122009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>Chris Sutcliffe28-1431/+1339
* mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files. * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org sources as of Apr. 20, 2009. Update further to match the sources in the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the double/ulong union from U to dbl_union for better grepping and white- space tidy-ups.
2009-07-12* how-spawn-works.txt: Add "out of date" note.Christopher Faylor3-1/+7
* how-vfork-works.txt: Ditto.
2009-07-12* Makefile.in: Don't do anything special with any RCS directories.Christopher Faylor5-3/+15
* ntdll.h (PROCESSINFOCLASS): Remove unneeded trailing comma. * pinfo.cc (_pinfo::dup_proc_pipe): Remove unneeded assignment. * sigproc.cc (sig_send): Don't send signal to myself if this is an exec stub.
2009-07-12 * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Don't useCorinna Vinschen2-20/+45
FileAllInformation info class since it needs a big buffer. Add a comment.
2009-07-08* pathnames.sgml: Fix typo.Christopher Faylor2-1/+5
2009-07-07 * winbase.h (ilockexch): Avoid making 'ret' volatile.Dave Korn2-2/+7
(ilockcmpexch): Likewise.
2009-07-07 * ChangeLog: Assorted minor whitespace fixes in old entries.Dave Korn1-11/+11
2009-07-07winsup/ChangeLog:Dave Korn13-24/+323
* Makefile.common (COMPILE_CXX): Add support for per-file overrides to exclude $(nostdinc) and $(nostdincxx) from compiler flags. (COMPILE_CC): Likewise for $(nostdinc). winsup/cygwin/ChangeLog: * Makefile.in (DLL_OFILES): Add libstdcxx_wrapper.o (libstdcxx_wrapper_CFLAGS): Add flags for new module. (_cygwin_crt0_common_STDINCFLAGS): Define per-file override. (libstdcxx_wrapper_STDINCFLAGS, cxx_STDINCFLAGS): Likewise. * cxx.cc: Include "cygwin-cxx.h". (operator new): Tweak prototype for full standards compliance. (operator new[]): Likewise. (operator new (nothrow)): New fallback function. (operator new[] (nothrow), operator delete (nothrow), operator delete[] (nothrow)): Likewise. (default_cygwin_cxx_malloc): New struct of pointers to the above, for final last-resort fallback default. * cygwin-cxx.h: New file. (struct per_process_cxx_malloc): Define. (default_cygwin_cxx_malloc): Declare extern. * cygwin.din (__wrap__ZdaPv): Export new wrapper. (__wrap__ZdaPvRKSt9nothrow_t, __wrap__ZdlPv, __wrap__ZdlPvRKSt9nothrow_t, __wrap__Znaj, __wrap__ZnajRKSt9nothrow_t, __wrap__Znwj, __wrap__ZnwjRKSt9nothrow_t): Likewise. * globals.cc (__cygwin_user_data): Init newly-repurposed 'forkee' field (now 'cxx_malloc') to point to default_cygwin_cxx_malloc. * libstdcxx_wrapper.cc: New file. (__wrap__ZdaPv, __wrap__ZdaPvRKSt9nothrow_t, __wrap__ZdlPv, __wrap__ZdlPvRKSt9nothrow_t, __wrap__Znaj, __wrap__ZnajRKSt9nothrow_t, __wrap__Znwj, __wrap__ZnwjRKSt9nothrow_t): Define wrapper functions for libstdc++ malloc operators and their overrides. * winsup.h (default_cygwin_cxx_malloc): Declare extern. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * include/sys/cygwin.h (struct per_process_cxx_malloc): Forward declare here. (struct per_process::forkee): Rename and repurpose from this ... (struct per_process::cxx_malloc): ... to this. * lib/_cygwin_crt0_common.cc: Include cygwin-cxx.h. (WEAK): Define shorthand helper macro. (__cygwin_cxx_malloc): Define and populate with weak references to whatever libstdc++ malloc operators will be visible at final link time for Cygwin apps and dlls. (_cygwin_crt0_common): Always look up cygwin DLL's internal per_process data, and don't test for (impossible) failure. Inherit any members of __cygwin_cxx_malloc that we don't have overrides for from the DLL's default and store the resulting overall set of overrides back into the DLL's global per_process data.
2009-07-07 * cygtls.cc (_cygtls::remove): Fix typo.Corinna Vinschen2-3/+6
2009-07-06* Makefile.in (clean): Clean generated files in srcdir.Christopher Faylor3-50/+55
* tlsoffsets.h: Regenerate.
2009-07-06* cygtls.cc (_cygtls::remove): Avoid closing a NULL handle.Christopher Faylor2-1/+6
2009-07-06 * fhandler_socket.cc (fhandler_socket::recv_internal): Convert wsabufCorinna Vinschen2-10/+18
and wsacnt to references. Fix handling of WSAEMSGSIZE.
2009-07-06 * cygtls.h (struct _local_storage): Add thread storage pointers forCorinna Vinschen5-33/+91
memory used by socket select functions. Combine them into a single struct select. * cygtls.cc: Accommodate above change throughout. (_cygtls::init_thread): Drop initalizing of sockevt to INVALID_HANDLE_VALUE. (_cygtls::fixup_after_fork): Reset sockevt to NULL. (_cygtls::remove): Don't use sockevt value to bail out prematurely. Set sockevt to NULL. Free malloced select members. * select.h (struct select_socket_info): Drop max_w4 member. * select.cc (thread_socket): Use INFINITE timeout value if number of objects to wait for is <= MAXIMUM_WAIT_OBJECTS. Use num_w4 member of select_socket_info struct rather than dropped max_w4. (init_tls_select_info): New inline function to initialize TLS select members. (start_thread_socket): Just call init_tls_select_info to initialize TLS select members and use them later on. (socket_cleanup): Don't free select_socket_info pointer members since they are thread local now.
2009-07-06* dtable.cc (handle_to_fn): Detect failing NtQueryObject.Christopher Faylor2-2/+7
2009-07-06 * autoload.cc: Delete stray CR.Corinna Vinschen2-1/+5
2009-07-05* fhandler_console.cc: Change workstation -> windows station throughout.Christopher Faylor2-8/+13
2009-07-05* cygwin-console-helper.cc: New file.Christopher Faylor3-1/+18
2009-07-04* autoload.cc (SetParent): Add new import.Christopher Faylor5-40/+148
* fhandler.h (fhandler_console::create_invisible_console): Declare new function. (create_invisible_console_workaround): Ditto. * fhandler_console.cc (fhandler_console::create_invisible_console): Define new function. (create_invisible_console_workaround): Ditto. Add too much code to deal with broken Windows 7. Use a helper app to start an invisible console window. (fhandler_console::need_invisible): Reorganize to use helper functions to create invisible console. * spawn.cc (spawn_guts): Avoid zeroing already zeroed fields in si.
2009-07-04 * autoload.cc (AttachConsole): Correct size of args.Dave Korn2-1/+5
2009-07-03* dcrt0.cc (jit_debug): New global.Christopher Faylor11-38/+85
(initial_env): Set jit_debug when we are automatically starting a gdb process. * dtable.cc (dtable::get_debugger_info): Don't tty tricks when we are being debugged by our own captive gdb, as determined by jit_debug == true. (dtable::init_std_file_from_handle): Detect errors when initializing a tty early rather than at random points later. * fhandler.h (fhandler_*::init): Return int to indicate success/failure. * fhandler.cc (fhandler_base::init): Reflect change in return value. * pipe.cc (fhandler_pipe::init): Ditto. (fhandler_pipe::create_selectable): Don't say we're retrying when we aren't. * fhandler_console.cc (fhandler_console::init): Ditto. Return success/failure. * fhandler_serial.cc (fhandler_serial::init): Ditto. * fhandler_tty.cc (fhandler_tty_slave::init): Ditto. (fhandler_tty_slave::open): Make debugging output more detailed. * tty.cc (tty_list::terminate): Don't close I/O handles before all slaves have checked in. (tty::slave_alive): Make a non-inlined function. Check if tty pipe handles can be created as an additional exists check. * tty.h (tty::slave_alive): Just define here.
2009-07-03 * new-features.sgml (ov-new1.7-file): Add fpurge and mkstemps to newCorinna Vinschen2-1/+6
API functions.
2009-07-03 * posix.sgml: Add fpurge and mkstemps to BSD list.Corinna Vinschen2-0/+6
2009-07-03 * cygwin.din (fpurge, mkstemps): New exports.Corinna Vinschen4-9/+43
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * mktemp.cc (_gettemp): Add parameter. (mkstemps): New function. (mkstemp, mkdtemp, mktemp): Adjust clients.
2009-07-03 * autoload.cc: Fix typo in comment.Corinna Vinschen2-3/+18
(ShowWindowAsync): Define. (AttachConsole): Define. * fhandler_console.cc (fhandler_console::need_invisible): Add band-aid for Windows 7 AllocConsole bug.
2009-07-01Clean up some sources.redhat.com references.Christopher Faylor4-13/+7
2009-07-01 * net.cc (get_xp_ifs): Fix typo in comment.Corinna Vinschen2-1/+5
2009-07-01 * lib/comctl32.def (StrCSpnA@8, StrCSpnIA@8, StrCSpnW@8, StrChrA@8,Corinna Vinschen2-22/+9
StrChrIA@8, StrChrIW@8, StrChrW@8, StrCmpNA@12, StrCmpNIA@12, StrCmpNIW@12, StrCmpNW@12, StrRChrA@12, StrRChrIA@12, StrRChrW@12, StrRStrIA@12, StrRStrIW@12, StrStrA@8, StrStrIA@8, StrStrIW@8, StrStrW@8, StrToIntA@4, StrToIntW@4): Remove erroneously defined entry points.
2009-07-01 * fhandler.h (class fhandler_socket): Add class members and methodsCorinna Vinschen4-17/+68
to store and retrieve the SO_RCVBUF and SO_SNDBUF sizes. * fhandler_socket.cc (fhandler_socket::dup): Duplicate new members. (fhandler_socket::send_internal): Check for SO_SNDBUF size and restrict send to 1 byte less per KB 823764. Leave loop immediately if WSASendMsg has been used. * net.cc (fdsock): Change comment again. Set buffer sizes to 65536. Store values in fhandler_socket. (cygwin_setsockopt): Store SO_RCVBUF and SO_SNDBUF sizes in fhandler_socket. (cygwin_sendto): Drop call to sig_dispatch_pending. (cygwin_recvfrom): Ditto. (cygwin_recvmsg): Ditto. (cygwin_sendmsg): Ditto.
2009-06-30* select.h: New file split from fhandler.h.Christopher Faylor13-330/+457
(select_record::select_record): Define do-nothing constructor for "new" to avoid gratuitous zeroing. (select_info): New base class. (select_pipe_info): New class with methods for dealing with pipes. (select_socket_info): New class with methods for dealing with sockets. (select_serial_info): Dummy class for serial. (select_mailslot_info): Dummy class for mailslots. (select_stuff): Define device_specific_* as actual classes rather than void *. * dtable.h (dtable::select_read): Accommodate return value change to 'bool' and argument change to "select_stuff". (dtable::select_write): Ditto. (dtable::select_except): Ditto. * dtable.cc (dtable::select_read): Accommodate return value change to 'bool' and argument change to "select_stuff". (dtable::select_write): Ditto. (dtable::select_except): Ditto. * fhandler.h: Excise select-related classes. (fhandler_*::select_read): Change argument to select_stuff. (fhandler_*::select_write): Ditto. (fhandler_*::select_except): Ditto. * select.cc (UNIX_FD_ZERO): Use memset rather than bzero. (select_stuff::test_and_set): Change return type to bool. Allocate select_record on entry and let fhandler_*::select_* operate on the start.next field of select_stuff. (pipeinf): Delete. (select_pipe_info::select_pipe_info): New constructor. Allocates event for controlling pipe waits. (select_pipe_info::~select_pipe_info): New destructor. Destroy event. Stop thread. (select_pipe_info::add_watch_handle): New function. (thread_pipe): Wait for the hEvent part of any overlapped pipes before peeking. (start_thread_pipe): Don't allocate device_specific_pipe stuff here. Assume that it has been allocated earlier. (pipe_cleanup): Rely on select_pipe_info destructor to clean up pipe paraphenalia. (fhandler_*::select_*): Derive select_record from new select_stuff argument. (fhandler_pipe::select_*): Ditto. Allocate pipe-specific field if not already allocated. (serialinf): Delete. (thread_serial): serialinf -> select_serial_info. (fhandler_base::ready_for_read): Rewrite to accommodate change in argument to fhandler_*::select_*. (socketinf): Delete. (thread_socket): socketinf -> select_socket_info. (mailslotinf): Delete. (thread_mailslot): mailslotinf -> select_mailslot_info.
2009-06-30* fhandler.cc (fhandler_base::has_ongoing_io): Accept an argument indicatingChristopher Faylor4-6/+17
whether the overlapped event should be tested. (fhandler_base::read_overlapped): Pass is_overlapped state to has_ongoing_io. (fhandler_base::write_overlapped): Ditto. * fhandler.h (fhandler_base::has_ongoing_io): Accommodate argument change. * select.cc (peek_pipe): Ditto.
2009-06-30 * net.cc (fdsock): Set default socket buffer sizes to 65520. ChangeCorinna Vinschen3-14/+18
comment accordingly. * fhandler_socket.cc (fhandler_socket::send_internal): Set maximum send size to 65520 as well.
2009-06-29* select.cc (peek_pipe): Turn on (temporarily?) the experimental code whichChristopher Faylor2-7/+5
tries to determine when a pipe is writable.
2009-06-28* select.cc (peek_pipe): Use has_ongoing_io() to determine if the pipe is readyChristopher Faylor2-3/+6
for writing rather than performing brute-force checks.
2009-06-28* fhandler.h (fhandler_base::has_ongoing_io): Declare new function.Christopher Faylor4-12/+53
* fhandler.cc (fhandler_base::has_ongoing_io): Define new function. (fhandler_base::read_overlapped): Use has_ongoing_io to avoid writing when handle has not completed last I/O. (fhandler_base::write_overlapped): Ditto. * select.cc (peek_pipe): Be more careful about accessing hEvent field from get_overlapped().
2009-06-28* gendef (cleanup): Rename from 'nocr'. Remove comments and trailing spaces.Christopher Faylor5-13/+21
* cygwin.din: Add long-needed comment describing what dll_crt0__FP11per_process demangles to.
2009-06-26 * wincap.h (wincaps::has_broken_alloc_console): New element.Corinna Vinschen3-0/+18
* wincap.cc: Implement above element throughout.
2009-06-25 * sec_auth.cc (lsaauth): Close unused handle.Corinna Vinschen2-2/+13
(lsaprivkeyauth): Ditto.
2009-06-24 * include/wtsapi32.h (WTSQueryUserToken, WTSEnumerateSessionsW,Corinna Vinschen2-0/+42
WTSEnumerateSessionsA): Add function prototypes. (struct _WTS_SESSION_INFOW, struct _WTS_SESSION_INFOA): Add typedefs. (WTS_SESSION_INFO, PWTS_SESSION_INFO, WTSEnumerateSessions): Add defines dependent on UNICODE setting.
2009-06-24 * faq-setup.xml (faq.setup.setup-fails-on-ts): Fix another typo.Corinna Vinschen2-1/+5
2009-06-24 * faq-setup.xml (faq.setup.setup-fails-on-ts): Fix typo.Corinna Vinschen2-1/+5
2009-06-23 * faq-setup.xml (faq.setup.setup-failes-on-ts): Change rebaseall toCorinna Vinschen2-1/+6
rebase.
2009-06-23 * faq-setup.xml (faq.setup.setup-failes-on-ts): New FAQ entry.Corinna Vinschen2-0/+33
2009-06-23 * sec_auth.cc (get_server_groups): Ignore errors fromCorinna Vinschen2-6/+8
get_user_local_groups.
2009-06-22 * spawn.cc (spawn_guts): Don't run additional check for Win32Corinna Vinschen2-3/+14
incompatible CWD if newargv.fixup bailed out already. (av::fixup): Check shell scripts for executability.
2009-06-19 * new-features.sgml (ov-new1.7-misc): Add new link libs.Corinna Vinschen3-4/+29
* setup2.sgml (setup-locale-ov): Explain locale-specific wcwidth feature.
2009-06-18 * path.cc (chdir): Check error conditions first.Corinna Vinschen2-5/+9
2009-06-172009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2-0/+5
* include/stdlib.h (_wtof): Define.
2009-06-17 * fhandler_socket.cc (fhandler_socket::recv_internal): Mark WSARecvMsgCorinna Vinschen2-1/+6
as NO_COPY.
2009-06-16* fhandler.cc (fhandler_base::read_overlapped): Use a better variable name.Christopher Faylor2-4/+9
2009-06-16* fhandler.cc (fhandler_base::read_overlapped): Preserve len when looping dueChristopher Faylor2-3/+9
to received signal.