[libvirt] [PATCHv2 0/5] Introduce VIR_AUTOCLOSE macro for closing fd automatically

Shi Lei shi_lei at massclouds.com
Wed Sep 12 09:46:33 UTC 2018


v1 here:
https://www.redhat.com/archives/libvir-list/2018-September/msg00319.html

Diff from v1:
  - Change VIR_AUTOCLOSE macro (comments from Michal)
  - Remove others except for patches in util (comments from Erik)
  - Change sc_require_attribute_cleanup_initialization for this macro

Shi Lei (5):
  util: file: introduce VIR_AUTOCLOSE macro to close fd of the file
    automatically
  cfg.mk: Change syntax-check rule for VIR_AUTOCLOSE variable
    initialization
  util: file: use VIR_AUTOCLOSE instead of VIR_FORCE_CLOSE
  util: netdevbridge: use VIR_AUTOCLOSE instead of VIR_FORCE_CLOSE
  util: netdev: use VIR_AUTOCLOSE instead of VIR_FORCE_CLOSE

 cfg.mk                     |   2 +-
 src/util/virfile.c         |  21 ++--
 src/util/virfile.h         |  18 ++-
 src/util/virnetdev.c       | 251 +++++++++++++------------------------
 src/util/virnetdevbridge.c | 120 ++++++------------
 5 files changed, 146 insertions(+), 266 deletions(-)

-- 
2.17.1





More information about the libvir-list mailing list