From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12604 invoked by alias); 12 Dec 2019 04:49:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12595 invoked by uid 89); 12 Dec 2019 04:49:08 -0000 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 Received: from pb-smtp2.pobox.com (HELO pb-smtp2.pobox.com) (64.147.108.71) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Dec 2019 04:49:07 +0000 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 7614C31548 for ; Wed, 11 Dec 2019 23:49:05 -0500 (EST) (envelope-from daniel.santos@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= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 6C03631546 for ; Wed, 11 Dec 2019 23:49:05 -0500 (EST) (envelope-from daniel.santos@pobox.com) Received: from [192.168.0.8] (unknown [76.85.7.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 98AE131542 for ; Wed, 11 Dec 2019 23:49:04 -0500 (EST) (envelope-from daniel.santos@pobox.com) Subject: Re: Cygwin startup and root directory. To: cygwin@cygwin.com References: <20191209102223.GG3499@calimero.vinschen.de> From: Daniel Santos Message-ID: <1b0d87d8-e44a-d80e-8407-aaf1b70e633e@pobox.com> Date: Thu, 12 Dec 2019 06:38:00 -0000 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> Content-Type: text/plain; charset=utf-8 X-Pobox-Relay-ID: B94297EC-1C9A-11EA-814A-D1361DBA3BAF-06139138!pb-smtp2.pobox.com Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00072.txt.bz2 Thank you Corinna!=C2=A0 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.=C2=A0 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.=C2=A0 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.=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 > -- 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