Lines Matching refs:pItem
131 … sal_Bool osl_getFloppyMountEntry(const sal_Char* pszPath, oslVolumeDeviceHandleImpl* pItem);
433 oslVolumeDeviceHandleImpl* pItem = (oslVolumeDeviceHandleImpl*) Handle; in osl_getVolumeDeviceMountPath() local
438 if ( pItem == 0 || pstrPath == 0 ) in osl_getVolumeDeviceMountPath()
443 …if ( pItem->ident[0] != 'O' || pItem->ident[1] != 'V' || pItem->ident[2] != 'D' || pItem->ident[3]… in osl_getVolumeDeviceMountPath()
450 osl_printFloppyHandle(pItem); in osl_getVolumeDeviceMountPath()
453 snprintf(Buffer, sizeof(Buffer), "file://%s", pItem->pszMountPoint); in osl_getVolumeDeviceMountPath()
470 oslVolumeDeviceHandleImpl* pItem =(oslVolumeDeviceHandleImpl*) Handle; in osl_acquireVolumeDeviceHandle() local
472 if ( pItem == 0 ) in osl_acquireVolumeDeviceHandle()
477 …if ( pItem->ident[0] != 'O' || pItem->ident[1] != 'V' || pItem->ident[2] != 'D' || pItem->ident[3]… in osl_acquireVolumeDeviceHandle()
482 ++pItem->RefCount; in osl_acquireVolumeDeviceHandle()
493 oslVolumeDeviceHandleImpl* pItem =(oslVolumeDeviceHandleImpl*) Handle; in osl_releaseVolumeDeviceHandle() local
495 if ( pItem == 0 ) in osl_releaseVolumeDeviceHandle()
500 …if ( pItem->ident[0] != 'O' || pItem->ident[1] != 'V' || pItem->ident[2] != 'D' || pItem->ident[3]… in osl_releaseVolumeDeviceHandle()
505 --pItem->RefCount; in osl_releaseVolumeDeviceHandle()
507 if ( pItem->RefCount == 0 ) in osl_releaseVolumeDeviceHandle()
509 rtl_freeMemory(pItem); in osl_releaseVolumeDeviceHandle()
781 oslVolumeDeviceHandleImpl* pItem = osl_newVolumeDeviceHandleImpl(); in osl_isFloppyDrive() local
782 if (osl_getFloppyMountEntry(pszPath, pItem)) in osl_isFloppyDrive()
783 return (oslVolumeDeviceHandle) pItem; in osl_isFloppyDrive()
785 osl_freeVolumeDeviceHandleImpl (pItem); in osl_isFloppyDrive()
794 oslVolumeDeviceHandleImpl* pItem=0; in osl_mountFloppy() local
807 pItem = (oslVolumeDeviceHandleImpl*) hFloppy; in osl_mountFloppy()
809 if ( pItem == 0 ) in osl_mountFloppy()
818 …if ( pItem->ident[0] != 'O' || pItem->ident[1] != 'V' || pItem->ident[2] != 'D' || pItem->ident[3]… in osl_mountFloppy()
826 bRet = osl_isFloppyMounted(pItem); in osl_mountFloppy()
830 fprintf(stderr,"detected mounted floppy at '%s'\n",pItem->pszMountPoint); in osl_mountFloppy()
864 …snprintf(pszCmd, sizeof(pszCmd), "%s %s %s %s",pszSuDo,pszMountProg,pItem->pszDevice,pItem->pszMou… in osl_mountFloppy()
868 snprintf(pszCmd, sizeof(pszCmd), "%s %s",pszMountProg,pItem->pszMountPoint); in osl_mountFloppy()
927 oslVolumeDeviceHandleImpl* pItem=0; in osl_unmountFloppy() local
940 pItem = (oslVolumeDeviceHandleImpl*) hFloppy; in osl_unmountFloppy()
942 if ( pItem == 0 ) in osl_unmountFloppy()
950 …if ( pItem->ident[0] != 'O' || pItem->ident[1] != 'V' || pItem->ident[2] != 'D' || pItem->ident[3]… in osl_unmountFloppy()
989 … snprintf(pszCmd, sizeof(pszCmd), "%s %s %s",pszSuDo,pszUmountProg,pItem->pszMountPoint); in osl_unmountFloppy()
993 snprintf(pszCmd, sizeof(pszCmd), "%s %s",pszUmountProg,pItem->pszMountPoint); in osl_unmountFloppy()
1032 osl_getFloppyMountEntry(const sal_Char* pszPath, oslVolumeDeviceHandleImpl* pItem) in osl_getFloppyMountEntry() argument
1046 memset(pItem->pszMountPoint, 0, sizeof(pItem->pszMountPoint)); in osl_getFloppyMountEntry()
1047 strncpy(pItem->pszMountPoint, pMountEnt->mnt_dir, sizeof(pItem->pszMountPoint) - 1); in osl_getFloppyMountEntry()
1049 memset(pItem->pszFilePath, 0, sizeof(pItem->pszFilePath)); in osl_getFloppyMountEntry()
1050 strncpy(pItem->pszFilePath, pMountEnt->mnt_dir, sizeof(pItem->pszFilePath) - 1); in osl_getFloppyMountEntry()
1052 memset(pItem->pszDevice, 0, sizeof(pItem->pszDevice)); in osl_getFloppyMountEntry()
1053 strncpy(pItem->pszDevice, pMountEnt->mnt_fsname, sizeof(pItem->pszDevice) - 1); in osl_getFloppyMountEntry()
1113 static sal_Bool osl_getFloppyMountEntry(const sal_Char* pszPath, oslVolumeDeviceHandleImpl* pItem) in osl_getFloppyMountEntry() argument
1128 static void osl_printFloppyHandle(oslVolumeDeviceHandleImpl* pItem) in osl_printFloppyHandle() argument
1130 if (pItem == 0 ) in osl_printFloppyHandle()
1135 …if ( pItem->ident[0] != 'O' || pItem->ident[1] != 'V' || pItem->ident[2] != 'D' || pItem->ident[3]… in osl_printFloppyHandle()
1144 fprintf(stderr,"MountPoint : '%s'\n",pItem->pszMountPoint); in osl_printFloppyHandle()
1145 fprintf(stderr,"FilePath : '%s'\n",pItem->pszFilePath); in osl_printFloppyHandle()
1146 fprintf(stderr,"Device : '%s'\n",pItem->pszDevice); in osl_printFloppyHandle()