public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin startup and root directory.
Date: Mon, 09 Dec 2019 10:47:00 -0000	[thread overview]
Message-ID: <20191209102223.GG3499@calimero.vinschen.de> (raw)
In-Reply-To: <c843e6cd-7ce3-1b44-0d28-73f043897f72@pobox.com>

[-- Attachment #1: Type: text/plain, Size: 964 bytes --]

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

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2019-12-09 10:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-09  7:17 Daniel Santos
2019-12-09  9:17 ` Daniel Santos
2019-12-09 10:47 ` Corinna Vinschen [this message]
2019-12-12  6:38   ` Daniel Santos

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=20191209102223.GG3499@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).