This is the mail archive of the cygwin@sources.redhat.com 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]

Re: Accessing disk-devices


At 03:01 PM 2/22/2001, Earnie Boyd wrote:
>Jesper Eskilson wrote:
> > 
> > Hi!
> > 
> > Is there any way of accessing disk-devices under Cygwin (something like
> > using the "\\.\<physical-device>:" syntax accepted by the Win32 APIs?
> > 
> > Another way around would be to use CreateFile() to open the device and
> > then convert the HANDLE to a Cygwin file-descriptor. The function
> > 
> >         cygwin_attach_handle_to_fd()
> > 
> > looks ok, but I would like it to work in the other direction.
> > 
>
>You mean something like
>   mount -b //./a: /dev/fd0
>   mount -b //./c: /dev/hdc
>?


Its a good question.  I read it as him indicating that he wanted to know 
if he could use this notation in code using POSIX APIs but I agree the 
exact scope of the question is unclear.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Want to unsubscribe from this list?
Check out: 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]