Changeset 2324
- Timestamp:
- Sep 26, 2005, 1:41:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/sys/filehandles.c
-
Property cvs2svn:cvs-rev
changed from
1.26
to1.27
r2323 r2324 392 392 393 393 /* 394 * Skip unused ones.394 * Skip unused and close-on-exec ones. 395 395 */ 396 396 while ( iFH < cFHs … … 408 408 { 409 409 void *pv = realloc(pRet, cb + 0x2000); 410 if ( !pv)410 if (__predict_false(!pv)) 411 411 { 412 412 _fmutex_release(&gmtx); … … 460 460 LIBC_ASSERT(gpapFHs[iFH]->pszNativePath && *gpapFHs[iFH]->pszNativePath); 461 461 u.pDirs->aHandles[i].offNativePath = fhAddString(gpapFHs[iFH]->pszNativePath, ppszStrings, &cbStringAlloc, pcbStrings); 462 if ( !u.pDirs->aHandles[i].offNativePath)462 if (__predict_false(!u.pDirs->aHandles[i].offNativePath)) 463 463 { 464 464 _fmutex_release(&gmtx); … … 474 474 || !gpapFHs[iFH] 475 475 || !gpapFHs[iFH]->pOps 476 || (gpapFHs[iFH]->pOps->enmType != enmType)476 || gpapFHs[iFH]->pOps->enmType != enmType 477 477 || (gpapFHs[iFH]->fFlags & ((FD_CLOEXEC << __LIBC_FH_FDFLAGS_SHIFT) | O_NOINHERIT)) ) 478 478 break; … … 501 501 || !gpapFHs[iFH] 502 502 || !gpapFHs[iFH]->pOps 503 || (gpapFHs[iFH]->pOps->enmType != enmType)503 || gpapFHs[iFH]->pOps->enmType != enmType 504 504 || (gpapFHs[iFH]->fFlags & ((FD_CLOEXEC << __LIBC_FH_FDFLAGS_SHIFT) | O_NOINHERIT)) ) 505 505 break; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.