Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-10 06:32:12 +0400
committerChristopher Faylor <me@cgf.cx>2001-10-10 06:32:12 +0400
commit57013c31ecdc90515d8fabf1842831a9ab2ffca9 (patch)
treedf20a782a28fbb9fe27297f6814f7a4ea0c1a501 /winsup/cygwin/child_info.h
parentb2a8510b89313bbac97385863e87fc19d73f2004 (diff)
Throughout, rename PROC_FORK1 to PROC_FORK.
* child_info.h: Rename PROC_* to _PROC_*. Define PROC_* with additional testing magic. Eliminate old PROC_FORK and rename PROC_FORK1 to PROC_FORK. * dcrt0.cc (_cygwin_testing_magic): New variable. Added to magic number in proc_info. (alloc_stack): Eliminate old PROC_FORK test. (dll_crt0_1): Ditto. Use _PROC_* enums for test. Subtract _cygwin_testing_magic from child_proc_info->type so that normal cygwin programs invoked by test suite programs do not consider themselves to be in a cygwin environment. (_dll_crt0): Ditto. Move environment checks to initial_env function to conserve on stack space. (initial_env): New function. Checks for testing and debugging environment variables. * init.cc (cygwin_hmodule): Move declaration. * winsup.h: Declare variables used for cygwin testing.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r--winsup/cygwin/child_info.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h
index 983675877..e744f5bcf 100644
--- a/winsup/cygwin/child_info.h
+++ b/winsup/cygwin/child_info.h
@@ -13,18 +13,20 @@ details. */
enum
{
PROC_MAGIC = 0xaf12f000,
- PROC_FORK = PROC_MAGIC + 1,
- PROC_EXEC = PROC_MAGIC + 2,
- PROC_SPAWN = PROC_MAGIC + 3,
- PROC_FORK1 = PROC_MAGIC + 4, // Newer versions provide stack
+ _PROC_EXEC = PROC_MAGIC + 2,
+ _PROC_SPAWN = PROC_MAGIC + 3,
+ _PROC_FORK = PROC_MAGIC + 4, // Newer versions provide stack
// location information
- PROC_SPAWN1 = PROC_MAGIC + 5
};
#define PROC_MAGIC_MASK 0xff00f000
#define PROC_MAGIC_GENERIC 0xaf00f000
#define PROC_MAGIC_VER_MASK 0x0ff0000
+#define PROC_EXEC (_PROC_EXEC + _cygwin_testing_magic)
+#define PROC_SPAWN (_PROC_SPAWN + _cygwin_testing_magic)
+#define PROC_FORK (_PROC_FORK + _cygwin_testing_magic)
+
#define EXEC_MAGIC_SIZE sizeof(child_info)
class child_info
{