Lines Matching refs:m_Handle
91 int m_Handle; member
410 if ( !( pFile != 0 && pFile->m_Handle >= 0 ) ) in osl_flushProfile()
446 if ( !( pFile != 0 && pFile->m_Handle >= 0 ) || ( pFile->m_pWriteBuf == 0 ) ) in writeProfileImpl()
459 …BytesWritten = write(pFile->m_Handle, pFile->m_pWriteBuf, pFile->m_nWriteBufLen - pFile->m_nWriteB… in writeProfileImpl()
1124 if ( (pFile->m_Handle < 0) || (fstat(pFile->m_Handle, &status) < 0) ) in OslProfile_getFileStamp()
1162 if (pFile->m_Handle < 0) in OslProfile_lockFile()
1200 if ( fcntl(pFile->m_Handle, F_SETLKW, &lock) == -1 ) in OslProfile_lockFile()
1203 if ( fcntl(pFile->m_Handle, F_SETLKW, &lock) == -1 && errno != ENOTSUP ) in OslProfile_lockFile()
1239 pFile->m_Handle = open(pszFilename, O_RDONLY); in openFileImpl()
1248 if (((pFile->m_Handle = open(pszFilename, O_RDWR | O_CREAT | O_EXCL, DEFAULT_PMODE)) < 0) && in openFileImpl()
1249 ((pFile->m_Handle = open(pszFilename, O_RDWR)) < 0)) in openFileImpl()
1260 if ((Flags = fcntl(pFile->m_Handle, F_GETFD, 0)) != -1) in openFileImpl()
1263 fcntl(pFile->m_Handle, F_SETFD, Flags); in openFileImpl()
1300 if ( pFile->m_Handle >= 0 ) in closeFileImpl()
1309 close(pFile->m_Handle); in closeFileImpl()
1310 pFile->m_Handle = -1; in closeFileImpl()
1335 if (pFile->m_Handle >= 0) in OslProfile_rewindFile()
1342 bRet = (lseek(pFile->m_Handle, SEEK_SET, 0L) == 0L); in OslProfile_rewindFile()
1349 bRet &= (ftruncate(pFile->m_Handle, 0L) == 0); in OslProfile_rewindFile()
1373 if (pFile->m_Handle < 0) in OslProfile_getLine()
1388 if ((Max = read(pFile->m_Handle, &pFile->m_ReadBuf[Bytes], Free)) < 0) in OslProfile_getLine()
1457 if ( pFile == 0 || pFile->m_Handle < 0 ) in OslProfile_putLine()