delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.3 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,TW_YG,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Date: | Sun, 2 Jan 2011 14:27:38 +0000 |
From: | Bruce Cran <bruce AT cran DOT org DOT uk> |
To: | cygwin AT cygwin DOT com |
Subject: | cygwin_conv_path returns wrong device names? |
Message-ID: | <20110102142738.00002bd1@unknown> |
Mime-Version: | 1.0 |
X-IsSubscribed: | yes |
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 |
I need to convert unix device nodes such as /dev/sda to Windows device names within an application. cygpath returns devices such as: > cygpath -w /dev/sda \\.\PhysicalDrive0 That can be opened by both open(2) and CreateFile since it resides in the global namespace, but cygwin_conv_path returns \Device\Harddisk0\Partition0 which cygwin can't access. Shouldn't cygpath and cygwin_conv_path returns the same paths? -- Bruce Cran -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |