VirtualBox

Changeset 3174 in kBuild


Ignore:
Timestamp:
Mar 21, 2018 9:37:52 PM (7 years ago)
Author:
bird
Message:

kmkbultin: environment fixes and stats.

Location:
trunk/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/kDep.c

    r3167 r3174  
    283283         * Check that the file exists before we start depending on it.
    284284         */
     285        errno = 0;
    285286#ifdef KWORKER
    286287        if (!kwFsPathExists(pszFilename))
  • trunk/src/lib/nt_fullpath.c

    r2849 r3174  
    4444static void w32_fixcase(char *pszPath)
    4545{
     46#if 0 /* no mp safe */
    4647    static char     s_szLast[260];
    4748    size_t          cchLast;
     49#endif
    4850
    4951#ifndef NDEBUG
     
    107109    }
    108110
     111#if 0 /* not mp safe */
    109112    /*
    110113     * Try make use of the result from the previous call.
     
    146149            memcpy(pszDst0, pszSrc0, psz - pszDst0);
    147150    }
     151#endif
    148152
    149153    /*
     
    179183        if (!hDir)
    180184        {
     185#if 0 /* not MP safe */
    181186            cchLast = psz - pszPath;
    182187            memcpy(s_szLast, pszPath, cchLast + 1);
    183188            s_szLast[cchLast + 1] = '\0';
     189#endif
    184190            pszEnd[0] = chSaved0;
    185191            return;
     
    191197            if (!FindNextFile(hDir, &FindFileData))
    192198            {
     199#if 0 /* not MP safe */
    193200                cchLast = psz - pszPath;
    194201                memcpy(s_szLast, pszPath, cchLast + 1);
    195202                s_szLast[cchLast + 1] = '\0';
     203#endif
    196204                pszEnd[0] = chSaved0;
    197205                return;
     
    238246    }
    239247
     248#if 0 /* not MP safe */
    240249    /* *psz == '\0', the end. */
    241250    cchLast = psz - pszPath;
    242251    memcpy(s_szLast, pszPath, cchLast + 1);
     252#endif
    243253#undef my_assert
    244254}
     
    312322nt_get_filename_info(const char *pszPath, char *pszFull, size_t cchFull)
    313323{
    314     static char                     abBuf[8192];
     324    char                            abBuf[8192];
    315325    PMY_FILE_NAME_INFORMATION       pFileNameInfo = (PMY_FILE_NAME_INFORMATION)abBuf;
    316326    PMY_FILE_FS_VOLUME_INFORMATION  pFsVolInfo = (PMY_FILE_FS_VOLUME_INFORMATION)abBuf;
    317327    MY_IO_STATUS_BLOCK              Ios;
    318328    LONG                            rcNt;
    319     HANDLE                      hFile;
     329    HANDLE                          hFile;
    320330    int                             cchOut;
    321331    char                           *psz;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette