public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin startup and root directory.
@ 2019-12-09  7:17 Daniel Santos
  2019-12-09  9:17 ` Daniel Santos
  2019-12-09 10:47 ` Corinna Vinschen
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Santos @ 2019-12-09  7:17 UTC (permalink / raw)
  To: cygwin, Corinna Vinschen

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?

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

Thanks!!
Daniel

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Cygwin startup and root directory.
  2019-12-09  7:17 Cygwin startup and root directory Daniel Santos
@ 2019-12-09  9:17 ` Daniel Santos
  2019-12-09 10:47 ` Corinna Vinschen
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Santos @ 2019-12-09  9:17 UTC (permalink / raw)
  To: cygwin, Corinna Vinschen

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?

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

Thanks!!
Daniel

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin startup and root directory.
  2019-12-09  7:17 Cygwin startup and root directory Daniel Santos
  2019-12-09  9:17 ` Daniel Santos
@ 2019-12-09 10:47 ` Corinna Vinschen
  2019-12-12  6:38   ` Daniel Santos
  1 sibling, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2019-12-09 10:47 UTC (permalink / raw)
  To: cygwin

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin startup and root directory.
  2019-12-09 10:47 ` Corinna Vinschen
@ 2019-12-12  6:38   ` Daniel Santos
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Santos @ 2019-12-12  6:38 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-12  4:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-09  7:17 Cygwin startup and root directory Daniel Santos
2019-12-09  9:17 ` Daniel Santos
2019-12-09 10:47 ` Corinna Vinschen
2019-12-12  6:38   ` Daniel Santos

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).