Changeset 2324


Ignore:
Timestamp:
Sep 26, 2005, 1:41:52 AM (20 years ago)
Author:
bird
Message:

Comments and predictions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/sys/filehandles.c

    • Property cvs2svn:cvs-rev changed from 1.26 to 1.27
    r2323 r2324  
    392392
    393393        /*
    394          * Skip unused ones.
     394         * Skip unused and close-on-exec ones.
    395395         */
    396396        while (     iFH < cFHs
     
    408408        {
    409409            void *pv = realloc(pRet, cb + 0x2000);
    410             if (!pv)
     410            if (__predict_false(!pv))
    411411            {
    412412                _fmutex_release(&gmtx);
     
    460460                    LIBC_ASSERT(gpapFHs[iFH]->pszNativePath && *gpapFHs[iFH]->pszNativePath);
    461461                    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))
    463463                    {
    464464                        _fmutex_release(&gmtx);
     
    474474                        ||  !gpapFHs[iFH]
    475475                        ||  !gpapFHs[iFH]->pOps
    476                         ||  (gpapFHs[iFH]->pOps->enmType != enmType)
     476                        ||  gpapFHs[iFH]->pOps->enmType != enmType
    477477                        ||  (gpapFHs[iFH]->fFlags & ((FD_CLOEXEC << __LIBC_FH_FDFLAGS_SHIFT) | O_NOINHERIT)) )
    478478                        break;
     
    501501                        ||  !gpapFHs[iFH]
    502502                        ||  !gpapFHs[iFH]->pOps
    503                         ||  (gpapFHs[iFH]->pOps->enmType != enmType)
     503                        ||  gpapFHs[iFH]->pOps->enmType != enmType
    504504                        ||  (gpapFHs[iFH]->fFlags & ((FD_CLOEXEC << __LIBC_FH_FDFLAGS_SHIFT) | O_NOINHERIT)) )
    505505                        break;
Note: See TracChangeset for help on using the changeset viewer.