Ignore:
Timestamp:
Mar 16, 2007 8:56:05 AM (14 years ago)
Author:
bennylp
Message:

Ticket #184: Added pj_file_flush() to file I/O API to flush file buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjlib/src/pj/file_io_win32.c

    r974 r1073  
    205205} 
    206206 
     207PJ_DEF(pj_status_t) pj_file_flush(pj_oshandle_t fd) 
     208{ 
     209    BOOL rc; 
     210 
     211    rc = FlushFileBuffers(fd); 
     212 
     213    if (!rc) { 
     214        DWORD dwStatus = GetLastError(); 
     215        if (dwStatus != 0) 
     216            return PJ_RETURN_OS_ERROR(dwStatus); 
     217    } 
     218 
     219    return PJ_SUCCESS; 
     220} 
Note: See TracChangeset for help on using the changeset viewer.