5 #ifdef CONFIG_GETMNTENT
7 #define MTAB "/etc/mtab"
9 int device_is_mounted(const char *dev)
15 mtab = setmntent(MTAB, "r");
19 while ((mnt = getmntent(mtab)) != NULL) {
22 if (!strcmp(mnt->mnt_fsname, dev)) {
34 int device_is_mounted(const char *dev)