OSDN Git Service

* dll_init.cc (dll_list::find_by_modname): New function to search the dll list
authorcgf <cgf>
Mon, 30 May 2011 06:52:12 +0000 (06:52 +0000)
committercgf <cgf>
Mon, 30 May 2011 06:52:12 +0000 (06:52 +0000)
commit7cdb79588bbfb88ebd584bbcdb63de0887af5ed4
tree8456e5ae8dcb75fcbce3ec87c7048a05857cb85d
parentc569ad4a66d07217054cbae2c2be2a082bbd84b8
* dll_init.cc (dll_list::find_by_modname): New function to search the dll list
for a module name only (no path).
(dll_list::alloc): Initialize newly-added members of struct dll.
(dll_list::append): New function to factor out the append operation
(used by dll_list::topsort).
(dll_list::populate_deps): New function to identify dll dependencies.
(dll_list::topsort): New function to sort the dll list topologically by
dependencies.
(dll_list::topsort_visit): New helper function for the above.
* dll_init.h (dll::ndeps): New class member.
(dll::deps): Ditto.
(dll::modname): Ditto.
(dll_list::find_by_modname): New function related to topsort.
(dll_list::populate_all_deps): Ditto.
(dll_list::populate_deps): Ditto.
(dll_list::topsort): Ditto.
(dll_list::topsort_visit): Ditto.
(dll_list::append): Ditto.
(pefile): New struct allowing simple introspection of dll images.
* fork.cc (fork): Topologically sort the dll list before forking
* child_info.h (CURR_CHILD_INFO_MAGIC): Refresh.
(child_info::refresh_cygheap): New function.
* spawn.cc (spawn_guts): Call refresh_cygheap before creating a new process to
ensure that cygheap_max is up-to-date.
* fork.cc (frok::parent): Ditto.
winsup/cygwin/ChangeLog
winsup/cygwin/child_info.h
winsup/cygwin/dll_init.cc
winsup/cygwin/dll_init.h
winsup/cygwin/fork.cc
winsup/cygwin/spawn.cc