From 6d8bd861e2503d0ab3c3cb64016b50700236265b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 27 Aug 2002 04:10:54 +0000 Subject: * child_info.h: Add _PROC_WHOOPS enum value. (CURR_CHILD_INFO_MAGIC): Update. (child_info::magic): Make 'long'. * cygheap.h: Export _cygheap_start. * cygheap.cc: Don't declare _cygheap_start. * cygmagic: Use cksum to produce checksums. Append 'U' to end of checksum. * dcrt0.cc (initial_env): Calculate sleep ms before reusing buffer. (_dll_crt0): Detect cygheap mismatch as indicative of different cygwin version. Set child_proc_info to NULL when _PROC_WHOOPS. (multiple_cygwin_problem): If child_info specific problem, then set child_proc_info type to _PROC_WHOOPS. * shared_info.h (CURR_MOUNT_MAGIC): Update. (CURR_SHARED_MAGIC): Ditto. --- winsup/cygwin/child_info.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/child_info.h') diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 4b68e4281..1aca7247b 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -1,6 +1,6 @@ -/* childinfo.h: shared child info for cygwin +/* child_info.h: shared child info for cygwin - Copyright 2000, 2002 Red Hat, Inc. + Copyright 2000, 2001, 2002 Red Hat, Inc. This file is part of Cygwin. @@ -14,7 +14,8 @@ enum { _PROC_EXEC, _PROC_SPAWN, - _PROC_FORK + _PROC_FORK, + _PROC_WHOOPS }; #define OPROC_MAGIC_MASK 0xff00ff00 @@ -28,7 +29,7 @@ enum #define EXEC_MAGIC_SIZE sizeof(child_info) -#define CURR_CHILD_INFO_MAGIC 0x8b3c +#define CURR_CHILD_INFO_MAGIC 0xb3836013U /* NOTE: Do not make gratuitous changes to the names or organization of the below class. The layout is checksummed to determine compatibility between @@ -39,7 +40,7 @@ public: DWORD zero[4]; // must be zeroed DWORD cb; // size of this record DWORD intro; // improbable string - unsigned short magic; // magic number unique to child_info + unsigned long magic; // magic number unique to child_info unsigned short type; // type of record, exec, spawn, fork int cygpid; // cygwin pid of child process HANDLE subproc_ready; // used for synchronization with parent -- cgit v1.2.3