Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Get Disk Type

25 views
Skip to first unread message

John W. Doe

unread,
Feb 28, 2011, 2:52:42 PM2/28/11
to
Hello

There is a function/call to determine storage device (such h0 or a
floppy) type OS9 in C?

I want to know if the path is a hardisk or floppy

Thanks
John

Microware OS-9

unread,
Mar 4, 2011, 9:26:48 AM3/4/11
to
Are you asking about OS-9 68K or or OS9000? What processor?

Look in the path options with _os_gs_popt(). Note that this call returns different structures depending on the flavor of OS (i.e. OS9 and OS9000).

For OS9000, check the pd_format field of rbf_path_opts for FMT_HARDISK. See OS9000/SRC/DEFS/rbf.h.

For OS-9 68K, check pd_typ of rbf_opt for TYP_HARD. See OS9/SRC/DEFS/rbf.h.

The values of these fields depend on the settings in the device descriptor. It is up to the device manufacturer to define these appropriately for the device.

0 new messages