newlib-cygwin/winsup/cygwin/mm
Corinna Vinschen 1f68e88f0d Cygwin: redefine how to recognize forkee state
So far the global variable in_forkee only indicated if the
process is the child process during fork(2) itself.

However, we need an indicator accessible from plain C code
in newlib, allowing to check for a process being a forked
process all the time, after fork(2) succeeded.

Redefine bool in_forkee to int __in_forkee to allow exposing
it to newlib.  Redefine how it indicates fork state (not
forked, forking, forked).

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-29 13:33:05 +01:00
..
cygheap.cc Cygwin: Disable writing core dumps by default. 2024-01-16 14:07:05 +00:00
heap.cc Cygwin: redefine how to recognize forkee state 2024-01-29 13:33:05 +01:00
malloc.cc
malloc_wrapper.cc Cygwin: mm/malloc_wrapper.cc: fix a comment 2022-08-10 18:05:12 +02:00
mmap.cc Cygwin: mmap: use SRWLOCK instead of muto 2022-08-23 12:09:44 +02:00
mmap_alloc.cc
shared.cc Cygwin: shared: Fix access permissions setting in open_shared(). 2023-08-16 22:11:17 +09:00