diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-14 00:49:00 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-14 00:49:00 +0000 |
commit | e2e078278cc951344fc5c0a976715bd1fe11f2d8 (patch) | |
tree | afd6de5d0a5ee0c2778c384423f7a59fd38ccd44 /winsup/cygwin/cygheap.h | |
parent | 3e2d8af0b9a8df7b9b1230d35f3e838d3efbfb33 (diff) | |
download | newlib-e2e078278cc951344fc5c0a976715bd1fe11f2d8.zip newlib-e2e078278cc951344fc5c0a976715bd1fe11f2d8.tar.gz newlib-e2e078278cc951344fc5c0a976715bd1fe11f2d8.tar.bz2 |
* cygheap.cc (dup_now): New function.
(cygheap_setup_for_child): Accept new argument controlling whether to delay
copying of cygheap to shared memory region.
(cygheap_setup_for_child_cleanup): Accept new arguments controlling whether to
copy cygheap at this point.
* cygheap.h: Reflect above changes.
* fork.cc (fork_parent): Break copying of cygheap into two parts when
fork_fixup is required so that the child can see the parent's changes.
(vfork): Do stack cleanup prior to forcing a fork error.
* spawn.cc (spawn_guts): Ditto.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r-- | winsup/cygwin/cygheap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 99aea8d..1972411 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -177,8 +177,8 @@ extern init_cygheap *cygheap; extern void *cygheap_max; class child_info; -void __stdcall cygheap_setup_for_child (child_info *ci) __attribute__ ((regparm(1))); -void __stdcall cygheap_setup_for_child_cleanup (child_info *ci) __attribute__ ((regparm(1))); +void *__stdcall cygheap_setup_for_child (child_info *ci, bool dup_later) __attribute__ ((regparm(2))); +void __stdcall cygheap_setup_for_child_cleanup (void *, child_info *, bool) __attribute__ ((regparm(3))); void __stdcall cygheap_fixup_in_child (child_info *, bool); extern "C" { void __stdcall cfree (void *) __attribute__ ((regparm(1))); |