This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygwin_conv_path returns wrong device names?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]