zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Zsh hackers list" <zsh-workers@sunsite.auc.dk>
Subject: RE: Cygwin: environ problem
Date: Mon, 24 Jul 2000 12:14:26 +0400	[thread overview]
Message-ID: <000001bff547$2e7fe500$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <0FY10078PTYVGJ@la-la.cambridgesiliconradio.com>

>
> Andrej wrote:
> > We _could_try_ to directly manipulate __cygwin_environ, but I do not
> > like it - who knows, where and how it is used. BTW comments
> imply, that
> > DLLs should actually refer to __cygwin_environ :-)
>
> Without some major rewriting, we may have to: the
> export-related machinery
> assumes it has direct control of the (new) environment's
> memory.


There is unfortunately one more problem. Even if we play with
__cygwin_environ, we need to keep local environ's in sync. This is done
inside of cygwin.dll with update_envptrs() function. This function is
local and is not exported (strictly speaking, it does not appear in any
stub library that is installed with cygwin). The private per-DLL user
structures are hidden as well. So, we have no official way to inform
cygwin about changed environment location.

Please, note - that is currently true even without dynamic loading! But
in this case we at least know, that there is single environ variable, so
we can just update both environ and __cygwin_environ.

-andrej


  parent reply	other threads:[~2000-07-24  8:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-21 11:56 Andrej Borsenkow
2000-07-21 13:11 ` Peter Stephenson
2000-07-21 13:39   ` Andrej Borsenkow
2000-07-24  8:14   ` Andrej Borsenkow [this message]
2000-07-24 10:39     ` Environ handling broken on Cygwin " Andrej Borsenkow
2000-07-24 10:57       ` Peter Stephenson
2000-07-25 10:49         ` Andrej Borsenkow
2000-08-16 13:28         ` Sourceforge development account Andrej Borsenkow
2000-08-16 13:35           ` Thomas Köhler
2000-08-16 13:41           ` Peter Stephenson
2000-08-21  1:25           ` Chmouel Boudjnah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001bff547$2e7fe500$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).