delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/03/19/21:05:44

From: ian AT cygnus DOT com (Ian Lance Taylor)
Subject: Re: About cygwin.dll, help me.
19 Mar 1998 21:05:44 -0800 :
Message-ID: <199803191607.LAA22345.cygnus.cygwin32.developers@subrogation.cygnus.com>
References: <35108A11 DOT 17921838 AT atom DOT kaist DOT ac DOT kr>
To: wblee AT atom DOT kaist DOT ac DOT kr
Cc: cygwin32-developers AT cygnus DOT com

   Date: Thu, 19 Mar 1998 11:59:29 +0900
   From: Wan Bok Lee <wblee AT atom DOT kaist DOT ac DOT kr>

   However by now, I can't catch even where is the "the definition of the
   per_process u, and that of shared_info s"
   they are frequently used in the source code, and defined externally
   like following.

   (cygwin32.dll beta18, cdk/winsup/winsup.h)
   >line 160: extern per_process *u;
   >line 339: extern shared_info *s;

   their type definitions (i.e. calss per_process, class shared_info)
   are easily found. but, instance definition (i.e. u, s) are not.

   I would be very much appreciated, if anyone who knows the solution of
   this problem to me. I also welcome any infomation about those variables.

s is defined in shared.cc.  u is defined in dcrt0.cc.

s points to shared memory; all cygwin32 processes which use the same
instance of the cygwin32 DLL point to the same set of shared memory.

u points to information that is specific to a particular cygwin32
process.

Ian

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019