delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/09/05:23:14

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=dr34Tj0oRvsUS380gvIQHurETpBuBXE3amkK/JCh8d1zAyDcjPweY
c8yTqXzgHG1tBSHBiBVV7OqSSY+hiaFdgPZcqEf3W1Cpsf5pythg+raHQUtTel8A
qxmhxrkfsb3wEbGjplPkD1ZVOa/lnC0mFI9HectjSnMPdv0CLryq0I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=jPvBmKDTYRrosxFvE8LE8JSkYUI=; b=cYRfQB97JB3k+KLO8wwT/nB5JbjG
Zr4umFT+VwmX7ab6+CswoOjGsHNfGiXLMqoPTkKNhxGXy8OA6rRRfwXCHpiTJtqT
j/5qkJ8zL6zyaArPRD4lA1AYir5wQmCyjt3am1A0WwJJeiv1Xx03AA7PMHfMb1VN
CUy1LxCAgV/wvj8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-102.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=extensive
X-HELO: mout.kundenserver.de
Date: Mon, 9 Dec 2019 11:22:23 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin startup and root directory.
Message-ID: <20191209102223.GG3499@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <c843e6cd-7ce3-1b44-0d28-73f043897f72 AT pobox DOT com>
MIME-Version: 1.0
In-Reply-To: <c843e6cd-7ce3-1b44-0d28-73f043897f72@pobox.com>
User-Agent: Mutt/1.12.1 (2019-06-15)

--twz1s1Hj1O0rHoT0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec  9 01:12, Daniel Santos wrote:
> Hello,
>=20
> I see that when you copy Cygwin executables (and dlls) to a random
> windows machine and run (for example) bash.exe that Cygwin treats the
> parent directory as the root, assigns it an 8-byte serial number and
> records it in the user registry.=C2=A0 Can somebody point me to where the
> code is that does this?=C2=A0 I presume somewhere under winsup/cygwin?

winsup/cygwin/cygheap.cc, method init_cygheap::init_installation_root()

> Also, are there pretty docs somewhere that detail the Cygwin internals,
> architecture, etc?=C2=A0 It's making me curious...

The internals are not overly well documented.  There are a few how* txt
files in winsup/cygwin but they are old and partially outdated.  I try
to write extensive git commit messages and inline comments whenever I
change stuff and also try to convince other contributors to do that,
too.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--twz1s1Hj1O0rHoT0
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl3uIF8ACgkQ9TYGna5E
T6AyhQ/7BY3b8chuq5ZhUqoyxYAZOhiLr8E00dTYeZi0jD23MiRlWZCbk3icfoqB
Ev4mRDumXmMiajlzNPAlvHBEQy8dQuXB6e7ObLw9qcmESYFWFMu+G+Iw5PkLYs7E
zkL57kIQSCJ8MJADug226oDc7LVm184tDCEkYJsjf8adwpnJmW4MuITjP9MJOQW6
zOZClBUicPk3pk8aA2Y0oxCiQCpEbyPieD5he/YBUlcBceMzRVUyedBinNlqjDVt
rA2McVy1hd0RoeU3vr+HfJHgYC3bk5OjP7ewR1DKsf0VDdG599iNYJHlxztbntWG
dR+iCfwpHKZCQ+SnF/2DxlX8o9vAcTR2LhimBt+SZ+NJVjcCCk6IMiKuuuLSD+fA
2SMHqtyMNmc2EJt3ZFRGc8DdKzcpxVYNsZYmyB79LGpDWs6sOHGPR9+HXZ+GXu6P
s4SKbTmdvjLqVQwC45bQOWgLgj+d+J+OEpesVSj75QiexVvyJbUNwivFjj3jtyYz
JBghoFr1rQxSfDZTfcNbUi0OGnQlCU8gQfQ9ibh60RY9klvN10rrzKySzMayNqEF
nA+WrXDKlgQKKSys2c4YS5ncO1DgVAwzC6Ewl1mLwzJkHVc8doTC/HlR/ju7tVoE
BW58wxg8UXNwNK2v4BlniP0hMqBZ4wKzSlgL5N0DB/z0ExMilVA=
=WzO/
-----END PGP SIGNATURE-----

--twz1s1Hj1O0rHoT0--

- Raw text -


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