www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/05/18:08:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8931B388E80B
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=t-online.de
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=HBBroeker AT t-online DOT de
Subject: Re: Is it possible to define the root directory in a cross compiled
program
To: cygwin AT cygwin DOT com
References: <48b833bd-547a-92eb-542e-b7da8e0d601b AT interocitors DOT com>
<9d339f8b-83ff-8b9c-b2fe-1c6fa4b2a92d AT SystematicSw DOT ab DOT ca>
<1818960860 DOT 20210106000452 AT yandex DOT ru>
From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker AT t-online DOT de>
Message-ID: <97263efe-a420-a3f5-35b4-2f8617168240@t-online.de>
Date: Wed, 6 Jan 2021 00:07:47 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.6.0
MIME-Version: 1.0
In-Reply-To: <1818960860.20210106000452@yandex.ru>
X-ID: SrcabcZeYhx4pmXWWXLFgtA3++OZtdIpyEyykrzQyWXURYBpQ7coSXKe8Oc6Rr9ZCz
X-TOI-EXPURGATEID: 150726::1609888067-00000BD0-E33C5154/0/0 CLEAN NORMAL
X-TOI-MSGID: 82ff0506-5464-43ba-b420-aa607a7681a7
X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, FREEMAIL_FROM,
KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Am 05.01.2021 um 22:04 schrieb Andrey Repin:
>> It's a Windows program - it can do whatever you program it to do!
>> On Windows the device is NUL, the root is the drive root C:\,
> 
> %SystemDrive%\ to be precise. 

Well, since we're being precise: no.

%SystemDrive%\ is the root of the drive the system is on.  That's not 
"the" root any more than c:\, \ or any other such thing.

The actual answer would be: no DOS-style path (i.e. neither c:\ nor \) 
can be usefully called "the" root on a Windows machine.

The closest to an actual root on a Windows system would be something 
like \\?\ or \\.\

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

- Raw text -


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