delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/11/23:50:00

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=OgED+euQv4hWfsAl
ncUPjXEuzoEvkt2mGQHcvHNK8IBB8+LU2+YAOJFg2R0viCJy411ULtrNGpcPdEqs
92xf4VPdsni9Eo7e0o01Fr38SjKOsjh7I0KPRKK62WfF+0rjeX1RTPnt61pZRbFl
X/R+RZ8EVanzR3ID+QVc4nrVWrA=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=VwCBlnx75jU3PzV6LS7+jU
swuM4=; b=FqHlr45MAov1KbSJJvx6iUIbeaZU5jkQVhlXRIhtHPzhHx+aC5hzkl
ByCVQLAvLeOeuy0j4JoGOtF8KM6pq6jWZjGlzznu6Shsw8ifmFZZYNqQSThsJQXY
DaavR8nkH0fnWPFYukUsWuECNDXGpn1TY7gI3Th9DtPkP4WmrQZWk=
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=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=amazed, serial, HX-Languages-Length:1413, H*M:pobox
X-HELO: pb-smtp2.pobox.com
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=subject:to :references:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=1hyFbPx56WwJ oJZgi1JOE3tvMug=; b=fRvBWpVDmpf0Nt7reEOSdrYTASOUGerCAtFR6Cj7KY5t d/sYAfTwGFFLubM79vBrydYCj59abYRM5g5Otl7GophXSfF24X3grI0XsfDzn4oK sRDEvnJXHUpgn/srCGWcZHwth19MCctOpC9IWwZQuPLVs2HYFR8PD1+7pXIn8ho=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=subject:to :references:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=j/x1mF MRTMIW1mbFml0WyNHNyrqgSM4UDsUWLNbk7dfeE7F44vwKkdOK2LFhESptjReg7u dtVriVA89iq24RUzp3ChQ1M2FS1ocXffQIJzCFCh7cWtmM6a4bxlRvpdGell/EK6 /jRJN0H95b8tpYrxvm5IwqKA+/rFx+uaMBrfs=
Subject: Re: Cygwin startup and root directory.
To: cygwin AT cygwin DOT com
References: <c843e6cd-7ce3-1b44-0d28-73f043897f72 AT pobox DOT com> <20191209102223 DOT GG3499 AT calimero DOT vinschen DOT de>
From: Daniel Santos <daniel DOT santos AT pobox DOT com>
Message-ID: <1b0d87d8-e44a-d80e-8407-aaf1b70e633e@pobox.com>
Date: Wed, 11 Dec 2019 22:44:33 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <20191209102223.GG3499@calimero.vinschen.de>
X-Pobox-Relay-ID: B94297EC-1C9A-11EA-814A-D1361DBA3BAF-06139138!pb-smtp2.pobox.com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xBC4ngY2021612

Thank you Corinna!  And sorry for the delayed response.

Maybe this is something I can put on my TODO "wish list" -- going
through the Cygwin docs, learning the internals a bit better and maybe
adding to them.  It's always nice to have a nice doc explaining the
high-level architecture and then other docs to "drill down" to the
details on certain areas.  I've always been amazed by what Cygwin does.

Daniel



On 12/9/19 4:22 AM, Corinna Vinschen wrote:
> On Dec  9 01:12, Daniel Santos wrote:
>> Hello,
>>
>> 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.  Can somebody point me to where the
>> code is that does this?  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?  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
>


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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