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 To: cygwin AT cygwin DOT com Subject: cygwin_conv_path returns wrong device names? Message-ID: <20110102142738.00002bd1@unknown> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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