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