| delorie.com/archives/browse.cgi | search |
Hello.
DJ Delorie wrote:
>
> > _get_dev_info returns the device info word from 21/4400.
>
> That would be sufficient:
>
> if (__get_dev_info(fd) & 0x80) {
> ...
> }
Let's switch to using the constants from <libc/getdinfo.h>:
#include <libc/getdinfo.h>
if (__get_dev_info(fd) & _DEV_CDEV) {
...
}
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |