diff options
author | Christopher Faylor <me@cgf.cx> | 2011-05-30 06:52:12 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-05-30 06:52:12 +0000 |
commit | 977ad5434cc09034e7276127e6aa10c4f88d2e3e (patch) | |
tree | 9765aa65dd3ef6ada26a06d32b085543aa1aa684 /winsup/cygwin/child_info.h | |
parent | 3a88e09e7f7239cba1cd7d9f292b0741b6ff2fd6 (diff) | |
download | newlib-977ad5434cc09034e7276127e6aa10c4f88d2e3e.zip newlib-977ad5434cc09034e7276127e6aa10c4f88d2e3e.tar.gz newlib-977ad5434cc09034e7276127e6aa10c4f88d2e3e.tar.bz2 |
* 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.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r-- | winsup/cygwin/child_info.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 806cd08..ae236db 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -38,7 +38,7 @@ enum child_status #define EXEC_MAGIC_SIZE sizeof(child_info) /* Change this value if you get a message indicating that it is out-of-sync. */ -#define CURR_CHILD_INFO_MAGIC 0x76ca2aaeU +#define CURR_CHILD_INFO_MAGIC 0xeef5640dU /* NOTE: Do not make gratuitous changes to the names or organization of the below class. The layout is checksummed to determine compatibility between @@ -65,6 +65,7 @@ public: child_info (unsigned, child_info_types, bool); child_info (): subproc_ready (NULL), parent (NULL) {} ~child_info (); + void refresh_cygheap () { cygheap_max = ::cygheap_max; } void ready (bool); bool sync (int, HANDLE&, DWORD) __attribute__ ((regparm (3))); DWORD proc_retry (HANDLE) __attribute__ ((regparm (2))); |