Lines Matching refs:aMountEnt
593 struct mnttab aMountEnt; in osl_isFloppyDrive() local
611 while (getmntent(pMountTab, &aMountEnt) == 0) in osl_isFloppyDrive()
613 const char *pMountPoint = aMountEnt.mnt_mountp; in osl_isFloppyDrive()
614 const char *pDevice = aMountEnt.mnt_special; in osl_isFloppyDrive()
615 if ( osl_isAParentDirectory (aMountEnt.mnt_mountp, pHandle->pszFilePath) in osl_isFloppyDrive()
616 && osl_isAFloppyDevice (aMountEnt.mnt_special)) in osl_isFloppyDrive()
619 char * pc = strrchr( aMountEnt.mnt_special, '/' ); in osl_isFloppyDrive()
623 int len = pc - aMountEnt.mnt_special; in osl_isFloppyDrive()
625 strncpy( pHandle->pszDevice, aMountEnt.mnt_special, len ); in osl_isFloppyDrive()
632 …strncpy(pHandle->pszDevice, aMountEnt.mnt_special, sizeof(pHandle->pszDevice) - 1); … in osl_isFloppyDrive()
637 strncpy(pHandle->pszMountPoint, aMountEnt.mnt_mountp, sizeof(pHandle->pszMountPoint) - 1); in osl_isFloppyDrive()
652 struct mnttab aMountEnt; in osl_mountFloppy() local
677 while (getmntent(pMountTab, &aMountEnt) == 0) in osl_mountFloppy()
679 const char *pMountPoint = aMountEnt.mnt_mountp; in osl_mountFloppy()
680 const char *pDevice = aMountEnt.mnt_special; in osl_mountFloppy()
681 … if ( 0 == strncmp( pHandle->pszDevice, aMountEnt.mnt_special, strlen(pHandle->pszDevice) ) ) in osl_mountFloppy()
684 … strncpy (pHandle->pszMountPoint, aMountEnt.mnt_mountp, sizeof(pHandle->pszMountPoint) - 1); in osl_mountFloppy()
731 struct mnttab aMountEnt; in osl_unmountFloppy() local
737 while (getmntent(pMountTab, &aMountEnt) == 0) in osl_unmountFloppy()
739 const char *pMountPoint = aMountEnt.mnt_mountp; in osl_unmountFloppy()
740 const char *pDevice = aMountEnt.mnt_special; in osl_unmountFloppy()
741 … if ( 0 == strncmp( pHandle->pszDevice, aMountEnt.mnt_special, strlen(pHandle->pszDevice) ) ) in osl_unmountFloppy()