Opening raw character device in DOS/Windows 98

R

rxhofman

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
 
W

Walter Roberson

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.
 
K

Kenny McCormack

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
 
R

rxhofman

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


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.



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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top