• S
    deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() · 7b7cb1ec
    Stefan Berger 提交于
    Similarly to deprecating close(), I am now deprecating fclose() and
    introduce VIR_FORCE_FCLOSE() and VIR_FCLOSE(). Also, fdopen() is replaced with
    VIR_FDOPEN().
    
    Most of the files are opened in read-only mode, so usage of
    VIR_FORCE_CLOSE() seemed appropriate. Others that are opened in write
    mode already had the fclose()<  0 check and I converted those to
    VIR_FCLOSE()<  0.
    
    I did not find occurrences of possible double-closed files on the way.
    7b7cb1ec
storage_backend_fs.c 29.4 KB