]> git.ipfire.org Git - thirdparty/libvirt.git/commit
deprecate fclose() and introduce VIR_{FORCE_}FCLOSE()
authorStefan Berger <stefanb@us.ibm.com>
Wed, 17 Nov 2010 02:13:29 +0000 (21:13 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Wed, 17 Nov 2010 02:13:29 +0000 (21:13 -0500)
commit7b7cb1ecc989db87f3ede16b9aefc0dd3fbd8301
tree5aec32ff01e17f4db5ae34ba6a837c44c77c0ee0
parent7942fd1c264981d601dd5ac582f443691865a249
deprecate fclose() and introduce VIR_{FORCE_}FCLOSE()

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.
26 files changed:
HACKING
daemon/libvirtd.c
docs/hacking.html.in
src/libvirt_private.syms
src/nodeinfo.c
src/openvz/openvz_conf.c
src/openvz/openvz_driver.c
src/qemu/qemu_driver.c
src/storage/storage_backend.c
src/storage/storage_backend_fs.c
src/storage/storage_backend_iscsi.c
src/storage/storage_backend_scsi.c
src/uml/uml_driver.c
src/util/cgroup.c
src/util/dnsmasq.c
src/util/files.c
src/util/files.h
src/util/macvtap.c
src/util/stats_linux.c
src/util/util.c
src/xen/block_stats.c
src/xen/xen_driver.c
src/xen/xen_hypervisor.c
tests/nodeinfotest.c
tests/testutils.c
tests/xencapstest.c