Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Opening raw character device in DOS/Windows 98

Reply
Thread Tools

Opening raw character device in DOS/Windows 98

 
 
rxhofman@yahoo.co.uk
Guest
Posts: n/a
 
      05-02-2007
Hello all,

I want to create my own filesystem on a flash memory card. How can I
open the card as a raw character device?

On a unix-like system I can just open /dev/hdx as a file and do
whatever I want. How can I achieve the same thing under MS DOS or
Windows 98?

Thanks!

Hof

 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a
 
      05-02-2007
In article < .com>,
<> wrote:
>I want to create my own filesystem on a flash memory card. How can I
>open the card as a raw character device?


filesystems and flash memory cards and raw character devices
are all system-specific, not mentioned by the standard C language.


>On a unix-like system I can just open /dev/hdx as a file and do
>whatever I want. How can I achieve the same thing under MS DOS or
>Windows 98?


You'd need to ask in a system specific newsgroup. All that
C provides is fopen() with a "b" modifier on the file mode
(to indicate binary). Determining the correct filename to open
(or whatever else needs to be done to get a hook to the device)
is system specific.
--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes
 
Reply With Quote
 
 
 
 
Kenny McCormack
Guest
Posts: n/a
 
      05-02-2007
In article < .com>,
<> wrote:
>Hello all,
>
>I want to create my own filesystem on a flash memory card. How can I
>open the card as a raw character device?
>
>On a unix-like system I can just open /dev/hdx as a file and do
>whatever I want. How can I achieve the same thing under MS DOS or
>Windows 98?


Let me just say, with all sincerity and love:

Off topic. Not portable. Cant discuss it here. Blah, blah, blah.

Useful clc-related links:

http://en.wikipedia.org/wiki/Aspergers
http://en.wikipedia.org/wiki/Clique
http://en.wikipedia.org/wiki/C_programming_language

 
Reply With Quote
 
rxhofman@yahoo.co.uk
Guest
Posts: n/a
 
      05-02-2007
On 2 May, 18:48, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote:
> In article <1178127733.755392.297...@e65g2000hsc.googlegroups .com>,
>
> <rxhof...@yahoo.co.uk> wrote:
> >I want to create my own filesystem on a flash memory card. How can I
> >open the card as a raw character device?

>
> filesystems and flash memory cards and raw character devices
> are all system-specific, not mentioned by the standard C language.
>
> >On a unix-like system I can just open /dev/hdx as a file and do
> >whatever I want. How can I achieve the same thing under MS DOS or
> >Windows 98?

>
> You'd need to ask in a system specific newsgroup. All that
> C provides is fopen() with a "b" modifier on the file mode
> (to indicate binary). Determining the correct filename to open
> (or whatever else needs to be done to get a hook to the device)
> is system specific.
> --
> Is there any thing whereof it may be said, See, this is new? It hath
> been already of old time, which was before us. -- Ecclesiastes




Thanks, Walter. Apologies for the off-topic post - I wondered if there
was some strange and wonderful system call provided on DOS platforms
that C experts would be familiar with. All the DOS newsgroups seem to
have very little activity.

Regards,

Hof

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco 1750 Router Cisco QoS Device Manager Cisco VPN Device Manager Rene Kuhn Cisco 0 12-28-2005 08:45 PM
877W - cannot talk wireless device to wireless device Nick Ersdown Cisco 7 10-31-2005 04:20 PM
Will application J2ME MIDP 2.0 based of one device run another J2ME MIDP 2.0 device? nishadixit Java 5 06-01-2005 05:40 AM
Determine the device is a router or switch given the Device IP kiranreddyd@gmail.com Cisco 14 12-26-2004 04:11 PM
802.11g router / 1 x 802.11b device / 1 x 802.11g device Oli Wireless Networking 3 09-27-2004 11:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57