Files
libvirt/src/util
Eric Blake 761bbb17c7 build: add syntax check for proper flags use
Enforce the recent flags cleanups - we want to use 'unsigned int flags'
in any of our APIs (except where backwards compatibility is important,
in the public migration APIs), and that all flags are checked for
validity (except when there are stub functions that completely
ignore the flags argument).

There are a few minor tweaks done here to avoid false positives:
signed arguments passed to open() are renamed oflags, and flags
arguments that are legitimately ignored are renamed flags_unused.

* cfg.mk (sc_flags_usage): New rule.
(exclude_file_name_regexp--sc_flags_usage): And a few exemptions.
(sc_flags_debug): Tweak wording.
* src/util/iohelper.c (runIO, main): Rename variable.
* src/util/util.c (virSetInherit): Likewise.
* src/fdstream.h (virFDStreamOpenFile, virFDStreamCreateFile):
Likewise.
* src/fdstream.c (virFDStreamOpenFileInternal)
(virFDStreamOpenFile, virFDStreamCreateFile): Likewise.
* src/util/command.c (virExecWithHook) [WIN32]: Likewise.
* src/util/util.c (virFileOpenAs, virDirCreate) [WIN32]: Likewise.
* src/locking/lock_manager.c (virLockManagerPluginNew)
[!HAVE_DLFCN_H]: Likewise.
* src/locking/lock_driver_nop.c (virLockManagerNopNew)
(virLockManagerNopAddResource, virLockManagerNopAcquire)
(virLockManagerNopRelease, virLockManagerNopInquire): Likewise.
2011-07-15 16:37:30 -06:00
..
2011-07-13 17:44:08 -06:00
2011-06-24 16:01:56 -06:00
2011-05-05 13:48:19 -06:00
2011-07-04 10:28:27 +08:00
2010-09-23 10:37:10 +02:00
2011-06-13 11:24:58 +02:00
2011-05-11 12:41:14 -06:00
2011-06-22 17:13:58 -06:00
2011-05-09 14:02:13 +02:00
2011-02-11 12:32:17 -07:00
2011-07-05 11:42:38 -06:00
2011-07-05 11:42:38 -06:00
2010-05-06 14:35:38 -06:00
2010-02-19 11:52:04 +01:00
2011-01-03 14:45:00 -07:00
2010-06-10 06:05:31 -06:00
2011-06-08 05:28:20 -06:00