diff --git a/HACKING b/HACKING index 8ebbec774e..2df560a294 100644 --- a/HACKING +++ b/HACKING @@ -417,7 +417,7 @@ File handling Usage of the "fdopen()", "close()", "fclose()" APIs is deprecated in libvirt code base to help avoiding double-closing of files or file descriptors, which is particulary dangerous in a multi-threaded applications. Instead of these -APIs, use the macros from files.h +APIs, use the macros from virfile.h - Open a file from a file descriptor: diff --git a/cfg.mk b/cfg.mk index d24386264f..0a624f1592 100644 --- a/cfg.mk +++ b/cfg.mk @@ -689,7 +689,7 @@ exclude_file_name_regexp--sc_prohibit_asprintf = \ ^(bootstrap.conf$$|src/util/util\.c$$|examples/domain-events/events-c/event-test\.c$$) exclude_file_name_regexp--sc_prohibit_close = \ - (\.p[yl]$$|^docs/|^(src/util/files\.c|src/libvirt\.c)$$) + (\.p[yl]$$|^docs/|^(src/util/virfile\.c|src/libvirt\.c)$$) exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \ (^tests/qemuhelpdata/|\.(gif|ico|png)$$) diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 259fcc4ed3..38876d84d9 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -34,7 +34,7 @@ #include "libvirt_internal.h" #include "virterror_internal.h" -#include "files.h" +#include "virfile.h" #define VIR_FROM_THIS VIR_FROM_QEMU diff --git a/docs/hacking.html.in b/docs/hacking.html.in index 68886878e5..1a32d07438 100644 --- a/docs/hacking.html.in +++ b/docs/hacking.html.in @@ -506,7 +506,7 @@ Usage of the fdopen(), close(), fclose() APIs is deprecated in libvirt code base to help avoiding double-closing of files or file descriptors, which is particulary dangerous in a multi-threaded - applications. Instead of these APIs, use the macros from files.h + applications. Instead of these APIs, use the macros from virfile.h