CVSROOT:        /cvs/src
Module name:    src
Changes by:     [email protected]  2011-05-20 07:23:12

Modified files:
        winsup/cygwin  : ChangeLog child_info.h dcrt0.cc fork.cc init.cc 
                         miscfuncs.cc ntdll.h thread.cc wincap.cc 
                         wincap.h 

Log message:
        * child_info.h (CURR_CHILD_INFO_MAGIC): Update.
        (class child_info_fork): Remove stacksize, add stackaddr and guardsize
        members.
        * dcrt0.cc (child_info_fork::alloc_stack_hard_way): Partial rewrite
        to regenerate the stack exactly as in the parent.
        (child_info_fork::alloc_stack): Set stackaddr to 0, rather than
        stacksize.
        (dll_crt0_1): Check for stackaddr before changing the stack addresses
        in the TEB.
        * fork.cc (frok::child): Check for stackaddr here.
        (frok::parent): Set ch.stackaddr and ch.guardsize if not called from
        the main thread.
        * init.cc (dll_entry): Replace pointer to NT_TIB with pointer to TEB.
        Fix incorrectly changed address test before removing _my_tls.
        Set StackLimit to NULL on Windows 2000.  Explain why.
        * miscfuncs.cc (struct thread_wrapper_arg): Store stackbase rather
        than stacksize, store commitaddr, remove guardsize.  Store all pointers
        as char * for easier address arithmetic.
        (thread_wrapper): Rewrite to remove OS stack before calling thread
        function.  Add lots of comments to explain what we do.
        (CygwinCreateThread): Reserve our own stack in case we got no
        application stack.  Add comments.
        * ntdll.h (struct _TEB): Extend defintion up to DeallocationStack
        member.
        * thread.cc (pthread_attr::pthread_attr): Use "(size_t) -1"
        rather then 0xffffffff.
        * wincap.h (wincaps::has_stack_size_param_is_a_reservation): New
        element.
        * wincap.cc: Implement above element throughout.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.5359&r2=1.5360
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/child_info.h.diff?cvsroot=src&r1=1.75&r2=1.76
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=src&r1=1.397&r2=1.398
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fork.cc.diff?cvsroot=src&r1=1.217&r2=1.218
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/init.cc.diff?cvsroot=src&r1=1.81&r2=1.82
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/miscfuncs.cc.diff?cvsroot=src&r1=1.63&r2=1.64
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ntdll.h.diff?cvsroot=src&r1=1.120&r2=1.121
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&r1=1.241&r2=1.242
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/wincap.cc.diff?cvsroot=src&r1=1.116&r2=1.117
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/wincap.h.diff?cvsroot=src&r1=1.96&r2=1.97

Reply via email to