aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/osdep.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-08-19 16:20:20 +0100
committerPeter Maydell <peter.maydell@linaro.org>2015-08-19 16:29:53 +0100
commit03557b9abaee78e9d1ef5cd236d32a7b3e75e6f8 (patch)
treecc87e105e9d2ec4ada335683a2074cb50afdc850 /include/qemu/osdep.h
parentbfe7e449f14313f646da621288ca2fd12223414f (diff)
downloadqemu-03557b9abaee78e9d1ef5cd236d32a7b3e75e6f8.zip
qemu-03557b9abaee78e9d1ef5cd236d32a7b3e75e6f8.tar.gz
qemu-03557b9abaee78e9d1ef5cd236d32a7b3e75e6f8.tar.bz2
osdep.h: Add header comment
Add a header comment to osdep.h, explaining what the header is for and some rules to avoid circular-include difficulties. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/qemu/osdep.h')
-rw-r--r--include/qemu/osdep.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 60ac27d..ab3c876 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -1,3 +1,27 @@
+/*
+ * OS includes and handling of OS dependencies
+ *
+ * This header exists to pull in some common system headers that
+ * most code in QEMU will want, and to fix up some possible issues with
+ * it (missing defines, Windows weirdness, and so on).
+ *
+ * To avoid getting into possible circular include dependencies, this
+ * file should not include any other QEMU headers, with the exceptions
+ * of config-host.h, compiler.h, os-posix.h and os-win32.h, all of which
+ * are doing a similar job to this file and are under similar constraints.
+ *
+ * This header also contains prototypes for functions defined in
+ * os-*.c and util/oslib-*.c; those would probably be better split
+ * out into separate header files.
+ *
+ * In an ideal world this header would contain only:
+ * (1) things which everybody needs
+ * (2) things without which code would work on most platforms but
+ * fail to compile or misbehave on a minority of host OSes
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
#ifndef QEMU_OSDEP_H
#define QEMU_OSDEP_H