VirtualBox

Changeset 1514 in kBuild


Ignore:
Timestamp:
Apr 9, 2008 12:22:41 PM (17 years ago)
Author:
bird
Message:

Bad idea to use read(fileno()) on a stream after searching it because (1) it might already be buffered and (2) the fseek might not be synced to the file handle yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/kDepIDB.c

    r1329 r1514  
    205205    if (pvFile)
    206206    {
    207 #if 1
    208         long cbRead = (long)read(fileno(pInput), pvFile, cbFile);
    209         if (cbRead == cbFile)
    210 #else
    211207        if (fread(pvFile, cbFile, 1, pInput))
    212 #endif
    213208        {
    214209            ((uint8_t *)pvFile)[cbFile] = '\0';
Note: See TracChangeset for help on using the changeset viewer.

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